diff --git a/CHANGELOG.md b/CHANGELOG.md index a6054d77516..5f1d44b357b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.86.2 - 2026-05-12 +### Added +- 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 + ## 3.86.1 - 2026-05-05 ### Added - Support for large generic v4 and v5 unit shapes in the Generative AI service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 07bf5783912..415ae5f084c 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index 425350f481a..b3e3fd02348 100644 --- a/bmc-addons/bmc-adk/pom.xml +++ b/bmc-addons/bmc-adk/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.86.1 + 3.86.2 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index aad68faa714..2e200f6df72 100644 --- a/bmc-addons/bmc-aispeech-realtime/pom.xml +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.86.1 + 3.86.2 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 3624736d411..14aaa8f55be 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.86.1 + 3.86.2 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.86.1 + 3.86.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index d6de2069630..5974ff658e4 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.86.1 + 3.86.2 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.86.1 + 3.86.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.86.1 + 3.86.2 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 226d4f36dd1..f8cd2db4981 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.86.1 + 3.86.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 8462f52e4de..165a7301cd6 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.86.1 + 3.86.2 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 compile com.oracle.oci.sdk oci-java-sdk-core - 3.86.1 + 3.86.2 test com.oracle.oci.sdk oci-java-sdk-identity - 3.86.1 + 3.86.2 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.86.1 + 3.86.2 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 213e90c2e8c..a6e92f87b38 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.86.1 + 3.86.2 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index bd40a445535..07047432d44 100644 --- a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.86.1 + 3.86.2 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.86.1 + 3.86.2 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.86.1 + 3.86.2 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 54184c09451..5d060f7f76f 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.86.1 + 3.86.2 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 0b651d3a43d..237a6d5b101 100644 --- a/bmc-addons/bmc-sse-support-jersey3/pom.xml +++ b/bmc-addons/bmc-sse-support-jersey3/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.86.1 + 3.86.2 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.86.1 + 3.86.2 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.86.1 + 3.86.2 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 2d19f0722d2..b405d8ea3f5 100644 --- a/bmc-addons/bmc-sse-support/pom.xml +++ b/bmc-addons/bmc-sse-support/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.86.1 + 3.86.2 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.86.1 + 3.86.2 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index f8b1d1608f1..173262c8ca6 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index c0b2662dc65..e6724a1aae9 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 0be6f0118bd..6169b05c36d 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index ed7d7cceb15..491fc12fa2a 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index ec6189f6b90..92e8fdfbb0c 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index a83911a2763..131a50b939a 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index bc5edc3a93d..75c92da08d6 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 20e792bd6e4..4d23392ed2d 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 1ea5bfaaa5f..a48ff43ae97 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index 34564d9e046..1f80b6954b7 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index d6e303f52ab..9b7d6de3b90 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index b061fc82798..62d0a12a6c2 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index bbb487e7d2a..dde86a7eb4c 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index c0397834639..4e46758a73d 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 895f44959ee..d493ebb8951 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index eb66d6f0345..c4737485168 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 04ae79a11b3..70f4dd08db1 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 31793400f7b..b42d6c5490b 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 021b6da1aea..d0db753a70c 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index e6d5449e92e..236cef2ecdb 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 951a8a8a799..99772a35cf7 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index dd08f1c124b..00b4108cc29 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index d6f39499387..d3186a03b02 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 5bdd005d031..377d9f093a8 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 0333d6493e1..27cd18e8b81 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.86.1 + 3.86.2 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1099 +38,1105 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-audit - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-core - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-database - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-dns - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-email - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-identity - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-waas - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-ons - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-budget - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-limits - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-functions - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-events - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-oce - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-oda - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-integration - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-vault - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-bds - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-cims - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-logging - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-sch - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-rover - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-jms - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-devops - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-waf - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-usage - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-adm - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-waa - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-opa - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-queue - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-redis - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-psql - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-iot - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-psa - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-dif - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-batch - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-self - 3.86.1 + 3.86.2 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.86.1 + 3.86.2 + false + + + com.oracle.oci.sdk + oci-java-sdk-databasetoolsruntime + 3.86.2 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 3a4b8741eb3..6b61098ffa7 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index ed9ff5001f1..c32a5e1f632 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 136b8317a01..1d14496091b 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 674cfe27025..54c06771d06 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 58fffab2136..72a671b6edd 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 3d21e6baa39..d47ddfbf7e0 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 5708e45ab45..0ffc7bee8a6 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file 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 index 771b186abcb..9b37a21ffc8 100644 --- 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 @@ -20,6 +20,50 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class LogicalUnit extends com.oracle.bmc.http.client.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", @@ -50,7 +94,7 @@ public LogicalUnit( String id, Integer lunMapping, LunStatus lunStatus, - String password, + char[] password, Integer paths, Integer port, String portal, @@ -201,7 +245,7 @@ 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. @@ -209,11 +253,17 @@ public Builder lunStatus(LunStatus lunStatus) { * @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. */ @com.fasterxml.jackson.annotation.JsonProperty("paths") private Integer paths; @@ -618,14 +668,27 @@ 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 + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } 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 index 65adc5d0766..648e3558ebd 100644 --- 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 @@ -20,6 +20,54 @@ @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class Storage extends com.oracle.bmc.http.client.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", @@ -57,7 +105,7 @@ public Storage( Integer nfsTimeo, NfsVersion nfsVersion, Boolean isOverrideLuns, - String password, + char[] password, Integer paths, Integer port, String portal, @@ -278,7 +326,7 @@ 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. @@ -286,11 +334,17 @@ public Builder isOverrideLuns(Boolean isOverrideLuns) { * @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. */ @com.fasterxml.jackson.annotation.JsonProperty("paths") private Integer paths; @@ -716,14 +770,27 @@ 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 + */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index f498004522b..e91fe281ad2 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index f9d01a31cac..624239e382d 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 2351ddb18f4..6e54212fa54 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index 4e193fc07a7..eae36b285f9 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.86.1 + 3.86.2 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.86.1 + 3.86.2 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.86.1 + 3.86.2 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/main/java/com/oracle/bmc/http/client/jersey/internal/IdleConnectionMonitor.java b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/main/java/com/oracle/bmc/http/client/jersey/internal/IdleConnectionMonitor.java index 5d387df0d26..6d2903a20df 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/main/java/com/oracle/bmc/http/client/jersey/internal/IdleConnectionMonitor.java +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/main/java/com/oracle/bmc/http/client/jersey/internal/IdleConnectionMonitor.java @@ -29,6 +29,10 @@ public class IdleConnectionMonitor extends Thread { // @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 +58,22 @@ private IdleConnectionMonitor(int waitTimeInSeconds) { * @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 +91,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 +116,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; @@ -180,22 +191,26 @@ public static void cleanStaleReferences() { * 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 +237,22 @@ 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. */ private static class ConnectionMonitorSettings { private final int waitTimeInSeconds; diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/test/java/com/oracle/bmc/http/client/jersey/internal/IdleConnectionMonitorConcurrencyTest.java b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/test/java/com/oracle/bmc/http/client/jersey/internal/IdleConnectionMonitorConcurrencyTest.java new file mode 100644 index 00000000000..ba2dc1f767a --- /dev/null +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/src/test/java/com/oracle/bmc/http/client/jersey/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.client.jersey.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-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index 19abe3f5322..0687c9b7f01 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.86.1 + 3.86.2 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.86.1 + 3.86.2 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.86.1 + 3.86.2 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/main/java/com/oracle/bmc/http/client/jersey3/internal/IdleConnectionMonitor.java b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/main/java/com/oracle/bmc/http/client/jersey3/internal/IdleConnectionMonitor.java index 43c4946e296..002c73e4b81 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/main/java/com/oracle/bmc/http/client/jersey3/internal/IdleConnectionMonitor.java +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/main/java/com/oracle/bmc/http/client/jersey3/internal/IdleConnectionMonitor.java @@ -29,6 +29,10 @@ public class IdleConnectionMonitor extends Thread { // @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 +58,22 @@ private IdleConnectionMonitor(int waitTimeInSeconds) { * @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 +91,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 +116,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; @@ -180,22 +191,26 @@ public static void cleanStaleReferences() { * 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 +237,22 @@ 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. */ private static class ConnectionMonitorSettings { private final int waitTimeInSeconds; diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/test/java/com/oracle/bmc/http/client/jersey3/internal/IdleConnectionMonitorConcurrencyTest.java b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/test/java/com/oracle/bmc/http/client/jersey3/internal/IdleConnectionMonitorConcurrencyTest.java new file mode 100644 index 00000000000..c94725da1c3 --- /dev/null +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/src/test/java/com/oracle/bmc/http/client/jersey3/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.client.jersey3.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-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 7b0c3c19830..301ac485c18 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 5cdbf33caa3..8e323725413 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 1bb4cfb6348..54e289ef842 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.86.1 + 3.86.2 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 8a1f37e5cd2..5287d44e5c0 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 6b8f65605a8..bd613e86828 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index f17c665c2b3..e48fad07429 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index d05c1dd5595..b7cf231101a 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index b243d2c34e2..859263e3c21 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ 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 69c0dead432..c9da20df87a 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 @@ -105,7 +105,10 @@ public java.util.concurrent.Future getAccessToken( return clientCall(request, GetAccessTokenResponse::builder) .logger(LOG, "getAccessToken") - .serviceDetails("ContainerRegistry", "GetAccessToken", "") + .serviceDetails( + "ContainerRegistry", + "GetAccessToken", + "https://docs.oracle.com/iaas/api/#/en/container-registry/20180419/AccessToken/GetAccessToken") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAccessTokenRequest::builder) .basePath("/20180419") 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 dcb9d584522..b79a8104900 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 @@ -90,7 +90,10 @@ public GetAccessTokenResponse getAccessToken(GetAccessTokenRequest request) { return clientCall(request, GetAccessTokenResponse::builder) .logger(LOG, "getAccessToken") - .serviceDetails("ContainerRegistry", "GetAccessToken", "") + .serviceDetails( + "ContainerRegistry", + "GetAccessToken", + "https://docs.oracle.com/iaas/api/#/en/container-registry/20180419/AccessToken/GetAccessToken") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAccessTokenRequest::builder) .basePath("/20180419") diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index fb00a24c45b..dffd864bfe7 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.86.1 + 3.86.2 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 aa2e073fa59..30878dc8850 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 @@ -4390,6 +4390,53 @@ 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 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 60c0d700339..d89dc60e9bc 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 @@ -4350,6 +4350,51 @@ 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 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 345b2bd5721..91991249059 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 @@ -7237,6 +7237,70 @@ public java.util.concurrent.Future modifyVcnCidr( .callAsync(handler); } + @Override + public java.util.concurrent.Future patchSubnet( + PatchSubnetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); + Objects.requireNonNull(request.getPatchSubnetDetails(), "patchSubnetDetails is required"); + + return clientCall(request, PatchSubnetResponse::builder) + .logger(LOG, "patchSubnet") + .serviceDetails( + "VirtualNetwork", + "PatchSubnet", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/PatchSubnet") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchSubnetRequest::builder) + .basePath("/20160918") + .appendPathParam("subnets") + .appendPathParam(request.getSubnetId()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", PatchSubnetResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", PatchSubnetResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future patchVcn( + PatchVcnRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + Objects.requireNonNull(request.getPatchVcnDetails(), "patchVcnDetails is required"); + + return clientCall(request, PatchVcnResponse::builder) + .logger(LOG, "patchVcn") + .serviceDetails( + "VirtualNetwork", + "PatchVcn", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/PatchVcn") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchVcnRequest::builder) + .basePath("/20160918") + .appendPathParam("vcns") + .appendPathParam(request.getVcnId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", PatchVcnResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", PatchVcnResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @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 2f6b55345f3..30385a22591 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 @@ -6511,6 +6511,66 @@ public ModifyVcnCidrResponse modifyVcnCidr(ModifyVcnCidrRequest request) { .callSync(); } + @Override + public PatchSubnetResponse patchSubnet(PatchSubnetRequest request) { + + Validate.notBlank(request.getSubnetId(), "subnetId must not be blank"); + Objects.requireNonNull(request.getPatchSubnetDetails(), "patchSubnetDetails is required"); + + return clientCall(request, PatchSubnetResponse::builder) + .logger(LOG, "patchSubnet") + .serviceDetails( + "VirtualNetwork", + "PatchSubnet", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/PatchSubnet") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchSubnetRequest::builder) + .basePath("/20160918") + .appendPathParam("subnets") + .appendPathParam(request.getSubnetId()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", PatchSubnetResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", PatchSubnetResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public PatchVcnResponse patchVcn(PatchVcnRequest request) { + + Validate.notBlank(request.getVcnId(), "vcnId must not be blank"); + Objects.requireNonNull(request.getPatchVcnDetails(), "patchVcnDetails is required"); + + return clientCall(request, PatchVcnResponse::builder) + .logger(LOG, "patchVcn") + .serviceDetails( + "VirtualNetwork", + "PatchVcn", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/PatchVcn") + .method(com.oracle.bmc.http.client.Method.PATCH) + .requestBuilder(PatchVcnRequest::builder) + .basePath("/20160918") + .appendPathParam("vcns") + .appendPathParam(request.getVcnId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", PatchVcnResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", PatchVcnResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public PrivateIpVnicDetachResponse privateIpVnicDetach(PrivateIpVnicDetachRequest request) { 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 30240dd795e..4794abdd08c 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 @@ -4838,6 +4838,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/model/ComputeCluster.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ComputeCluster.java index ec4fff653c2..94a428cd4cf 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,18 +5,21 @@ 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 that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a 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..1fd71170e93 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchSubnetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchSubnetDetails + extends com.oracle.bmc.http.client.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..95536e0cc86 --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PatchSubnetInstruction + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..738ec30f474 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchSubnetReplaceInstruction.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..fedce25de62 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PatchVcnDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchVcnDetails + extends com.oracle.bmc.http.client.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..4856c8046be --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnInstruction.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PatchVcnInstruction extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..8d5a6ea2a39 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PatchVcnReplaceInstruction.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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/requests/PatchSubnetRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchSubnetRequest.java new file mode 100644 index 00000000000..a4f31a8682c --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchSubnetRequest.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..574268e7612 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PatchVcnRequest.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.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use PatchVcnRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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/responses/PatchSubnetResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchSubnetResponse.java new file mode 100644 index 00000000000..55bfba042f6 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchSubnetResponse.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.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [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 + */ + @Override + 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 + */ + @Override + 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..4034e58dfa9 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PatchVcnResponse.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.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The [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 + */ + @Override + 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 + */ + @Override + 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/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json index 4eb313e12d7..a865bdb2e19 100644 --- a/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json +++ b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json @@ -8082,6 +8082,88 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchSubnetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchSubnetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchSubnetInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchSubnetInstruction$Operation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchSubnetReplaceInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchSubnetReplaceInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchVcnDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchVcnDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchVcnInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchVcnInstruction$Operation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchVcnReplaceInstruction", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PatchVcnReplaceInstruction$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.PeerRegionForRemotePeering", diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index f21ab52022b..c45e4c37697 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 279d6fe5d9c..4797f62d6fc 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.86.1 + 3.86.2 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index e8758f61b22..4aac85a7bc1 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 9a6f5ad9e47..9e3397f7dd4 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index ebf3854c35d..c5ee72b769f 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ 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 ca5a0109b19..b877aaa06e8 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 @@ -80,6 +80,24 @@ 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. * @@ -97,6 +115,40 @@ 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. * @@ -114,6 +166,40 @@ 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 [Moving Resources to a @@ -134,6 +220,27 @@ 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 [Moving Resources to a @@ -154,6 +261,41 @@ 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 [Moving Resources to a Different @@ -174,6 +316,23 @@ 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. * @@ -191,6 +350,23 @@ 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. * @@ -208,6 +384,40 @@ 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. * @@ -225,6 +435,23 @@ 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. * @@ -242,6 +469,23 @@ 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. * @@ -259,6 +503,40 @@ 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. * @@ -276,6 +554,23 @@ 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. * @@ -293,6 +588,23 @@ 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. * @@ -327,6 +639,40 @@ 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. * @@ -344,6 +690,23 @@ 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. * @@ -376,6 +739,23 @@ 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. * @@ -410,6 +790,57 @@ 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. * @@ -427,6 +858,23 @@ 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. * @@ -509,6 +957,24 @@ 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. * @@ -526,6 +992,40 @@ 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. * @@ -543,6 +1043,23 @@ 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. * @@ -560,6 +1077,23 @@ 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. * @@ -577,6 +1111,40 @@ 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. * @@ -594,6 +1162,23 @@ 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 0b0c6684dd0..3fa0ba3e5b5 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 @@ -80,6 +80,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. * @@ -97,6 +115,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. * @@ -115,6 +169,42 @@ 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 [Moving Resources to a @@ -136,6 +226,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 [Moving Resources to a @@ -157,6 +268,43 @@ 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 [Moving Resources to a Different @@ -177,6 +325,24 @@ 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. * @@ -195,6 +361,24 @@ 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. * @@ -211,6 +395,41 @@ 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 +448,23 @@ 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 +483,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 +517,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 +570,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 +603,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 +655,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 +705,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. * @@ -381,6 +753,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. * @@ -415,6 +805,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. * @@ -433,6 +874,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. * @@ -516,6 +973,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. * @@ -534,6 +1009,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. * @@ -552,6 +1063,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. * @@ -570,6 +1099,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. * @@ -586,6 +1133,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. * @@ -604,6 +1186,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 a5622d61287..c4afc1ac9cb 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 @@ -111,10 +111,7 @@ public void setRegion(String regionId) { return clientCall(request, AddDatabaseToolsConnectionLockResponse::builder) .logger(LOG, "addDatabaseToolsConnectionLock") - .serviceDetails( - "DatabaseTools", - "AddDatabaseToolsConnectionLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/AddDatabaseToolsConnectionLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsConnectionLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddDatabaseToolsConnectionLockRequest::builder) .basePath("/20201005") @@ -137,6 +134,48 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + addDatabaseToolsDatabaseApiGatewayConfigLock( + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsDatabaseApiGatewayConfigLockResponse::builder) + .logger(LOG, "addDatabaseToolsDatabaseApiGatewayConfigLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsDatabaseApiGatewayConfigLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsDatabaseApiGatewayConfigLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future addDatabaseToolsIdentityLock( @@ -153,10 +192,7 @@ public void setRegion(String regionId) { return clientCall(request, AddDatabaseToolsIdentityLockResponse::builder) .logger(LOG, "addDatabaseToolsIdentityLock") - .serviceDetails( - "DatabaseTools", - "AddDatabaseToolsIdentityLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/AddDatabaseToolsIdentityLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsIdentityLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddDatabaseToolsIdentityLockRequest::builder) .basePath("/20201005") @@ -179,6 +215,86 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + addDatabaseToolsMcpServerLock( + AddDatabaseToolsMcpServerLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsMcpServerLockRequest, + AddDatabaseToolsMcpServerLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsMcpServerLockResponse::builder) + .logger(LOG, "addDatabaseToolsMcpServerLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsMcpServerLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsMcpServerLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + AddDatabaseToolsMcpServerLockResponse.Builder::databaseToolsMcpServer) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsMcpServerLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsMcpServerLockResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + addDatabaseToolsMcpToolsetLock( + AddDatabaseToolsMcpToolsetLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsMcpToolsetLockRequest, + AddDatabaseToolsMcpToolsetLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsMcpToolsetLockResponse::builder) + .logger(LOG, "addDatabaseToolsMcpToolsetLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsMcpToolsetLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsMcpToolsetLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + AddDatabaseToolsMcpToolsetLockResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsMcpToolsetLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsMcpToolsetLockResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future addDatabaseToolsPrivateEndpointLock( @@ -196,10 +312,7 @@ public void setRegion(String regionId) { return clientCall(request, AddDatabaseToolsPrivateEndpointLockResponse::builder) .logger(LOG, "addDatabaseToolsPrivateEndpointLock") - .serviceDetails( - "DatabaseTools", - "AddDatabaseToolsPrivateEndpointLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/AddDatabaseToolsPrivateEndpointLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsPrivateEndpointLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddDatabaseToolsPrivateEndpointLockRequest::builder) .basePath("/20201005") @@ -223,6 +336,81 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + addDatabaseToolsSqlReportLock( + AddDatabaseToolsSqlReportLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AddDatabaseToolsSqlReportLockRequest, + AddDatabaseToolsSqlReportLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsSqlReportLockResponse::builder) + .logger(LOG, "addDatabaseToolsSqlReportLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsSqlReportLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsSqlReportLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + AddDatabaseToolsSqlReportLockResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsSqlReportLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsSqlReportLockResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + cascadingDeleteDatabaseToolsMcpServer( + CascadingDeleteDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CascadingDeleteDatabaseToolsMcpServerRequest, + CascadingDeleteDatabaseToolsMcpServerResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + return clientCall(request, CascadingDeleteDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "cascadingDeleteDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "CascadingDeleteDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CascadingDeleteDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("cascadingDelete") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + CascadingDeleteDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CascadingDeleteDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeDatabaseToolsConnectionCompartment( @@ -241,10 +429,7 @@ public void setRegion(String regionId) { return clientCall(request, ChangeDatabaseToolsConnectionCompartmentResponse::builder) .logger(LOG, "changeDatabaseToolsConnectionCompartment") - .serviceDetails( - "DatabaseTools", - "ChangeDatabaseToolsConnectionCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ChangeDatabaseToolsConnectionCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsConnectionCompartment", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeDatabaseToolsConnectionCompartmentRequest::builder) .basePath("/20201005") @@ -266,6 +451,51 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future< + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> + changeDatabaseToolsDatabaseApiGatewayConfigCompartment( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails(), + "changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails is required"); + + return clientCall( + request, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsDatabaseApiGatewayConfigCompartment") + .serviceDetails( + "DatabaseTools", + "ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeDatabaseToolsIdentityCompartment( @@ -283,10 +513,7 @@ public void setRegion(String regionId) { return clientCall(request, ChangeDatabaseToolsIdentityCompartmentResponse::builder) .logger(LOG, "changeDatabaseToolsIdentityCompartment") - .serviceDetails( - "DatabaseTools", - "ChangeDatabaseToolsIdentityCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ChangeDatabaseToolsIdentityCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsIdentityCompartment", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeDatabaseToolsIdentityCompartmentRequest::builder) .basePath("/20201005") @@ -308,6 +535,83 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeDatabaseToolsMcpServerCompartment( + ChangeDatabaseToolsMcpServerCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpServerCompartmentRequest, + ChangeDatabaseToolsMcpServerCompartmentResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsMcpServerCompartmentDetails(), + "changeDatabaseToolsMcpServerCompartmentDetails is required"); + + return clientCall(request, ChangeDatabaseToolsMcpServerCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsMcpServerCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsMcpServerCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDatabaseToolsMcpServerCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDatabaseToolsMcpServerCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsMcpServerCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDatabaseToolsMcpToolsetCompartment( + ChangeDatabaseToolsMcpToolsetCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsMcpToolsetCompartmentRequest, + ChangeDatabaseToolsMcpToolsetCompartmentResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsMcpToolsetCompartmentDetails(), + "changeDatabaseToolsMcpToolsetCompartmentDetails is required"); + + return clientCall(request, ChangeDatabaseToolsMcpToolsetCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsMcpToolsetCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsMcpToolsetCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDatabaseToolsMcpToolsetCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsMcpToolsetCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeDatabaseToolsPrivateEndpointCompartment( @@ -327,9 +631,7 @@ public void setRegion(String regionId) { return clientCall(request, ChangeDatabaseToolsPrivateEndpointCompartmentResponse::builder) .logger(LOG, "changeDatabaseToolsPrivateEndpointCompartment") .serviceDetails( - "DatabaseTools", - "ChangeDatabaseToolsPrivateEndpointCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ChangeDatabaseToolsPrivateEndpointCompartment") + "DatabaseTools", "ChangeDatabaseToolsPrivateEndpointCompartment", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeDatabaseToolsPrivateEndpointCompartmentRequest::builder) .basePath("/20201005") @@ -352,6 +654,43 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeDatabaseToolsSqlReportCompartment( + ChangeDatabaseToolsSqlReportCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDatabaseToolsSqlReportCompartmentRequest, + ChangeDatabaseToolsSqlReportCompartmentResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsSqlReportCompartmentDetails(), + "changeDatabaseToolsSqlReportCompartmentDetails is required"); + + return clientCall(request, ChangeDatabaseToolsSqlReportCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsSqlReportCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsSqlReportCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDatabaseToolsSqlReportCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsSqlReportCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createDatabaseToolsConnection( @@ -391,6 +730,45 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + createDatabaseToolsDatabaseApiGatewayConfig( + CreateDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigDetails is required"); + + return clientCall(request, CreateDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createDatabaseToolsIdentity( @@ -430,52 +808,169 @@ public void setRegion(String regionId) { } @Override - public java.util.concurrent.Future - createDatabaseToolsPrivateEndpoint( - CreateDatabaseToolsPrivateEndpointRequest request, + public java.util.concurrent.Future + createDatabaseToolsMcpServer( + CreateDatabaseToolsMcpServerRequest request, final com.oracle.bmc.responses.AsyncHandler< - CreateDatabaseToolsPrivateEndpointRequest, - CreateDatabaseToolsPrivateEndpointResponse> + CreateDatabaseToolsMcpServerRequest, + CreateDatabaseToolsMcpServerResponse> handler) { Objects.requireNonNull( - request.getCreateDatabaseToolsPrivateEndpointDetails(), - "createDatabaseToolsPrivateEndpointDetails is required"); + request.getCreateDatabaseToolsMcpServerDetails(), + "createDatabaseToolsMcpServerDetails is required"); - return clientCall(request, CreateDatabaseToolsPrivateEndpointResponse::builder) - .logger(LOG, "createDatabaseToolsPrivateEndpoint") - .serviceDetails("DatabaseTools", "CreateDatabaseToolsPrivateEndpoint", "") + return clientCall(request, CreateDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "createDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsMcpServer", "") .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(CreateDatabaseToolsPrivateEndpointRequest::builder) + .requestBuilder(CreateDatabaseToolsMcpServerRequest::builder) .basePath("/20201005") - .appendPathParam("databaseToolsPrivateEndpoints") + .appendPathParam("databaseToolsMcpServers") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleBody( - com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpoint.class, - CreateDatabaseToolsPrivateEndpointResponse.Builder - ::databaseToolsPrivateEndpoint) + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + CreateDatabaseToolsMcpServerResponse.Builder::databaseToolsMcpServer) .handleResponseHeaderString( - "location", CreateDatabaseToolsPrivateEndpointResponse.Builder::location) + "location", CreateDatabaseToolsMcpServerResponse.Builder::location) .handleResponseHeaderString( - "etag", CreateDatabaseToolsPrivateEndpointResponse.Builder::etag) + "etag", CreateDatabaseToolsMcpServerResponse.Builder::etag) .handleResponseHeaderString( "opc-work-request-id", - CreateDatabaseToolsPrivateEndpointResponse.Builder::opcWorkRequestId) + CreateDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", - CreateDatabaseToolsPrivateEndpointResponse.Builder::opcRequestId) + CreateDatabaseToolsMcpServerResponse.Builder::opcRequestId) .callAsync(handler); } @Override - public java.util.concurrent.Future - deleteDatabaseToolsConnection( - DeleteDatabaseToolsConnectionRequest request, + public java.util.concurrent.Future + createDatabaseToolsMcpToolset( + CreateDatabaseToolsMcpToolsetRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteDatabaseToolsConnectionRequest, - DeleteDatabaseToolsConnectionResponse> + CreateDatabaseToolsMcpToolsetRequest, + CreateDatabaseToolsMcpToolsetResponse> + handler) { + Objects.requireNonNull( + request.getCreateDatabaseToolsMcpToolsetDetails(), + "createDatabaseToolsMcpToolsetDetails is required"); + + return clientCall(request, CreateDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "createDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + CreateDatabaseToolsMcpToolsetResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "location", CreateDatabaseToolsMcpToolsetResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsMcpToolsetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDatabaseToolsMcpToolsetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsPrivateEndpoint( + CreateDatabaseToolsPrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsPrivateEndpointRequest, + CreateDatabaseToolsPrivateEndpointResponse> + handler) { + Objects.requireNonNull( + request.getCreateDatabaseToolsPrivateEndpointDetails(), + "createDatabaseToolsPrivateEndpointDetails is required"); + + return clientCall(request, CreateDatabaseToolsPrivateEndpointResponse::builder) + .logger(LOG, "createDatabaseToolsPrivateEndpoint") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsPrivateEndpoint", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsPrivateEndpointRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsPrivateEndpoints") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpoint.class, + CreateDatabaseToolsPrivateEndpointResponse.Builder + ::databaseToolsPrivateEndpoint) + .handleResponseHeaderString( + "location", CreateDatabaseToolsPrivateEndpointResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsPrivateEndpointResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDatabaseToolsPrivateEndpointResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsPrivateEndpointResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsSqlReport( + CreateDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsSqlReportRequest, + CreateDatabaseToolsSqlReportResponse> + handler) { + Objects.requireNonNull( + request.getCreateDatabaseToolsSqlReportDetails(), + "createDatabaseToolsSqlReportDetails is required"); + + return clientCall(request, CreateDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "createDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + CreateDatabaseToolsSqlReportResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "location", CreateDatabaseToolsSqlReportResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsSqlReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDatabaseToolsSqlReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsConnection( + DeleteDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsConnectionRequest, + DeleteDatabaseToolsConnectionResponse> handler) { Validate.notBlank( @@ -484,10 +979,7 @@ public void setRegion(String regionId) { return clientCall(request, DeleteDatabaseToolsConnectionResponse::builder) .logger(LOG, "deleteDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "DeleteDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/DeleteDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -506,6 +998,37 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteDatabaseToolsDatabaseApiGatewayConfig( + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteDatabaseToolsIdentity( @@ -520,10 +1043,7 @@ public void setRegion(String regionId) { return clientCall(request, DeleteDatabaseToolsIdentityResponse::builder) .logger(LOG, "deleteDatabaseToolsIdentity") - .serviceDetails( - "DatabaseTools", - "DeleteDatabaseToolsIdentity", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/DeleteDatabaseToolsIdentity") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsIdentity", "") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteDatabaseToolsIdentityRequest::builder) .basePath("/20201005") @@ -541,6 +1061,74 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteDatabaseToolsMcpServer( + DeleteDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpServerRequest, + DeleteDatabaseToolsMcpServerResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "deleteDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsMcpToolset( + DeleteDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsMcpToolsetRequest, + DeleteDatabaseToolsMcpToolsetResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "deleteDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDatabaseToolsMcpToolsetResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteDatabaseToolsPrivateEndpoint( @@ -556,10 +1144,7 @@ public void setRegion(String regionId) { return clientCall(request, DeleteDatabaseToolsPrivateEndpointResponse::builder) .logger(LOG, "deleteDatabaseToolsPrivateEndpoint") - .serviceDetails( - "DatabaseTools", - "DeleteDatabaseToolsPrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/DeleteDatabaseToolsPrivateEndpoint") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsPrivateEndpoint", "") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteDatabaseToolsPrivateEndpointRequest::builder) .basePath("/20201005") @@ -578,6 +1163,37 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteDatabaseToolsSqlReport( + DeleteDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsSqlReportRequest, + DeleteDatabaseToolsSqlReportResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "deleteDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDatabaseToolsConnection( @@ -593,10 +1209,7 @@ public void setRegion(String regionId) { return clientCall(request, GetDatabaseToolsConnectionResponse::builder) .logger(LOG, "getDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/GetDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "GetDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -614,6 +1227,42 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigRequest, + GetDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "GetDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + GetDatabaseToolsDatabaseApiGatewayConfigResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "etag", GetDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDatabaseToolsEndpointService( @@ -629,10 +1278,7 @@ public void setRegion(String regionId) { return clientCall(request, GetDatabaseToolsEndpointServiceResponse::builder) .logger(LOG, "getDatabaseToolsEndpointService") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsEndpointService", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/GetDatabaseToolsEndpointService") + .serviceDetails("DatabaseTools", "GetDatabaseToolsEndpointService", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsEndpointServiceRequest::builder) .basePath("/20201005") @@ -664,10 +1310,7 @@ public java.util.concurrent.Future getDatabase return clientCall(request, GetDatabaseToolsIdentityResponse::builder) .logger(LOG, "getDatabaseToolsIdentity") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsIdentity", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/GetDatabaseToolsIdentity") + .serviceDetails("DatabaseTools", "GetDatabaseToolsIdentity", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsIdentityRequest::builder) .basePath("/20201005") @@ -684,6 +1327,69 @@ public java.util.concurrent.Future getDatabase .callAsync(handler); } + @Override + public java.util.concurrent.Future getDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpServerRequest, GetDatabaseToolsMcpServerResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + return clientCall(request, GetDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "getDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "GetDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + GetDatabaseToolsMcpServerResponse.Builder::databaseToolsMcpServer) + .handleResponseHeaderString("etag", GetDatabaseToolsMcpServerResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsMcpToolsetRequest, + GetDatabaseToolsMcpToolsetResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + + return clientCall(request, GetDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "getDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "GetDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + GetDatabaseToolsMcpToolsetResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "etag", GetDatabaseToolsMcpToolsetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDatabaseToolsPrivateEndpoint( @@ -699,10 +1405,7 @@ public java.util.concurrent.Future getDatabase return clientCall(request, GetDatabaseToolsPrivateEndpointResponse::builder) .logger(LOG, "getDatabaseToolsPrivateEndpoint") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsPrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/GetDatabaseToolsPrivateEndpoint") + .serviceDetails("DatabaseTools", "GetDatabaseToolsPrivateEndpoint", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsPrivateEndpointRequest::builder) .basePath("/20201005") @@ -722,6 +1425,36 @@ public java.util.concurrent.Future getDatabase .callAsync(handler); } + @Override + public java.util.concurrent.Future getDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsSqlReportRequest, GetDatabaseToolsSqlReportResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + + return clientCall(request, GetDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "getDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "GetDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + GetDatabaseToolsSqlReportResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString("etag", GetDatabaseToolsSqlReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -733,10 +1466,7 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails( - "DatabaseTools", - "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/GetWorkRequest") + .serviceDetails("DatabaseTools", "GetWorkRequest", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20201005") @@ -766,10 +1496,7 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, ListDatabaseToolsConnectionsResponse::builder) .logger(LOG, "listDatabaseToolsConnections") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsConnections", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ListDatabaseToolsConnections") + .serviceDetails("DatabaseTools", "ListDatabaseToolsConnections", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListDatabaseToolsConnectionsRequest::builder) .basePath("/20201005") @@ -809,6 +1536,50 @@ public java.util.concurrent.Future getWorkRequest( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigs( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsDatabaseApiGatewayConfigsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigs") + .serviceDetails("DatabaseTools", "ListDatabaseToolsDatabaseApiGatewayConfigs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsDatabaseApiGatewayConfigsRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigCollection.class, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listDatabaseToolsEndpointServices( @@ -821,10 +1592,7 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, ListDatabaseToolsEndpointServicesResponse::builder) .logger(LOG, "listDatabaseToolsEndpointServices") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsEndpointServices", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/ListDatabaseToolsEndpointServices") + .serviceDetails("DatabaseTools", "ListDatabaseToolsEndpointServices", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListDatabaseToolsEndpointServicesRequest::builder) .basePath("/20201005") @@ -836,48 +1604,167 @@ public java.util.concurrent.Future getWorkRequest( .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("displayName", request.getDisplayName()) - .appendQueryParam("name", request.getName()) + .appendQueryParam("name", request.getName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection + .class, + ListDatabaseToolsEndpointServicesResponse.Builder + ::databaseToolsEndpointServiceCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsEndpointServicesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsEndpointServicesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDatabaseToolsIdentities( + ListDatabaseToolsIdentitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsIdentitiesRequest, + ListDatabaseToolsIdentitiesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsIdentitiesResponse::builder) + .logger(LOG, "listDatabaseToolsIdentities") + .serviceDetails("DatabaseTools", "ListDatabaseToolsIdentities", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsIdentitiesRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsIdentities") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam( + "databaseToolsConnectionId", request.getDatabaseToolsConnectionId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection.class, + ListDatabaseToolsIdentitiesResponse.Builder + ::databaseToolsIdentityCollection) + .handleResponseHeaderString( + "opc-request-id", ListDatabaseToolsIdentitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDatabaseToolsIdentitiesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDatabaseToolsMcpServers( + ListDatabaseToolsMcpServersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsMcpServersRequest, + ListDatabaseToolsMcpServersResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsMcpServersResponse::builder) + .logger(LOG, "listDatabaseToolsMcpServers") + .serviceDetails("DatabaseTools", "ListDatabaseToolsMcpServers", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsMcpServersRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam( + "databaseToolsConnectionId", request.getDatabaseToolsConnectionId()) + .appendQueryParam( + "relatedResourceIdentifier", request.getRelatedResourceIdentifier()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection.class, + ListDatabaseToolsMcpServersResponse.Builder + ::databaseToolsMcpServerCollection) + .handleResponseHeaderString( + "opc-request-id", ListDatabaseToolsMcpServersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDatabaseToolsMcpServersResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDatabaseToolsMcpToolsetVersions( + ListDatabaseToolsMcpToolsetVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsMcpToolsetVersionsRequest, + ListDatabaseToolsMcpToolsetVersionsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsMcpToolsetVersionsResponse::builder) + .logger(LOG, "listDatabaseToolsMcpToolsetVersions") + .serviceDetails("DatabaseTools", "ListDatabaseToolsMcpToolsetVersions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsMcpToolsetVersionsRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsetVersions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("databaseToolsMcpServerId", request.getDatabaseToolsMcpServerId()) + .appendQueryParam("displayName", request.getDisplayName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( - com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection .class, - ListDatabaseToolsEndpointServicesResponse.Builder - ::databaseToolsEndpointServiceCollection) + ListDatabaseToolsMcpToolsetVersionsResponse.Builder + ::databaseToolsMcpToolsetVersionCollection) .handleResponseHeaderString( "opc-request-id", - ListDatabaseToolsEndpointServicesResponse.Builder::opcRequestId) + ListDatabaseToolsMcpToolsetVersionsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", - ListDatabaseToolsEndpointServicesResponse.Builder::opcNextPage) + ListDatabaseToolsMcpToolsetVersionsResponse.Builder::opcNextPage) .callAsync(handler); } @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) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListDatabaseToolsIdentitiesResponse::builder) - .logger(LOG, "listDatabaseToolsIdentities") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsIdentities", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ListDatabaseToolsIdentities") + return clientCall(request, ListDatabaseToolsMcpToolsetsResponse::builder) + .logger(LOG, "listDatabaseToolsMcpToolsets") + .serviceDetails("DatabaseTools", "ListDatabaseToolsMcpToolsets", "") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListDatabaseToolsIdentitiesRequest::builder) + .requestBuilder(ListDatabaseToolsMcpToolsetsRequest::builder) .basePath("/20201005") - .appendPathParam("databaseToolsIdentities") + .appendPathParam("databaseToolsMcpToolsets") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("displayName", request.getDisplayName()) - .appendQueryParam( - "databaseToolsConnectionId", request.getDatabaseToolsConnectionId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -886,16 +1773,18 @@ public java.util.concurrent.Future getWorkRequest( "type", request.getType(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("databaseToolsMcpServerId", request.getDatabaseToolsMcpServerId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( - com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection.class, - ListDatabaseToolsIdentitiesResponse.Builder - ::databaseToolsIdentityCollection) + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection.class, + ListDatabaseToolsMcpToolsetsResponse.Builder + ::databaseToolsMcpToolsetCollection) .handleResponseHeaderString( - "opc-request-id", ListDatabaseToolsIdentitiesResponse.Builder::opcRequestId) + "opc-request-id", + ListDatabaseToolsMcpToolsetsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListDatabaseToolsIdentitiesResponse.Builder::opcNextPage) + "opc-next-page", ListDatabaseToolsMcpToolsetsResponse.Builder::opcNextPage) .callAsync(handler); } @@ -911,10 +1800,7 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, ListDatabaseToolsPrivateEndpointsResponse::builder) .logger(LOG, "listDatabaseToolsPrivateEndpoints") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsPrivateEndpoints", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ListDatabaseToolsPrivateEndpoints") + .serviceDetails("DatabaseTools", "ListDatabaseToolsPrivateEndpoints", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListDatabaseToolsPrivateEndpointsRequest::builder) .basePath("/20201005") @@ -944,6 +1830,47 @@ public java.util.concurrent.Future getWorkRequest( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listDatabaseToolsSqlReports( + ListDatabaseToolsSqlReportsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsSqlReportsRequest, + ListDatabaseToolsSqlReportsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsSqlReportsResponse::builder) + .logger(LOG, "listDatabaseToolsSqlReports") + .serviceDetails("DatabaseTools", "ListDatabaseToolsSqlReports", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsSqlReportsRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection.class, + ListDatabaseToolsSqlReportsResponse.Builder + ::databaseToolsSqlReportCollection) + .handleResponseHeaderString( + "opc-request-id", ListDatabaseToolsSqlReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDatabaseToolsSqlReportsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, @@ -955,10 +1882,7 @@ public java.util.concurrent.Future listWorkReques return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails( - "DatabaseTools", - "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestError/ListWorkRequestErrors") + .serviceDetails("DatabaseTools", "ListWorkRequestErrors", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20201005") @@ -992,10 +1916,7 @@ public java.util.concurrent.Future listWorkRequestL return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails( - "DatabaseTools", - "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestLogEntry/ListWorkRequestLogs") + .serviceDetails("DatabaseTools", "ListWorkRequestLogs", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20201005") @@ -1028,10 +1949,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails( - "DatabaseTools", - "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/ListWorkRequests") + .serviceDetails("DatabaseTools", "ListWorkRequests", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20201005") @@ -1071,10 +1989,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, RefreshDatabaseToolsIdentityCredentialResponse::builder) .logger(LOG, "refreshDatabaseToolsIdentityCredential") - .serviceDetails( - "DatabaseTools", - "RefreshDatabaseToolsIdentityCredential", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RefreshDatabaseToolsIdentityCredential") + .serviceDetails("DatabaseTools", "RefreshDatabaseToolsIdentityCredential", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RefreshDatabaseToolsIdentityCredentialRequest::builder) .basePath("/20201005") @@ -1112,10 +2027,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, RemoveDatabaseToolsConnectionLockResponse::builder) .logger(LOG, "removeDatabaseToolsConnectionLock") - .serviceDetails( - "DatabaseTools", - "RemoveDatabaseToolsConnectionLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/RemoveDatabaseToolsConnectionLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsConnectionLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveDatabaseToolsConnectionLockRequest::builder) .basePath("/20201005") @@ -1138,6 +2050,51 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + removeDatabaseToolsDatabaseApiGatewayConfigLock( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse::builder) + .logger(LOG, "removeDatabaseToolsDatabaseApiGatewayConfigLock") + .serviceDetails( + "DatabaseTools", "RemoveDatabaseToolsDatabaseApiGatewayConfigLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "etag", + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future removeDatabaseToolsIdentityLock( @@ -1154,10 +2111,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, RemoveDatabaseToolsIdentityLockResponse::builder) .logger(LOG, "removeDatabaseToolsIdentityLock") - .serviceDetails( - "DatabaseTools", - "RemoveDatabaseToolsIdentityLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RemoveDatabaseToolsIdentityLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsIdentityLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveDatabaseToolsIdentityLockRequest::builder) .basePath("/20201005") @@ -1180,6 +2134,86 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + removeDatabaseToolsMcpServerLock( + RemoveDatabaseToolsMcpServerLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsMcpServerLockRequest, + RemoveDatabaseToolsMcpServerLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsMcpServerLockResponse::builder) + .logger(LOG, "removeDatabaseToolsMcpServerLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsMcpServerLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsMcpServerLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + RemoveDatabaseToolsMcpServerLockResponse.Builder::databaseToolsMcpServer) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsMcpServerLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", RemoveDatabaseToolsMcpServerLockResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + removeDatabaseToolsMcpToolsetLock( + RemoveDatabaseToolsMcpToolsetLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsMcpToolsetLockRequest, + RemoveDatabaseToolsMcpToolsetLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsMcpToolsetLockResponse::builder) + .logger(LOG, "removeDatabaseToolsMcpToolsetLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsMcpToolsetLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsMcpToolsetLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + RemoveDatabaseToolsMcpToolsetLockResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsMcpToolsetLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", RemoveDatabaseToolsMcpToolsetLockResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future removeDatabaseToolsPrivateEndpointLock( @@ -1197,10 +2231,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, RemoveDatabaseToolsPrivateEndpointLockResponse::builder) .logger(LOG, "removeDatabaseToolsPrivateEndpointLock") - .serviceDetails( - "DatabaseTools", - "RemoveDatabaseToolsPrivateEndpointLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/RemoveDatabaseToolsPrivateEndpointLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsPrivateEndpointLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveDatabaseToolsPrivateEndpointLockRequest::builder) .basePath("/20201005") @@ -1224,6 +2255,46 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + removeDatabaseToolsSqlReportLock( + RemoveDatabaseToolsSqlReportLockRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemoveDatabaseToolsSqlReportLockRequest, + RemoveDatabaseToolsSqlReportLockResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsSqlReportLockResponse::builder) + .logger(LOG, "removeDatabaseToolsSqlReportLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsSqlReportLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsSqlReportLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + RemoveDatabaseToolsSqlReportLockResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsSqlReportLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", RemoveDatabaseToolsSqlReportLockResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateDatabaseToolsConnection( @@ -1242,10 +2313,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, UpdateDatabaseToolsConnectionResponse::builder) .logger(LOG, "updateDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "UpdateDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/UpdateDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -1265,6 +2333,48 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateDatabaseToolsDatabaseApiGatewayConfig( + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigDetails is required"); + + return clientCall(request, UpdateDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "etag", UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateDatabaseToolsIdentity( @@ -1282,10 +2392,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, UpdateDatabaseToolsIdentityResponse::builder) .logger(LOG, "updateDatabaseToolsIdentity") - .serviceDetails( - "DatabaseTools", - "UpdateDatabaseToolsIdentity", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/UpdateDatabaseToolsIdentity") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsIdentity", "") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateDatabaseToolsIdentityRequest::builder) .basePath("/20201005") @@ -1304,6 +2411,82 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateDatabaseToolsMcpServer( + UpdateDatabaseToolsMcpServerRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpServerRequest, + UpdateDatabaseToolsMcpServerResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsMcpServerDetails(), + "updateDatabaseToolsMcpServerDetails is required"); + + return clientCall(request, UpdateDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "updateDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateDatabaseToolsMcpToolset( + UpdateDatabaseToolsMcpToolsetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsMcpToolsetRequest, + UpdateDatabaseToolsMcpToolsetResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsMcpToolsetDetails(), + "updateDatabaseToolsMcpToolsetDetails is required"); + + return clientCall(request, UpdateDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "updateDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDatabaseToolsMcpToolsetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateDatabaseToolsPrivateEndpoint( @@ -1322,10 +2505,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, UpdateDatabaseToolsPrivateEndpointResponse::builder) .logger(LOG, "updateDatabaseToolsPrivateEndpoint") - .serviceDetails( - "DatabaseTools", - "UpdateDatabaseToolsPrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/UpdateDatabaseToolsPrivateEndpoint") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsPrivateEndpoint", "") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateDatabaseToolsPrivateEndpointRequest::builder) .basePath("/20201005") @@ -1345,6 +2525,46 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateDatabaseToolsSqlReport( + UpdateDatabaseToolsSqlReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsSqlReportRequest, + UpdateDatabaseToolsSqlReportResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsSqlReportDetails(), + "updateDatabaseToolsSqlReportDetails is required"); + + return clientCall(request, UpdateDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "updateDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + UpdateDatabaseToolsSqlReportResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "etag", UpdateDatabaseToolsSqlReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future validateDatabaseToolsConnection( @@ -1363,10 +2583,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ValidateDatabaseToolsConnectionResponse::builder) .logger(LOG, "validateDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "ValidateDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ValidateDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "ValidateDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ValidateDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -1406,10 +2623,7 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ValidateDatabaseToolsIdentityCredentialResponse::builder) .logger(LOG, "validateDatabaseToolsIdentityCredential") - .serviceDetails( - "DatabaseTools", - "ValidateDatabaseToolsIdentityCredential", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential") + .serviceDetails("DatabaseTools", "ValidateDatabaseToolsIdentityCredential", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ValidateDatabaseToolsIdentityCredentialRequest::builder) .basePath("/20201005") 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 c2f257ead7c..2ee1e1633b6 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 @@ -134,10 +134,7 @@ public AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( return clientCall(request, AddDatabaseToolsConnectionLockResponse::builder) .logger(LOG, "addDatabaseToolsConnectionLock") - .serviceDetails( - "DatabaseTools", - "AddDatabaseToolsConnectionLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/AddDatabaseToolsConnectionLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsConnectionLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddDatabaseToolsConnectionLockRequest::builder) .basePath("/20201005") @@ -160,6 +157,44 @@ public AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( .callSync(); } + @Override + public AddDatabaseToolsDatabaseApiGatewayConfigLockResponse + addDatabaseToolsDatabaseApiGatewayConfigLock( + AddDatabaseToolsDatabaseApiGatewayConfigLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsDatabaseApiGatewayConfigLockResponse::builder) + .logger(LOG, "addDatabaseToolsDatabaseApiGatewayConfigLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsDatabaseApiGatewayConfigLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsDatabaseApiGatewayConfigLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder::etag) + .callSync(); + } + @Override public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( AddDatabaseToolsIdentityLockRequest request) { @@ -171,10 +206,7 @@ public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( return clientCall(request, AddDatabaseToolsIdentityLockResponse::builder) .logger(LOG, "addDatabaseToolsIdentityLock") - .serviceDetails( - "DatabaseTools", - "AddDatabaseToolsIdentityLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/AddDatabaseToolsIdentityLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsIdentityLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddDatabaseToolsIdentityLockRequest::builder) .basePath("/20201005") @@ -197,6 +229,76 @@ public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( .callSync(); } + @Override + public AddDatabaseToolsMcpServerLockResponse addDatabaseToolsMcpServerLock( + AddDatabaseToolsMcpServerLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsMcpServerLockResponse::builder) + .logger(LOG, "addDatabaseToolsMcpServerLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsMcpServerLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsMcpServerLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + AddDatabaseToolsMcpServerLockResponse.Builder::databaseToolsMcpServer) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsMcpServerLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsMcpServerLockResponse.Builder::etag) + .callSync(); + } + + @Override + public AddDatabaseToolsMcpToolsetLockResponse addDatabaseToolsMcpToolsetLock( + AddDatabaseToolsMcpToolsetLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsMcpToolsetLockResponse::builder) + .logger(LOG, "addDatabaseToolsMcpToolsetLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsMcpToolsetLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsMcpToolsetLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + AddDatabaseToolsMcpToolsetLockResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsMcpToolsetLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsMcpToolsetLockResponse.Builder::etag) + .callSync(); + } + @Override public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpointLock( AddDatabaseToolsPrivateEndpointLockRequest request) { @@ -209,10 +311,7 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi return clientCall(request, AddDatabaseToolsPrivateEndpointLockResponse::builder) .logger(LOG, "addDatabaseToolsPrivateEndpointLock") - .serviceDetails( - "DatabaseTools", - "AddDatabaseToolsPrivateEndpointLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/AddDatabaseToolsPrivateEndpointLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsPrivateEndpointLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddDatabaseToolsPrivateEndpointLockRequest::builder) .basePath("/20201005") @@ -236,6 +335,71 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi .callSync(); } + @Override + public AddDatabaseToolsSqlReportLockResponse addDatabaseToolsSqlReportLock( + AddDatabaseToolsSqlReportLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getAddResourceLockDetails(), "addResourceLockDetails is required"); + + return clientCall(request, AddDatabaseToolsSqlReportLockResponse::builder) + .logger(LOG, "addDatabaseToolsSqlReportLock") + .serviceDetails("DatabaseTools", "AddDatabaseToolsSqlReportLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AddDatabaseToolsSqlReportLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendPathParam("actions") + .appendPathParam("addLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + AddDatabaseToolsSqlReportLockResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "opc-request-id", + AddDatabaseToolsSqlReportLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", AddDatabaseToolsSqlReportLockResponse.Builder::etag) + .callSync(); + } + + @Override + public CascadingDeleteDatabaseToolsMcpServerResponse cascadingDeleteDatabaseToolsMcpServer( + CascadingDeleteDatabaseToolsMcpServerRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + return clientCall(request, CascadingDeleteDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "cascadingDeleteDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "CascadingDeleteDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CascadingDeleteDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("cascadingDelete") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + CascadingDeleteDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CascadingDeleteDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeDatabaseToolsConnectionCompartmentResponse changeDatabaseToolsConnectionCompartment( @@ -250,10 +414,7 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi return clientCall(request, ChangeDatabaseToolsConnectionCompartmentResponse::builder) .logger(LOG, "changeDatabaseToolsConnectionCompartment") - .serviceDetails( - "DatabaseTools", - "ChangeDatabaseToolsConnectionCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ChangeDatabaseToolsConnectionCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsConnectionCompartment", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeDatabaseToolsConnectionCompartmentRequest::builder) .basePath("/20201005") @@ -275,6 +436,46 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi .callSync(); } + @Override + public ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse + changeDatabaseToolsDatabaseApiGatewayConfigCompartment( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails(), + "changeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails is required"); + + return clientCall( + request, + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsDatabaseApiGatewayConfigCompartment") + .serviceDetails( + "DatabaseTools", + "ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse.Builder + ::opcRequestId) + .callSync(); + } + @Override public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentityCompartment( ChangeDatabaseToolsIdentityCompartmentRequest request) { @@ -287,10 +488,7 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit return clientCall(request, ChangeDatabaseToolsIdentityCompartmentResponse::builder) .logger(LOG, "changeDatabaseToolsIdentityCompartment") - .serviceDetails( - "DatabaseTools", - "ChangeDatabaseToolsIdentityCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ChangeDatabaseToolsIdentityCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsIdentityCompartment", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeDatabaseToolsIdentityCompartmentRequest::builder) .basePath("/20201005") @@ -312,6 +510,74 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit .callSync(); } + @Override + public ChangeDatabaseToolsMcpServerCompartmentResponse changeDatabaseToolsMcpServerCompartment( + ChangeDatabaseToolsMcpServerCompartmentRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsMcpServerCompartmentDetails(), + "changeDatabaseToolsMcpServerCompartmentDetails is required"); + + return clientCall(request, ChangeDatabaseToolsMcpServerCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsMcpServerCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsMcpServerCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDatabaseToolsMcpServerCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDatabaseToolsMcpServerCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsMcpServerCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeDatabaseToolsMcpToolsetCompartmentResponse + changeDatabaseToolsMcpToolsetCompartment( + ChangeDatabaseToolsMcpToolsetCompartmentRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsMcpToolsetCompartmentDetails(), + "changeDatabaseToolsMcpToolsetCompartmentDetails is required"); + + return clientCall(request, ChangeDatabaseToolsMcpToolsetCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsMcpToolsetCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsMcpToolsetCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDatabaseToolsMcpToolsetCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsMcpToolsetCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeDatabaseToolsPrivateEndpointCompartmentResponse changeDatabaseToolsPrivateEndpointCompartment( @@ -327,9 +593,7 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit return clientCall(request, ChangeDatabaseToolsPrivateEndpointCompartmentResponse::builder) .logger(LOG, "changeDatabaseToolsPrivateEndpointCompartment") .serviceDetails( - "DatabaseTools", - "ChangeDatabaseToolsPrivateEndpointCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ChangeDatabaseToolsPrivateEndpointCompartment") + "DatabaseTools", "ChangeDatabaseToolsPrivateEndpointCompartment", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeDatabaseToolsPrivateEndpointCompartmentRequest::builder) .basePath("/20201005") @@ -352,6 +616,38 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit .callSync(); } + @Override + public ChangeDatabaseToolsSqlReportCompartmentResponse changeDatabaseToolsSqlReportCompartment( + ChangeDatabaseToolsSqlReportCompartmentRequest request) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getChangeDatabaseToolsSqlReportCompartmentDetails(), + "changeDatabaseToolsSqlReportCompartmentDetails is required"); + + return clientCall(request, ChangeDatabaseToolsSqlReportCompartmentResponse::builder) + .logger(LOG, "changeDatabaseToolsSqlReportCompartment") + .serviceDetails("DatabaseTools", "ChangeDatabaseToolsSqlReportCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDatabaseToolsSqlReportCompartmentRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeDatabaseToolsSqlReportCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( CreateDatabaseToolsConnectionRequest request) { @@ -387,6 +683,42 @@ public CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( .callSync(); } + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigResponse + createDatabaseToolsDatabaseApiGatewayConfig( + CreateDatabaseToolsDatabaseApiGatewayConfigRequest request) { + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigDetails is required"); + + return clientCall(request, CreateDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateDatabaseToolsIdentityResponse createDatabaseToolsIdentity( CreateDatabaseToolsIdentityRequest request) { @@ -421,6 +753,76 @@ public CreateDatabaseToolsIdentityResponse createDatabaseToolsIdentity( .callSync(); } + @Override + public CreateDatabaseToolsMcpServerResponse createDatabaseToolsMcpServer( + CreateDatabaseToolsMcpServerRequest request) { + Objects.requireNonNull( + request.getCreateDatabaseToolsMcpServerDetails(), + "createDatabaseToolsMcpServerDetails is required"); + + return clientCall(request, CreateDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "createDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + CreateDatabaseToolsMcpServerResponse.Builder::databaseToolsMcpServer) + .handleResponseHeaderString( + "location", CreateDatabaseToolsMcpServerResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsMcpServerResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateDatabaseToolsMcpToolsetResponse createDatabaseToolsMcpToolset( + CreateDatabaseToolsMcpToolsetRequest request) { + Objects.requireNonNull( + request.getCreateDatabaseToolsMcpToolsetDetails(), + "createDatabaseToolsMcpToolsetDetails is required"); + + return clientCall(request, CreateDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "createDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + CreateDatabaseToolsMcpToolsetResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "location", CreateDatabaseToolsMcpToolsetResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsMcpToolsetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDatabaseToolsMcpToolsetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndpoint( CreateDatabaseToolsPrivateEndpointRequest request) { @@ -458,19 +860,51 @@ public CreateDatabaseToolsPrivateEndpointResponse createDatabaseToolsPrivateEndp } @Override - public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( - DeleteDatabaseToolsConnectionRequest request) { + public CreateDatabaseToolsSqlReportResponse createDatabaseToolsSqlReport( + CreateDatabaseToolsSqlReportRequest request) { + Objects.requireNonNull( + request.getCreateDatabaseToolsSqlReportDetails(), + "createDatabaseToolsSqlReportDetails is required"); - Validate.notBlank( + return clientCall(request, CreateDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "createDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "CreateDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + CreateDatabaseToolsSqlReportResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "location", CreateDatabaseToolsSqlReportResponse.Builder::location) + .handleResponseHeaderString( + "etag", CreateDatabaseToolsSqlReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDatabaseToolsSqlReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( + DeleteDatabaseToolsConnectionRequest request) { + + Validate.notBlank( request.getDatabaseToolsConnectionId(), "databaseToolsConnectionId must not be blank"); return clientCall(request, DeleteDatabaseToolsConnectionResponse::builder) .logger(LOG, "deleteDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "DeleteDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/DeleteDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -489,6 +923,33 @@ public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( .callSync(); } + @Override + public DeleteDatabaseToolsDatabaseApiGatewayConfigResponse + deleteDatabaseToolsDatabaseApiGatewayConfig( + DeleteDatabaseToolsDatabaseApiGatewayConfigRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( DeleteDatabaseToolsIdentityRequest request) { @@ -498,10 +959,7 @@ public DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( return clientCall(request, DeleteDatabaseToolsIdentityResponse::builder) .logger(LOG, "deleteDatabaseToolsIdentity") - .serviceDetails( - "DatabaseTools", - "DeleteDatabaseToolsIdentity", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/DeleteDatabaseToolsIdentity") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsIdentity", "") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteDatabaseToolsIdentityRequest::builder) .basePath("/20201005") @@ -519,6 +977,64 @@ public DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( .callSync(); } + @Override + public DeleteDatabaseToolsMcpServerResponse deleteDatabaseToolsMcpServer( + DeleteDatabaseToolsMcpServerRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "deleteDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteDatabaseToolsMcpToolsetResponse deleteDatabaseToolsMcpToolset( + DeleteDatabaseToolsMcpToolsetRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "deleteDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDatabaseToolsMcpToolsetResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndpoint( DeleteDatabaseToolsPrivateEndpointRequest request) { @@ -529,10 +1045,7 @@ public DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndp return clientCall(request, DeleteDatabaseToolsPrivateEndpointResponse::builder) .logger(LOG, "deleteDatabaseToolsPrivateEndpoint") - .serviceDetails( - "DatabaseTools", - "DeleteDatabaseToolsPrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/DeleteDatabaseToolsPrivateEndpoint") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsPrivateEndpoint", "") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteDatabaseToolsPrivateEndpointRequest::builder) .basePath("/20201005") @@ -551,6 +1064,32 @@ public DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndp .callSync(); } + @Override + public DeleteDatabaseToolsSqlReportResponse deleteDatabaseToolsSqlReport( + DeleteDatabaseToolsSqlReportRequest request) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + + return clientCall(request, DeleteDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "deleteDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "DeleteDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( GetDatabaseToolsConnectionRequest request) { @@ -561,10 +1100,7 @@ public GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( return clientCall(request, GetDatabaseToolsConnectionResponse::builder) .logger(LOG, "getDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/GetDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "GetDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -583,6 +1119,39 @@ public GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( .callSync(); } + @Override + public GetDatabaseToolsDatabaseApiGatewayConfigResponse + getDatabaseToolsDatabaseApiGatewayConfig( + GetDatabaseToolsDatabaseApiGatewayConfigRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "GetDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + GetDatabaseToolsDatabaseApiGatewayConfigResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "etag", GetDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetDatabaseToolsEndpointServiceResponse getDatabaseToolsEndpointService( GetDatabaseToolsEndpointServiceRequest request) { @@ -593,10 +1162,7 @@ public GetDatabaseToolsEndpointServiceResponse getDatabaseToolsEndpointService( return clientCall(request, GetDatabaseToolsEndpointServiceResponse::builder) .logger(LOG, "getDatabaseToolsEndpointService") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsEndpointService", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/GetDatabaseToolsEndpointService") + .serviceDetails("DatabaseTools", "GetDatabaseToolsEndpointService", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsEndpointServiceRequest::builder) .basePath("/20201005") @@ -626,10 +1192,7 @@ public GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( return clientCall(request, GetDatabaseToolsIdentityResponse::builder) .logger(LOG, "getDatabaseToolsIdentity") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsIdentity", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/GetDatabaseToolsIdentity") + .serviceDetails("DatabaseTools", "GetDatabaseToolsIdentity", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsIdentityRequest::builder) .basePath("/20201005") @@ -647,6 +1210,63 @@ public GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( .callSync(); } + @Override + public GetDatabaseToolsMcpServerResponse getDatabaseToolsMcpServer( + GetDatabaseToolsMcpServerRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + + return clientCall(request, GetDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "getDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "GetDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + GetDatabaseToolsMcpServerResponse.Builder::databaseToolsMcpServer) + .handleResponseHeaderString("etag", GetDatabaseToolsMcpServerResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDatabaseToolsMcpToolsetResponse getDatabaseToolsMcpToolset( + GetDatabaseToolsMcpToolsetRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + + return clientCall(request, GetDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "getDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "GetDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + GetDatabaseToolsMcpToolsetResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "etag", GetDatabaseToolsMcpToolsetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( GetDatabaseToolsPrivateEndpointRequest request) { @@ -657,10 +1277,7 @@ public GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( return clientCall(request, GetDatabaseToolsPrivateEndpointResponse::builder) .logger(LOG, "getDatabaseToolsPrivateEndpoint") - .serviceDetails( - "DatabaseTools", - "GetDatabaseToolsPrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/GetDatabaseToolsPrivateEndpoint") + .serviceDetails("DatabaseTools", "GetDatabaseToolsPrivateEndpoint", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetDatabaseToolsPrivateEndpointRequest::builder) .basePath("/20201005") @@ -681,6 +1298,34 @@ public GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( .callSync(); } + @Override + public GetDatabaseToolsSqlReportResponse getDatabaseToolsSqlReport( + GetDatabaseToolsSqlReportRequest request) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + + return clientCall(request, GetDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "getDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "GetDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + GetDatabaseToolsSqlReportResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString("etag", GetDatabaseToolsSqlReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { @@ -688,10 +1333,7 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails( - "DatabaseTools", - "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/GetWorkRequest") + .serviceDetails("DatabaseTools", "GetWorkRequest", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20201005") @@ -717,10 +1359,7 @@ public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( return clientCall(request, ListDatabaseToolsConnectionsResponse::builder) .logger(LOG, "listDatabaseToolsConnections") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsConnections", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ListDatabaseToolsConnections") + .serviceDetails("DatabaseTools", "ListDatabaseToolsConnections", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListDatabaseToolsConnectionsRequest::builder) .basePath("/20201005") @@ -750,77 +1389,222 @@ public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.databasetools.model.DatabaseToolsConnectionCollection.class, - ListDatabaseToolsConnectionsResponse.Builder - ::databaseToolsConnectionCollection) + com.oracle.bmc.databasetools.model.DatabaseToolsConnectionCollection.class, + ListDatabaseToolsConnectionsResponse.Builder + ::databaseToolsConnectionCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsConnectionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDatabaseToolsConnectionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigsResponse + listDatabaseToolsDatabaseApiGatewayConfigs( + ListDatabaseToolsDatabaseApiGatewayConfigsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsDatabaseApiGatewayConfigsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigs") + .serviceDetails("DatabaseTools", "ListDatabaseToolsDatabaseApiGatewayConfigs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsDatabaseApiGatewayConfigsRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model + .DatabaseToolsDatabaseApiGatewayConfigCollection.class, + ListDatabaseToolsDatabaseApiGatewayConfigsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDatabaseToolsEndpointServicesResponse listDatabaseToolsEndpointServices( + ListDatabaseToolsEndpointServicesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsEndpointServicesResponse::builder) + .logger(LOG, "listDatabaseToolsEndpointServices") + .serviceDetails("DatabaseTools", "ListDatabaseToolsEndpointServices", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsEndpointServicesRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsEndpointServices") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("name", request.getName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection + .class, + ListDatabaseToolsEndpointServicesResponse.Builder + ::databaseToolsEndpointServiceCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsEndpointServicesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsEndpointServicesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( + ListDatabaseToolsIdentitiesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsIdentitiesResponse::builder) + .logger(LOG, "listDatabaseToolsIdentities") + .serviceDetails("DatabaseTools", "ListDatabaseToolsIdentities", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsIdentitiesRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsIdentities") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam( + "databaseToolsConnectionId", request.getDatabaseToolsConnectionId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection.class, + ListDatabaseToolsIdentitiesResponse.Builder + ::databaseToolsIdentityCollection) + .handleResponseHeaderString( + "opc-request-id", ListDatabaseToolsIdentitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDatabaseToolsIdentitiesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListDatabaseToolsMcpServersResponse listDatabaseToolsMcpServers( + ListDatabaseToolsMcpServersRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsMcpServersResponse::builder) + .logger(LOG, "listDatabaseToolsMcpServers") + .serviceDetails("DatabaseTools", "ListDatabaseToolsMcpServers", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsMcpServersRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam( + "databaseToolsConnectionId", request.getDatabaseToolsConnectionId()) + .appendQueryParam( + "relatedResourceIdentifier", request.getRelatedResourceIdentifier()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection.class, + ListDatabaseToolsMcpServersResponse.Builder + ::databaseToolsMcpServerCollection) .handleResponseHeaderString( - "opc-request-id", - ListDatabaseToolsConnectionsResponse.Builder::opcRequestId) + "opc-request-id", ListDatabaseToolsMcpServersResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListDatabaseToolsConnectionsResponse.Builder::opcNextPage) + "opc-next-page", ListDatabaseToolsMcpServersResponse.Builder::opcNextPage) .callSync(); } @Override - public ListDatabaseToolsEndpointServicesResponse listDatabaseToolsEndpointServices( - ListDatabaseToolsEndpointServicesRequest request) { + public ListDatabaseToolsMcpToolsetVersionsResponse listDatabaseToolsMcpToolsetVersions( + ListDatabaseToolsMcpToolsetVersionsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListDatabaseToolsEndpointServicesResponse::builder) - .logger(LOG, "listDatabaseToolsEndpointServices") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsEndpointServices", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/ListDatabaseToolsEndpointServices") + return clientCall(request, ListDatabaseToolsMcpToolsetVersionsResponse::builder) + .logger(LOG, "listDatabaseToolsMcpToolsetVersions") + .serviceDetails("DatabaseTools", "ListDatabaseToolsMcpToolsetVersions", "") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListDatabaseToolsEndpointServicesRequest::builder) + .requestBuilder(ListDatabaseToolsMcpToolsetVersionsRequest::builder) .basePath("/20201005") - .appendPathParam("databaseToolsEndpointServices") + .appendPathParam("databaseToolsMcpToolsetVersions") .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("limit", request.getLimit()) - .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) - .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("databaseToolsMcpServerId", request.getDatabaseToolsMcpServerId()) .appendQueryParam("displayName", request.getDisplayName()) - .appendQueryParam("name", request.getName()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection .class, - ListDatabaseToolsEndpointServicesResponse.Builder - ::databaseToolsEndpointServiceCollection) + ListDatabaseToolsMcpToolsetVersionsResponse.Builder + ::databaseToolsMcpToolsetVersionCollection) .handleResponseHeaderString( "opc-request-id", - ListDatabaseToolsEndpointServicesResponse.Builder::opcRequestId) + ListDatabaseToolsMcpToolsetVersionsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", - ListDatabaseToolsEndpointServicesResponse.Builder::opcNextPage) + ListDatabaseToolsMcpToolsetVersionsResponse.Builder::opcNextPage) .callSync(); } @Override - public ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( - ListDatabaseToolsIdentitiesRequest request) { + public ListDatabaseToolsMcpToolsetsResponse listDatabaseToolsMcpToolsets( + ListDatabaseToolsMcpToolsetsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - return clientCall(request, ListDatabaseToolsIdentitiesResponse::builder) - .logger(LOG, "listDatabaseToolsIdentities") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsIdentities", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ListDatabaseToolsIdentities") + return clientCall(request, ListDatabaseToolsMcpToolsetsResponse::builder) + .logger(LOG, "listDatabaseToolsMcpToolsets") + .serviceDetails("DatabaseTools", "ListDatabaseToolsMcpToolsets", "") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListDatabaseToolsIdentitiesRequest::builder) + .requestBuilder(ListDatabaseToolsMcpToolsetsRequest::builder) .basePath("/20201005") - .appendPathParam("databaseToolsIdentities") + .appendPathParam("databaseToolsMcpToolsets") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("displayName", request.getDisplayName()) - .appendQueryParam( - "databaseToolsConnectionId", request.getDatabaseToolsConnectionId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -829,17 +1613,19 @@ public ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( "type", request.getType(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("databaseToolsMcpServerId", request.getDatabaseToolsMcpServerId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleBody( - com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection.class, - ListDatabaseToolsIdentitiesResponse.Builder - ::databaseToolsIdentityCollection) + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection.class, + ListDatabaseToolsMcpToolsetsResponse.Builder + ::databaseToolsMcpToolsetCollection) .handleResponseHeaderString( - "opc-request-id", ListDatabaseToolsIdentitiesResponse.Builder::opcRequestId) + "opc-request-id", + ListDatabaseToolsMcpToolsetsResponse.Builder::opcRequestId) .handleResponseHeaderString( - "opc-next-page", ListDatabaseToolsIdentitiesResponse.Builder::opcNextPage) + "opc-next-page", ListDatabaseToolsMcpToolsetsResponse.Builder::opcNextPage) .callSync(); } @@ -850,10 +1636,7 @@ public ListDatabaseToolsPrivateEndpointsResponse listDatabaseToolsPrivateEndpoin return clientCall(request, ListDatabaseToolsPrivateEndpointsResponse::builder) .logger(LOG, "listDatabaseToolsPrivateEndpoints") - .serviceDetails( - "DatabaseTools", - "ListDatabaseToolsPrivateEndpoints", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ListDatabaseToolsPrivateEndpoints") + .serviceDetails("DatabaseTools", "ListDatabaseToolsPrivateEndpoints", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListDatabaseToolsPrivateEndpointsRequest::builder) .basePath("/20201005") @@ -884,6 +1667,43 @@ public ListDatabaseToolsPrivateEndpointsResponse listDatabaseToolsPrivateEndpoin .callSync(); } + @Override + public ListDatabaseToolsSqlReportsResponse listDatabaseToolsSqlReports( + ListDatabaseToolsSqlReportsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListDatabaseToolsSqlReportsResponse::builder) + .logger(LOG, "listDatabaseToolsSqlReports") + .serviceDetails("DatabaseTools", "ListDatabaseToolsSqlReports", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsSqlReportsRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendListQueryParam( + "type", + request.getType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection.class, + ListDatabaseToolsSqlReportsResponse.Builder + ::databaseToolsSqlReportCollection) + .handleResponseHeaderString( + "opc-request-id", ListDatabaseToolsSqlReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDatabaseToolsSqlReportsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListWorkRequestErrorsResponse listWorkRequestErrors( ListWorkRequestErrorsRequest request) { @@ -892,10 +1712,7 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails( - "DatabaseTools", - "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestError/ListWorkRequestErrors") + .serviceDetails("DatabaseTools", "ListWorkRequestErrors", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20201005") @@ -926,10 +1743,7 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails( - "DatabaseTools", - "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestLogEntry/ListWorkRequestLogs") + .serviceDetails("DatabaseTools", "ListWorkRequestLogs", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20201005") @@ -959,10 +1773,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails( - "DatabaseTools", - "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/ListWorkRequests") + .serviceDetails("DatabaseTools", "ListWorkRequests", "") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20201005") @@ -998,10 +1809,7 @@ public RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdenti return clientCall(request, RefreshDatabaseToolsIdentityCredentialResponse::builder) .logger(LOG, "refreshDatabaseToolsIdentityCredential") - .serviceDetails( - "DatabaseTools", - "RefreshDatabaseToolsIdentityCredential", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RefreshDatabaseToolsIdentityCredential") + .serviceDetails("DatabaseTools", "RefreshDatabaseToolsIdentityCredential", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RefreshDatabaseToolsIdentityCredentialRequest::builder) .basePath("/20201005") @@ -1034,10 +1842,7 @@ public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLo return clientCall(request, RemoveDatabaseToolsConnectionLockResponse::builder) .logger(LOG, "removeDatabaseToolsConnectionLock") - .serviceDetails( - "DatabaseTools", - "RemoveDatabaseToolsConnectionLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/RemoveDatabaseToolsConnectionLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsConnectionLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveDatabaseToolsConnectionLockRequest::builder) .basePath("/20201005") @@ -1060,6 +1865,47 @@ public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLo .callSync(); } + @Override + public RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse + removeDatabaseToolsDatabaseApiGatewayConfigLock( + RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse::builder) + .logger(LOG, "removeDatabaseToolsDatabaseApiGatewayConfigLock") + .serviceDetails( + "DatabaseTools", "RemoveDatabaseToolsDatabaseApiGatewayConfigLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "etag", + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.Builder::etag) + .callSync(); + } + @Override public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( RemoveDatabaseToolsIdentityLockRequest request) { @@ -1071,10 +1917,7 @@ public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( return clientCall(request, RemoveDatabaseToolsIdentityLockResponse::builder) .logger(LOG, "removeDatabaseToolsIdentityLock") - .serviceDetails( - "DatabaseTools", - "RemoveDatabaseToolsIdentityLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RemoveDatabaseToolsIdentityLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsIdentityLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveDatabaseToolsIdentityLockRequest::builder) .basePath("/20201005") @@ -1097,6 +1940,76 @@ public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( .callSync(); } + @Override + public RemoveDatabaseToolsMcpServerLockResponse removeDatabaseToolsMcpServerLock( + RemoveDatabaseToolsMcpServerLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsMcpServerLockResponse::builder) + .logger(LOG, "removeDatabaseToolsMcpServerLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsMcpServerLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsMcpServerLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer.class, + RemoveDatabaseToolsMcpServerLockResponse.Builder::databaseToolsMcpServer) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsMcpServerLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", RemoveDatabaseToolsMcpServerLockResponse.Builder::etag) + .callSync(); + } + + @Override + public RemoveDatabaseToolsMcpToolsetLockResponse removeDatabaseToolsMcpToolsetLock( + RemoveDatabaseToolsMcpToolsetLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsMcpToolsetLockResponse::builder) + .logger(LOG, "removeDatabaseToolsMcpToolsetLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsMcpToolsetLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsMcpToolsetLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset.class, + RemoveDatabaseToolsMcpToolsetLockResponse.Builder::databaseToolsMcpToolset) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsMcpToolsetLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", RemoveDatabaseToolsMcpToolsetLockResponse.Builder::etag) + .callSync(); + } + @Override public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivateEndpointLock( RemoveDatabaseToolsPrivateEndpointLockRequest request) { @@ -1109,10 +2022,7 @@ public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivate return clientCall(request, RemoveDatabaseToolsPrivateEndpointLockResponse::builder) .logger(LOG, "removeDatabaseToolsPrivateEndpointLock") - .serviceDetails( - "DatabaseTools", - "RemoveDatabaseToolsPrivateEndpointLock", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/RemoveDatabaseToolsPrivateEndpointLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsPrivateEndpointLock", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveDatabaseToolsPrivateEndpointLockRequest::builder) .basePath("/20201005") @@ -1136,6 +2046,41 @@ public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivate .callSync(); } + @Override + public RemoveDatabaseToolsSqlReportLockResponse removeDatabaseToolsSqlReportLock( + RemoveDatabaseToolsSqlReportLockRequest request) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required"); + + return clientCall(request, RemoveDatabaseToolsSqlReportLockResponse::builder) + .logger(LOG, "removeDatabaseToolsSqlReportLock") + .serviceDetails("DatabaseTools", "RemoveDatabaseToolsSqlReportLock", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemoveDatabaseToolsSqlReportLockRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendPathParam("actions") + .appendPathParam("removeLock") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + RemoveDatabaseToolsSqlReportLockResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "opc-request-id", + RemoveDatabaseToolsSqlReportLockResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", RemoveDatabaseToolsSqlReportLockResponse.Builder::etag) + .callSync(); + } + @Override public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( UpdateDatabaseToolsConnectionRequest request) { @@ -1149,10 +2094,7 @@ public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( return clientCall(request, UpdateDatabaseToolsConnectionResponse::builder) .logger(LOG, "updateDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "UpdateDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/UpdateDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -1172,6 +2114,44 @@ public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( .callSync(); } + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigResponse + updateDatabaseToolsDatabaseApiGatewayConfig( + UpdateDatabaseToolsDatabaseApiGatewayConfigRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigDetails is required"); + + return clientCall(request, UpdateDatabaseToolsDatabaseApiGatewayConfigResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfig") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsDatabaseApiGatewayConfig", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsDatabaseApiGatewayConfigRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + .class, + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder + ::databaseToolsDatabaseApiGatewayConfig) + .handleResponseHeaderString( + "etag", UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( UpdateDatabaseToolsIdentityRequest request) { @@ -1184,10 +2164,7 @@ public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( return clientCall(request, UpdateDatabaseToolsIdentityResponse::builder) .logger(LOG, "updateDatabaseToolsIdentity") - .serviceDetails( - "DatabaseTools", - "UpdateDatabaseToolsIdentity", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/UpdateDatabaseToolsIdentity") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsIdentity", "") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateDatabaseToolsIdentityRequest::builder) .basePath("/20201005") @@ -1206,6 +2183,72 @@ public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( .callSync(); } + @Override + public UpdateDatabaseToolsMcpServerResponse updateDatabaseToolsMcpServer( + UpdateDatabaseToolsMcpServerRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpServerId(), + "databaseToolsMcpServerId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsMcpServerDetails(), + "updateDatabaseToolsMcpServerDetails is required"); + + return clientCall(request, UpdateDatabaseToolsMcpServerResponse::builder) + .logger(LOG, "updateDatabaseToolsMcpServer") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsMcpServer", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsMcpServerRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpServers") + .appendPathParam(request.getDatabaseToolsMcpServerId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDatabaseToolsMcpServerResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsMcpServerResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDatabaseToolsMcpToolsetResponse updateDatabaseToolsMcpToolset( + UpdateDatabaseToolsMcpToolsetRequest request) { + + Validate.notBlank( + request.getDatabaseToolsMcpToolsetId(), + "databaseToolsMcpToolsetId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsMcpToolsetDetails(), + "updateDatabaseToolsMcpToolsetDetails is required"); + + return clientCall(request, UpdateDatabaseToolsMcpToolsetResponse::builder) + .logger(LOG, "updateDatabaseToolsMcpToolset") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsMcpToolset", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsMcpToolsetRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsMcpToolsets") + .appendPathParam(request.getDatabaseToolsMcpToolsetId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDatabaseToolsMcpToolsetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsMcpToolsetResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndpoint( UpdateDatabaseToolsPrivateEndpointRequest request) { @@ -1219,10 +2262,7 @@ public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndp return clientCall(request, UpdateDatabaseToolsPrivateEndpointResponse::builder) .logger(LOG, "updateDatabaseToolsPrivateEndpoint") - .serviceDetails( - "DatabaseTools", - "UpdateDatabaseToolsPrivateEndpoint", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/UpdateDatabaseToolsPrivateEndpoint") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsPrivateEndpoint", "") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateDatabaseToolsPrivateEndpointRequest::builder) .basePath("/20201005") @@ -1242,6 +2282,41 @@ public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndp .callSync(); } + @Override + public UpdateDatabaseToolsSqlReportResponse updateDatabaseToolsSqlReport( + UpdateDatabaseToolsSqlReportRequest request) { + + Validate.notBlank( + request.getDatabaseToolsSqlReportId(), + "databaseToolsSqlReportId must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsSqlReportDetails(), + "updateDatabaseToolsSqlReportDetails is required"); + + return clientCall(request, UpdateDatabaseToolsSqlReportResponse::builder) + .logger(LOG, "updateDatabaseToolsSqlReport") + .serviceDetails("DatabaseTools", "UpdateDatabaseToolsSqlReport", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsSqlReportRequest::builder) + .basePath("/20201005") + .appendPathParam("databaseToolsSqlReports") + .appendPathParam(request.getDatabaseToolsSqlReportId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport.class, + UpdateDatabaseToolsSqlReportResponse.Builder::databaseToolsSqlReport) + .handleResponseHeaderString( + "etag", UpdateDatabaseToolsSqlReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsSqlReportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( ValidateDatabaseToolsConnectionRequest request) { @@ -1255,10 +2330,7 @@ public ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( return clientCall(request, ValidateDatabaseToolsConnectionResponse::builder) .logger(LOG, "validateDatabaseToolsConnection") - .serviceDetails( - "DatabaseTools", - "ValidateDatabaseToolsConnection", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ValidateDatabaseToolsConnection") + .serviceDetails("DatabaseTools", "ValidateDatabaseToolsConnection", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ValidateDatabaseToolsConnectionRequest::builder) .basePath("/20201005") @@ -1293,10 +2365,7 @@ public ValidateDatabaseToolsIdentityCredentialResponse validateDatabaseToolsIden return clientCall(request, ValidateDatabaseToolsIdentityCredentialResponse::builder) .logger(LOG, "validateDatabaseToolsIdentityCredential") - .serviceDetails( - "DatabaseTools", - "ValidateDatabaseToolsIdentityCredential", - "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential") + .serviceDetails("DatabaseTools", "ValidateDatabaseToolsIdentityCredential", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ValidateDatabaseToolsIdentityCredentialRequest::builder) .basePath("/20201005") 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 db29ed5e4ba..18e0636dfff 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 @@ -171,6 +171,147 @@ 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 @@ -432,6 +573,264 @@ 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 @@ -566,6 +965,134 @@ 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 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 faac324eb7a..633b9fadbbb 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 @@ -135,6 +135,138 @@ 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. * @@ -362,6 +494,238 @@ 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. * @@ -474,6 +838,121 @@ 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/model/AuthenticationType.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/AuthenticationType.java new file mode 100644 index 00000000000..6a3f6d6b4ff --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/AuthenticationType.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.databasetools.model; + +/** The authentication type to use. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum AuthenticationType implements com.oracle.bmc.http.internal.BmcEnum { + 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..c17c37f054a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails + extends com.oracle.bmc.http.client.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..98ca2689605 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpServerCompartmentDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsMcpServerCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDatabaseToolsMcpServerCompartmentDetails + extends com.oracle.bmc.http.client.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..cf26cbcb02b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsMcpToolsetCompartmentDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsMcpToolsetCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDatabaseToolsMcpToolsetCompartmentDetails + extends com.oracle.bmc.http.client.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..8da260e5d55 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ChangeDatabaseToolsSqlReportCompartmentDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDatabaseToolsSqlReportCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDatabaseToolsSqlReportCompartmentDetails + extends com.oracle.bmc.http.client.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 f8e0904baea..870837cd48c 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 @@ -162,15 +162,17 @@ 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 */ 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 e1756c7e844..ec7c233c680 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 @@ -208,6 +208,25 @@ 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(); @@ -229,7 +248,8 @@ public CreateDatabaseToolsConnectionOracleDatabaseDetails build() { this.advancedProperties, this.keyStores, this.privateEndpointId, - this.proxyClient); + this.proxyClient, + this.authenticationType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -283,6 +303,9 @@ public Builder copy(CreateDatabaseToolsConnectionOracleDatabaseDetails model) { if (model.wasPropertyExplicitlySet("proxyClient")) { this.proxyClient(model.getProxyClient()); } + if (model.wasPropertyExplicitlySet("authenticationType")) { + this.authenticationType(model.getAuthenticationType()); + } return this; } } @@ -312,7 +335,8 @@ public CreateDatabaseToolsConnectionOracleDatabaseDetails( java.util.Map advancedProperties, java.util.List keyStores, String privateEndpointId, - DatabaseToolsConnectionOracleDatabaseProxyClientDetails proxyClient) { + DatabaseToolsConnectionOracleDatabaseProxyClientDetails proxyClient, + AuthenticationType authenticationType) { super( displayName, compartmentId, @@ -329,6 +353,7 @@ public CreateDatabaseToolsConnectionOracleDatabaseDetails( this.keyStores = keyStores; this.privateEndpointId = privateEndpointId; this.proxyClient = proxyClient; + this.authenticationType = authenticationType; } @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") @@ -431,6 +456,23 @@ 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); @@ -454,6 +496,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(); } @@ -477,6 +520,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); } @@ -502,6 +546,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..d7aaca08f56 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..0faa13476a1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsDatabaseApiGatewayConfigDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigDetails + extends com.oracle.bmc.http.client.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..71d9aa9cca7 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDefaultDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..a56f4a6d7be --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpServerDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDatabaseToolsMcpServerDetails + extends com.oracle.bmc.http.client.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..454e64f319c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..5f82c9c752e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomSqlToolDetails.java @@ -0,0 +1,463 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..bca520af616 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..32f593017aa --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetDetails.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDatabaseToolsMcpToolsetDetails + extends com.oracle.bmc.http.client.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..d0202aeec8a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..006994f8ff5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsMcpToolsetToolDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDatabaseToolsMcpToolsetToolDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDatabaseToolsMcpToolsetToolDetails + extends com.oracle.bmc.http.client.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..952b2fc815d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDatabaseToolsSqlReportDetails + extends com.oracle.bmc.http.client.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..44538c79679 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/CreateDatabaseToolsSqlReportOracleDatabaseDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..d6f0299ad03 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigMetadataSource.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 RESTful service definition location. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseApiGatewayConfigMetadataSource implements com.oracle.bmc.http.internal.BmcEnum { + 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..4e80570ceb4 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseApiGatewayConfigType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** The Database Tools database API gateway config type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseApiGatewayConfigType implements com.oracle.bmc.http.internal.BmcEnum { + 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 24f990c39be..7ebeea99f70 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 @@ -286,15 +286,17 @@ 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 */ 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 f0411da6d24..8190d258893 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 @@ -177,12 +177,16 @@ public Builder connectionString(String connectionString) { this.__explicitlySet__.add("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 @@ -269,6 +273,21 @@ 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(); @@ -297,7 +316,8 @@ public DatabaseToolsConnectionOracleDatabase build() { this.advancedProperties, this.keyStores, this.privateEndpointId, - this.proxyClient); + this.proxyClient, + this.authenticationType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -372,6 +392,9 @@ public Builder copy(DatabaseToolsConnectionOracleDatabase model) { if (model.wasPropertyExplicitlySet("proxyClient")) { this.proxyClient(model.getProxyClient()); } + if (model.wasPropertyExplicitlySet("authenticationType")) { + this.authenticationType(model.getAuthenticationType()); + } return this; } } @@ -408,7 +431,8 @@ public DatabaseToolsConnectionOracleDatabase( java.util.Map advancedProperties, java.util.List keyStores, String privateEndpointId, - DatabaseToolsConnectionOracleDatabaseProxyClient proxyClient) { + DatabaseToolsConnectionOracleDatabaseProxyClient proxyClient, + AuthenticationType authenticationType) { super( id, displayName, @@ -432,6 +456,7 @@ public DatabaseToolsConnectionOracleDatabase( this.keyStores = keyStores; this.privateEndpointId = privateEndpointId; this.proxyClient = proxyClient; + this.authenticationType = authenticationType; } @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") @@ -454,12 +479,16 @@ public String getConnectionString() { return connectionString; } - /** 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 */ @@ -534,6 +563,19 @@ 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); @@ -557,6 +599,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(); } @@ -579,6 +622,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); } @@ -604,6 +648,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 3cd57f231bc..e1d12527121 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 @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( 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 e6b5b44dc7d..2db04ed7133 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 @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( 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 e92a91c6d9f..d2084ff0b7a 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 @@ -27,7 +27,10 @@ name = "NO_PROXY"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DatabaseToolsConnectionOracleDatabaseProxyClientUserNameSummary.class, - name = "USER_NAME") + 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..723d6195c40 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..a6db0ddbad2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..747aaabae18 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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 4c91c4a2d76..cf3ee8ffb1a 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 @@ -178,12 +178,16 @@ public Builder connectionString(String connectionString) { this.__explicitlySet__.add("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 @@ -271,6 +275,25 @@ 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(); @@ -299,7 +322,8 @@ public DatabaseToolsConnectionOracleDatabaseSummary build() { this.advancedProperties, this.keyStores, this.privateEndpointId, - this.proxyClient); + this.proxyClient, + this.authenticationType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -374,6 +398,9 @@ public Builder copy(DatabaseToolsConnectionOracleDatabaseSummary model) { if (model.wasPropertyExplicitlySet("proxyClient")) { this.proxyClient(model.getProxyClient()); } + if (model.wasPropertyExplicitlySet("authenticationType")) { + this.authenticationType(model.getAuthenticationType()); + } return this; } } @@ -410,7 +437,8 @@ public DatabaseToolsConnectionOracleDatabaseSummary( java.util.Map advancedProperties, java.util.List keyStores, String privateEndpointId, - DatabaseToolsConnectionOracleDatabaseProxyClientSummary proxyClient) { + DatabaseToolsConnectionOracleDatabaseProxyClientSummary proxyClient, + AuthenticationType authenticationType) { super( id, displayName, @@ -434,6 +462,7 @@ public DatabaseToolsConnectionOracleDatabaseSummary( this.keyStores = keyStores; this.privateEndpointId = privateEndpointId; this.proxyClient = proxyClient; + this.authenticationType = authenticationType; } @com.fasterxml.jackson.annotation.JsonProperty("relatedResource") @@ -456,12 +485,16 @@ public String getConnectionString() { return connectionString; } - /** 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 */ @@ -536,6 +569,23 @@ 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); @@ -559,6 +609,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(); } @@ -582,6 +633,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); } @@ -607,6 +659,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 3d372224a06..5c9dc1c0b12 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,15 +286,17 @@ 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 */ 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..55e42d72243 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSource.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsCustomSqlToolToolsetSource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsCustomSqlToolToolsetSource + extends com.oracle.bmc.http.client.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..b530bdc8dd9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsCustomSqlToolToolsetSourceType.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 sql toolset sources type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsCustomSqlToolToolsetSourceType + implements com.oracle.bmc.http.internal.BmcEnum { + 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..04c88455f9f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfig.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfig + extends com.oracle.bmc.http.client.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..e362021ba60 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigCollection.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigCollection + extends com.oracle.bmc.http.client.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..7b27f82ad52 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefault.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..771d00746b4 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigDefaultSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..5f9159aac53 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigLifecycleState.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. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsDatabaseApiGatewayConfigLifecycleState + implements com.oracle.bmc.http.internal.BmcEnum { + 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..24ce29c8949 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsDatabaseApiGatewayConfigSummary.java @@ -0,0 +1,352 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigSummary + extends com.oracle.bmc.http.client.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..6a3d9d0e0a6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsExternalAuthenticationStatus.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 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. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsExternalAuthenticationStatus + implements com.oracle.bmc.http.internal.BmcEnum { + 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..cb07d63d385 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServer.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsMcpServer + extends com.oracle.bmc.http.client.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..2d4bb8aabe3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerBuiltInRole.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerBuiltInRole.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpServerBuiltInRole + extends com.oracle.bmc.http.client.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..071ec435990 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpServerCollection + extends com.oracle.bmc.http.client.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..bfd1b03f4c1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerCustomRole.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerCustomRole.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpServerCustomRole + extends com.oracle.bmc.http.client.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..f3aecbd2fc4 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerDefault.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..8975bc48d26 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerEndpoint.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerEndpoint.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpServerEndpoint + extends com.oracle.bmc.http.client.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..523b4a3886f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerLifecycleState.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 lifecycle state. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + 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..c047874e1ff --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResource.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerRelatedResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpServerRelatedResource + extends com.oracle.bmc.http.client.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..ef88f348e08 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRelatedResourceEntityType.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.databasetools.model; + +/** The related database type */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerRelatedResourceEntityType + implements com.oracle.bmc.http.internal.BmcEnum { + 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..e256892ae94 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerRuntimeIdentity.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.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). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerRuntimeIdentity implements com.oracle.bmc.http.internal.BmcEnum { + 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..10fedf2b466 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorage.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsMcpServerStorage + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..e3c6b07a41b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageNone.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..18c92ad4d89 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorage.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..5b69b24f3ab --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerStorageObjectStorageBucket.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpServerStorageObjectStorageBucket.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpServerStorageObjectStorageBucket + extends com.oracle.bmc.http.client.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..ef27c63aef2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummary.java @@ -0,0 +1,450 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsMcpServerSummary + extends com.oracle.bmc.http.client.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..207494be2ea --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerSummaryDefault.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..a5fc1490fd3 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpServerType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** The Database Tools MCP server type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpServerType implements com.oracle.bmc.http.internal.BmcEnum { + 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..47ffb73ab1b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolset.java @@ -0,0 +1,398 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsMcpToolset + extends com.oracle.bmc.http.client.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..e1e900117de --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlTools.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..65cdf508c68 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..30889fc19f8 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetBuiltInSqlToolsVersion.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetBuiltInSqlToolsVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetBuiltInSqlToolsVersion + extends com.oracle.bmc.http.client.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..d6ef7bef496 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetCollection + extends com.oracle.bmc.http.client.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..80f571aa827 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlTool.java @@ -0,0 +1,551 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..39f35bbb032 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..b4a5a50766e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVariable.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomSqlToolVariable.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetCustomSqlToolVariable + extends com.oracle.bmc.http.client.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..e995a7fe9d1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomSqlToolVersion.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomSqlToolVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetCustomSqlToolVersion + extends com.oracle.bmc.http.client.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..b6eb23f6396 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingTools.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..846c7f7302e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsReport.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomizableReportingToolsReport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetCustomizableReportingToolsReport + extends com.oracle.bmc.http.client.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..1f6ad5f7b33 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsSummary.java @@ -0,0 +1,429 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..86daebcd802 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetCustomizableReportingToolsVersion.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetCustomizableReportingToolsVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetCustomizableReportingToolsVersion + extends com.oracle.bmc.http.client.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..fd9c44c38d6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetDefaultExecutionType.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 default execution type for the Database Tools MCP Toolset. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetDefaultExecutionType + implements com.oracle.bmc.http.internal.BmcEnum { + 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..08814ed4690 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistant.java @@ -0,0 +1,457 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..325e172abed --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..26cfc5553c7 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetGenAiSqlAssistantVersion.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetGenAiSqlAssistantVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetGenAiSqlAssistantVersion + extends com.oracle.bmc.http.client.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..240db76991f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetLifecycleState.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.databasetools.model; + +/** The lifecycle state. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + 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..b7738927340 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsMcpToolsetSummary + extends com.oracle.bmc.http.client.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..1c2f708b1d6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetToolDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetToolDetails + extends com.oracle.bmc.http.client.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..59fefeb55f1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetToolStatus.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.databasetools.model; + +/** The Database Tools MCP Toolset CustomizableReportingTools tool status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetToolStatus implements com.oracle.bmc.http.internal.BmcEnum { + 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..f574c0de2f0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetType.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 type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetType implements com.oracle.bmc.http.internal.BmcEnum { + 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..d1b70e7a807 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..de35c41eb9f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCollection.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetVersionCollection + extends com.oracle.bmc.http.client.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..e1ebe852081 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomSqlToolSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..048d627bdb5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..03095144538 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..97f6d32a385 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionSummary.java @@ -0,0 +1,106 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsMcpToolsetVersionSummary + extends com.oracle.bmc.http.client.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..94a4990f698 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionTool.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsMcpToolsetVersionTool.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsMcpToolsetVersionTool + extends com.oracle.bmc.http.client.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..a844bf174da --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsMcpToolsetVersionType.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 version type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsMcpToolsetVersionType implements com.oracle.bmc.http.internal.BmcEnum { + 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..8b78fa1c29d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReport.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsSqlReport + extends com.oracle.bmc.http.client.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..82c198cc52e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsSqlReportCollection + extends com.oracle.bmc.http.client.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..5c864e8905e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportColumn.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportColumn.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsSqlReportColumn + extends com.oracle.bmc.http.client.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..dc320bf4d9a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportLifecycleState.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 lifecycle state. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsSqlReportLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + 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..f32530027e6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportOracleDatabase.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..fabead8d215 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsSqlReportSummary + extends com.oracle.bmc.http.client.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..1802e6af07f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportSummaryOracleDatabase.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..6e97e80cc19 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.model; + +/** The Database Tools SQL report type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum DatabaseToolsSqlReportType implements com.oracle.bmc.http.internal.BmcEnum { + 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..f361fe2021e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/DatabaseToolsSqlReportVariable.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsSqlReportVariable.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsSqlReportVariable + extends com.oracle.bmc.http.client.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..4d5c1f56cb2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/IdentityProviderType.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 identity provider type */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +public enum IdentityProviderType implements com.oracle.bmc.http.internal.BmcEnum { + 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 c267be54d8d..8a9143fbcd7 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 @@ -20,6 +20,12 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { 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 39bf8be2ae3..bdef91595cf 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 @@ -8,6 +8,7 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") public enum ProxyAuthenticationType implements com.oracle.bmc.http.internal.BmcEnum { 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 03425ab343b..a82e0c85bd3 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 @@ -4,7 +4,11 @@ */ 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). + */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") public enum RuntimeIdentity implements com.oracle.bmc.http.internal.BmcEnum { AuthenticatedPrincipal("AUTHENTICATED_PRINCIPAL"), 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..7b607b3bb5a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..e6bc1122524 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsDatabaseApiGatewayConfigDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigDetails + extends com.oracle.bmc.http.client.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..3a94903403c --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetails.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsMcpServerDetails + extends com.oracle.bmc.http.client.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..7866531f766 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpServerDetailsDefault.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..e2641ccb07a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..9dff00a241f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails.java @@ -0,0 +1,413 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..012c964708a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..3f4adc411a5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsMcpToolsetDetails + extends com.oracle.bmc.http.client.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..1335840b4a6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..ae1665bf359 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsMcpToolsetToolDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDatabaseToolsMcpToolsetToolDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDatabaseToolsMcpToolsetToolDetails + extends com.oracle.bmc.http.client.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..7b1b692a284 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetails.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsSqlReportDetails + extends com.oracle.bmc.http.client.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..85781da8374 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/UpdateDatabaseToolsSqlReportDetailsOracleDatabase.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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 88331f8d9ae..70686fd681e 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 the setter methods of the {@link Builder}, which maintain a 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 4ad0e91db3f..24b4204db97 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 the setter methods of the {@link Builder}, which maintain a @@ -93,6 +93,81 @@ 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. */ @com.fasterxml.jackson.annotation.JsonProperty("dbmsCloudStatus") private DbmsCloudStatus dbmsCloudStatus; @@ -141,6 +216,54 @@ 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(); @@ -154,9 +277,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); } @@ -183,6 +314,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()); } @@ -192,6 +338,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; } } @@ -213,15 +368,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; } /** The database name. */ @@ -250,6 +421,71 @@ 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; @@ -289,6 +525,47 @@ 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); @@ -306,10 +583,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(); } @@ -327,10 +614,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); } @@ -342,6 +639,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()); @@ -351,6 +663,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 53174042711..061284e1fb3 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 the setter methods of the {@link Builder}, which maintain a 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..176e0c1691b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/model/ValidationExternalAuthenticationStatus.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidationExternalAuthenticationStatus.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ValidationExternalAuthenticationStatus + extends com.oracle.bmc.http.client.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..dd93a18e926 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsDatabaseApiGatewayConfigLockRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * AddDatabaseToolsDatabaseApiGatewayConfigLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..12476662b95 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpServerLockRequest.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 + * AddDatabaseToolsMcpServerLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..d8d4b0e9a8d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsMcpToolsetLockRequest.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 + * AddDatabaseToolsMcpToolsetLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..2e512f98c27 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/AddDatabaseToolsSqlReportLockRequest.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 + * AddDatabaseToolsSqlReportLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..bcfa18e827a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CascadingDeleteDatabaseToolsMcpServerRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * CascadingDeleteDatabaseToolsMcpServerRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..dac04e2a0bf --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..ec2bde4ba88 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpServerCompartmentRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * ChangeDatabaseToolsMcpServerCompartmentRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..b1a0d9cd4ad --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsMcpToolsetCompartmentRequest.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.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * ChangeDatabaseToolsMcpToolsetCompartmentRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..951f4838708 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ChangeDatabaseToolsSqlReportCompartmentRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * ChangeDatabaseToolsSqlReportCompartmentRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..1038c3edd07 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsDatabaseApiGatewayConfigRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * CreateDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..55d71399d9b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpServerRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * CreateDatabaseToolsMcpServerRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..e6c67cfcf43 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsMcpToolsetRequest.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * CreateDatabaseToolsMcpToolsetRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..8b18c393f5b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/CreateDatabaseToolsSqlReportRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * CreateDatabaseToolsSqlReportRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..c1d025f16ed --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigRequest.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * DeleteDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..958df962ae9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpServerRequest.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.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * DeleteDatabaseToolsMcpServerRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..9cbea570bfa --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsMcpToolsetRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * DeleteDatabaseToolsMcpToolsetRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..7d8d46add48 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/DeleteDatabaseToolsSqlReportRequest.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.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * DeleteDatabaseToolsSqlReportRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..f09ab3eb351 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsDatabaseApiGatewayConfigRequest.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.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..805c39eadcb --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpServerRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseToolsMcpServerRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..0f6b8048334 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsMcpToolsetRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseToolsMcpToolsetRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..58b05103a4e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/GetDatabaseToolsSqlReportRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseToolsSqlReportRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..b6345db0667 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsDatabaseApiGatewayConfigsRequest.java @@ -0,0 +1,496 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..cd379125b89 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpServersRequest.java @@ -0,0 +1,574 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..bfeea9d4d48 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetVersionsRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * ListDatabaseToolsMcpToolsetVersionsRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..d9b8cb6fcad --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsMcpToolsetsRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * ListDatabaseToolsMcpToolsetsRequest. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..8b664b8935f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/ListDatabaseToolsSqlReportsRequest.java @@ -0,0 +1,487 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..39d27bffb19 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * RemoveDatabaseToolsDatabaseApiGatewayConfigLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..d4a90bc20f9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpServerLockRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * RemoveDatabaseToolsMcpServerLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..3fbba96ce60 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsMcpToolsetLockRequest.java @@ -0,0 +1,332 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * RemoveDatabaseToolsMcpToolsetLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..b3f2e070de7 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/RemoveDatabaseToolsSqlReportLockRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * RemoveDatabaseToolsSqlReportLockRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..2ddabfab83f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * UpdateDatabaseToolsDatabaseApiGatewayConfigRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..d0c14425ecc --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpServerRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * UpdateDatabaseToolsMcpServerRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..6b40fe43115 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsMcpToolsetRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * UpdateDatabaseToolsMcpToolsetRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..dd711ec3e70 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/requests/UpdateDatabaseToolsSqlReportRequest.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.databasetools.requests; + +import com.oracle.bmc.databasetools.model.*; +/** + * Example: Click here to see how to use + * UpdateDatabaseToolsSqlReportRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..7d8f5874004 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsDatabaseApiGatewayConfigLockResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..f87027afb11 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpServerLockResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + AddDatabaseToolsMcpServerLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..25f346eecb4 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsMcpToolsetLockResponse.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.*; + +@jakarta.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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + AddDatabaseToolsMcpToolsetLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..d758af4ca40 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/AddDatabaseToolsSqlReportLockResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + AddDatabaseToolsSqlReportLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..e1699afae03 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CascadingDeleteDatabaseToolsMcpServerResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CascadingDeleteDatabaseToolsMcpServerResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + 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 + */ + @Override + 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..fbabdf799d0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..3609638ae1d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpServerCompartmentResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDatabaseToolsMcpServerCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + 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 + */ + @Override + 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..4a6355e42a5 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsMcpToolsetCompartmentResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDatabaseToolsMcpToolsetCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDatabaseToolsMcpToolsetCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..c6a0f14c832 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ChangeDatabaseToolsSqlReportCompartmentResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeDatabaseToolsSqlReportCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeDatabaseToolsSqlReportCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..e935609d8b2 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsDatabaseApiGatewayConfigResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..c9b012fe32e --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpServerResponse.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDatabaseToolsMcpServerResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..7ec548c544f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsMcpToolsetResponse.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.*; + +@jakarta.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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDatabaseToolsMcpToolsetResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..2222032261b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/CreateDatabaseToolsSqlReportResponse.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDatabaseToolsSqlReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..66b1cdab6bf --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..39604bd2e7b --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpServerResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDatabaseToolsMcpServerResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + 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 + */ + @Override + 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..1307d1d38f0 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsMcpToolsetResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDatabaseToolsMcpToolsetResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(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 + */ + @Override + 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..b4f8202c322 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/DeleteDatabaseToolsSqlReportResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDatabaseToolsSqlReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDatabaseToolsSqlReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..814f834d3ca --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsDatabaseApiGatewayConfigResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..dac72e7289d --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpServerResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsMcpServerResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..0f9d1f594a8 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsMcpToolsetResponse.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.*; + +@jakarta.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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsMcpToolsetResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..935e7248bcc --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/GetDatabaseToolsSqlReportResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsSqlReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..e31021113e9 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsDatabaseApiGatewayConfigsResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection + databaseToolsDatabaseApiGatewayConfigCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsDatabaseApiGatewayConfigsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseToolsDatabaseApiGatewayConfigCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection + databaseToolsDatabaseApiGatewayConfigCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..9e3756e5abf --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpServersResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsMcpServerCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection + databaseToolsMcpServerCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsMcpServersResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseToolsMcpServerCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection + databaseToolsMcpServerCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..80de6c40d0a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetVersionsResponse.java @@ -0,0 +1,242 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsMcpToolsetVersionCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection + databaseToolsMcpToolsetVersionCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsMcpToolsetVersionsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseToolsMcpToolsetVersionCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection + databaseToolsMcpToolsetVersionCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..19794b2616a --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsMcpToolsetsResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsMcpToolsetCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection + databaseToolsMcpToolsetCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsMcpToolsetsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseToolsMcpToolsetCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection + databaseToolsMcpToolsetCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..6ca87f05ea6 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/ListDatabaseToolsSqlReportsResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsSqlReportCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection + databaseToolsSqlReportCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsSqlReportsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseToolsSqlReportCollection} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection + databaseToolsSqlReportCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..51b5fec6115 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..fe94ab97505 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpServerLockResponse.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.*; + +@jakarta.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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + RemoveDatabaseToolsMcpServerLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsMcpServer} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer databaseToolsMcpServer; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..5cf90658aef --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsMcpToolsetLockResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + RemoveDatabaseToolsMcpToolsetLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsMcpToolset} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset databaseToolsMcpToolset; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..860be93d8b1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/RemoveDatabaseToolsSqlReportLockResponse.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.*; + +@jakarta.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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + RemoveDatabaseToolsSqlReportLockResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..a635008aa5f --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigResponse.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.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfig} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig + databaseToolsDatabaseApiGatewayConfig; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..473191f68f4 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpServerResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsMcpServerResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + 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 + */ + @Override + 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..af10d9db1ee --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsMcpToolsetResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsMcpToolsetResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + 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 + */ + @Override + 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..0b18aaa97d1 --- /dev/null +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/responses/UpdateDatabaseToolsSqlReportResponse.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.databasetools.responses; + +import com.oracle.bmc.databasetools.model.*; + +@jakarta.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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsSqlReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsSqlReport} instance. */ + private com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport databaseToolsSqlReport; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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-databasetools/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasetools/reflect-config.json b/bmc-databasetools/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasetools/reflect-config.json index 54f72b31929..8f0ec43882e 100644 --- a/bmc-databasetools/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasetools/reflect-config.json +++ b/bmc-databasetools/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasetools/reflect-config.json @@ -25,6 +25,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.AuthenticationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsConnectionCompartmentDetails", @@ -41,1457 +47,2441 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsIdentityCompartmentDetails", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsIdentityCompartmentDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsPrivateEndpointCompartmentDetails", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsIdentityCompartmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsPrivateEndpointCompartmentDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsIdentityCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.ConnectionType", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionDetails", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpServerCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionGenericJdbcDetails", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionGenericJdbcDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsMcpToolsetCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionMySqlDetails", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsPrivateEndpointCompartmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionMySqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsPrivateEndpointCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionOracleDatabaseDetails", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionOracleDatabaseDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.ChangeDatabaseToolsSqlReportCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionPostgresqlDetails", + "name": "com.oracle.bmc.databasetools.model.ConnectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionPostgresqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionGenericJdbcDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsIdentityDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionGenericJdbcDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionMySqlDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionMySqlDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsPrivateEndpointDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionOracleDatabaseDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsPrivateEndpointDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionOracleDatabaseDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionPostgresqlDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsConnectionPostgresqlDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceMySqlDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceMySqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourcePostgresqlDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsDatabaseApiGatewayConfigDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourcePostgresqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsIdentityDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnection", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionCollection", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsIdentityOracleDatabaseResourcePrincipalDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionCollection$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDefaultDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbc", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDefaultDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbc$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpServerDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbcSummary", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbcSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySql", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetCustomSqlToolDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySql$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetCustomSqlToolDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySqlSummary", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabase", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabase$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClient", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetToolDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsMcpToolsetToolDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxy", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsPrivateEndpointDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxy$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsPrivateEndpointDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxyDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxyDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxySummary", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceMySqlDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxySummary$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourceMySqlDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientSummary", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourcePostgresqlDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserName", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsRelatedResourcePostgresqlDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserName$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameDetails", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportOracleDatabaseDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.CreateDatabaseToolsSqlReportOracleDatabaseDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseApiGatewayConfigMetadataSource", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseApiGatewayConfigType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnection", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbc", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbc$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbcSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionGenericJdbcSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionSummary", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointService", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySql", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointService$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySql$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySqlSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionMySqlSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabase", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabase$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentity", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClient", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxy", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityLifecycleState", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxy$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipal", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxyDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipal$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxyDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipalSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxySummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipalSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientNoProxySummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityStatus", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentitySummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStore", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserName", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStore$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserName$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContent", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContent$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetect$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbc", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbc$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameAutoDetectSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseProxyClientUserNameSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySql$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionOracleDatabaseSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresql", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresql$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresqlSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionPostgresqlSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsConnectionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresql$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsCustomSqlToolToolsetSource", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsCustomSqlToolToolsetSource$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsCustomSqlToolToolsetSourceType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfig", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigDefaultSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigDefaultSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsDatabaseApiGatewayConfigSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointService", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointService$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsEndpointServiceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsExternalAuthenticationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentity", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipal", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipal$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipalSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipalSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentityStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsIdentitySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStore", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStore$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContent$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbc", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbc$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentGenericJdbcSummary$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySql$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentMySqlSummary$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresql$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentPostgresqlSummary$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretId", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretId$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbc", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbc$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySql$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresql$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSummary$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbc", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbc$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySql$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePassword", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePassword$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbc", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbc$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcSummary$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySql$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlSummary$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresql$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlDetails$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlSummary$ValueType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretId", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretId", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretId$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbc", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbc$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretId$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbc", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySql", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbc$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySql$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdGenericJdbcSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresql", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresql$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdMySqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSummary$ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresql", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresql$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdPostgresqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSecretIdSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreContentSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServer", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerBuiltInRole", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerBuiltInRole$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbc", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbc$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCustomRole", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerCustomRole$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerDefault", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreGenericJdbcSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerDefault$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerEndpoint", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerEndpoint$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerRelatedResource", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerRelatedResource$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerRelatedResourceEntityType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerRuntimeIdentity", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorage", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreMySqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorage$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorageNone", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorageNone$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePassword", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorageObjectStorage", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePassword$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorageObjectStorage$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorageObjectStorageBucket", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerStorageObjectStorageBucket$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbc", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbc$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerSummaryDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerSummaryDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpServerType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolset", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetBuiltInSqlTools", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetBuiltInSqlTools$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetBuiltInSqlToolsSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordGenericJdbcSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetBuiltInSqlToolsSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetBuiltInSqlToolsVersion", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySql$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetBuiltInSqlToolsVersion$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCollection$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlTool", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordMySqlSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlTool$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlToolSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlToolSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlToolVariable", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlToolVariable$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlToolVersion", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomSqlToolVersion$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingTools", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingTools$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingToolsReport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingToolsReport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingToolsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingToolsSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingToolsVersion", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetCustomizableReportingToolsVersion$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresql$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetDefaultExecutionType", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetGenAiSqlAssistant", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlDetails$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetGenAiSqlAssistant$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetGenAiSqlAssistantSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordPostgresqlSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetGenAiSqlAssistantSummary$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretId", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetGenAiSqlAssistantVersion", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretId$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetGenAiSqlAssistantVersion$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetLifecycleState", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetSummary", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbc", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetToolDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbc$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetToolDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetToolStatus", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdGenericJdbcSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionBuiltInSqlToolsSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCustomSqlToolSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCustomSqlToolSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdMySqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionCustomizableReportingToolsSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionGenAiSqlAssistantSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionTool", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionTool$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdPostgresqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsMcpToolsetVersionType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpoint", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSecretIdSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpoint$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePasswordSummary$ValueType", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointCollection$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionConfiguration", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionConfiguration$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlDetails", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionsSourceIp", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlDetails$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionsSourceIp$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStorePostgresqlSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResource", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsKeyStoreSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResource$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpoint", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourceMySql", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpoint$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourceMySql$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointCollection", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourcePostgresql", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointCollection$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourcePostgresql$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionConfiguration", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReport", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionConfiguration$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionsSourceIp", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportColumn", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointReverseConnectionsSourceIp$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportColumn$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointSummary", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportOracleDatabase", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsPrivateEndpointSummary$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportOracleDatabase$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResource", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResource$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportSummaryOracleDatabase", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourceMySql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportSummaryOracleDatabase$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourceMySql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourcePostgresql", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportVariable", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasetools.model.DatabaseToolsRelatedResourcePostgresql$Builder", + "name": "com.oracle.bmc.databasetools.model.DatabaseToolsSqlReportVariable$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true @@ -1583,6 +2573,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.IdentityProviderType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasetools.model.IdentityType", @@ -1797,6 +2793,27 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsDatabaseApiGatewayConfigDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsDatabaseApiGatewayConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsIdentityDetails", @@ -1818,6 +2835,104 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetailsDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpServerDetailsDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetBuiltInSqlToolsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetCustomSqlToolDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetCustomizableReportingToolsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetGenAiSqlAssistantDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetToolDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsMcpToolsetToolDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsPrivateEndpointDetails", @@ -1874,6 +2989,27 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetailsOracleDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.UpdateDatabaseToolsSqlReportDetailsOracleDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasetools.model.ValidateDatabaseToolsConnectionDetails", @@ -2014,6 +3150,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.ValidationExternalAuthenticationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetools.model.ValidationExternalAuthenticationStatus$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasetools.model.ValidationIdentityStatus", diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml new file mode 100644 index 00000000000..5a78a4e8c2c --- /dev/null +++ b/bmc-databasetoolsruntime/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.86.2 + ../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 + 3.86.2 + + + \ 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..6efb5e13e78 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntime.java @@ -0,0 +1,834 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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..931c81a7093 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsync.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.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. + */ +@jakarta.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..0fcf924c589 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java @@ -0,0 +1,2191 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.util.internal.Validate; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; + +import java.util.Objects; + +/** + * 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 + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DatabaseToolsRuntimeAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + 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); + + DatabaseToolsRuntimeAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + DatabaseToolsRuntimeAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { + super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.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 boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "databasetoolsruntime"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DatabaseToolsRuntimeAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DatabaseToolsRuntimeAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, CancelWorkRequestResponse::builder) + .logger(LOG, "cancelWorkRequest") + .serviceDetails("DatabaseToolsRuntime", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createCredential( + CreateCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCredentialRequest, CreateCredentialResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Objects.requireNonNull( + request.getCreateCredentialDetails(), "createCredentialDetails is required"); + + return clientCall(request, CreateCredentialResponse::builder) + .logger(LOG, "createCredential") + .serviceDetails("DatabaseToolsRuntime", "CreateCredential", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.Credential.class, + CreateCredentialResponse.Builder::credential) + .handleResponseHeaderString( + "opc-request-id", CreateCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("location", CreateCredentialResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createCredentialExecuteGrantee( + CreateCredentialExecuteGranteeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCredentialExecuteGranteeRequest, + CreateCredentialExecuteGranteeResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Objects.requireNonNull( + request.getCreateCredentialExecuteGranteeDetails(), + "createCredentialExecuteGranteeDetails is required"); + + return clientCall(request, CreateCredentialExecuteGranteeResponse::builder) + .logger(LOG, "createCredentialExecuteGrantee") + .serviceDetails("DatabaseToolsRuntime", "CreateCredentialExecuteGrantee", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateCredentialExecuteGranteeRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee.class, + CreateCredentialExecuteGranteeResponse.Builder::credentialExecuteGrantee) + .handleResponseHeaderString( + "opc-request-id", + CreateCredentialExecuteGranteeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateCredentialExecuteGranteeResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createCredentialPublicSynonym( + CreateCredentialPublicSynonymRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateCredentialPublicSynonymRequest, + CreateCredentialPublicSynonymResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Objects.requireNonNull( + request.getCreateCredentialPublicSynonymDetails(), + "createCredentialPublicSynonymDetails is required"); + + return clientCall(request, CreateCredentialPublicSynonymResponse::builder) + .logger(LOG, "createCredentialPublicSynonym") + .serviceDetails("DatabaseToolsRuntime", "CreateCredentialPublicSynonym", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateCredentialPublicSynonymRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym.class, + CreateCredentialPublicSynonymResponse.Builder::credentialPublicSynonym) + .handleResponseHeaderString( + "opc-request-id", + CreateCredentialPublicSynonymResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateCredentialPublicSynonymResponse.Builder::location) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createDatabaseToolsDatabaseApiGatewayConfigPool( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolDetails is required"); + + return clientCall(request, CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPool", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool.class, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPool) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::location) + .handleResponseHeaderString( + "etag", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails is required"); + + return clientCall( + request, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.class, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpec) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::location) + .handleResponseHeaderString( + "etag", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails is required"); + + return clientCall( + request, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.class, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::location) + .handleResponseHeaderString( + "etag", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteCredential( + DeleteCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialRequest, DeleteCredentialResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, DeleteCredentialResponse::builder) + .logger(LOG, "deleteCredential") + .serviceDetails("DatabaseToolsRuntime", "DeleteCredential", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", DeleteCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteCredentialExecuteGrantee( + DeleteCredentialExecuteGranteeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialExecuteGranteeRequest, + DeleteCredentialExecuteGranteeResponse> + handler) { + + 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"); + + return clientCall(request, DeleteCredentialExecuteGranteeResponse::builder) + .logger(LOG, "deleteCredentialExecuteGrantee") + .serviceDetails("DatabaseToolsRuntime", "DeleteCredentialExecuteGrantee", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCredentialExecuteGranteeRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .appendPathParam(request.getExecuteGranteeKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", + DeleteCredentialExecuteGranteeResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteCredentialPublicSynonym( + DeleteCredentialPublicSynonymRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCredentialPublicSynonymRequest, + DeleteCredentialPublicSynonymResponse> + handler) { + + 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"); + + return clientCall(request, DeleteCredentialPublicSynonymResponse::builder) + .logger(LOG, "deleteCredentialPublicSynonym") + .serviceDetails("DatabaseToolsRuntime", "DeleteCredentialPublicSynonym", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCredentialPublicSynonymRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .appendPathParam(request.getPublicSynonymKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", + DeleteCredentialPublicSynonymResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteDatabaseToolsDatabaseApiGatewayConfigPool( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall(request, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPool", + "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + + 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"); + + return clientCall( + request, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendPathParam(request.getApiSpecKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + + 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"); + + return clientCall( + request, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendPathParam(request.getAutoApiSpecKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + executeSqlDatabaseToolsConnection( + ExecuteSqlDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ExecuteSqlDatabaseToolsConnectionRequest, + ExecuteSqlDatabaseToolsConnectionResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Objects.requireNonNull( + request.getExecuteSqlDatabaseToolsConnectionDetails(), + "executeSqlDatabaseToolsConnectionDetails is required"); + + return clientCall(request, ExecuteSqlDatabaseToolsConnectionResponse::builder) + .logger(LOG, "executeSqlDatabaseToolsConnection") + .serviceDetails("DatabaseToolsRuntime", "ExecuteSqlDatabaseToolsConnection", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ExecuteSqlDatabaseToolsConnectionRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("actions") + .appendPathParam("executeSql") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse.class, + ExecuteSqlDatabaseToolsConnectionResponse.Builder::executeSqlResponse) + .handleResponseHeaderString( + "opc-request-id", + ExecuteSqlDatabaseToolsConnectionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ExecuteSqlDatabaseToolsConnectionResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getCredential( + GetCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, GetCredentialResponse::builder) + .logger(LOG, "getCredential") + .serviceDetails("DatabaseToolsRuntime", "GetCredential", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.Credential.class, + GetCredentialResponse.Builder::credential) + .handleResponseHeaderString( + "opc-request-id", GetCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getCredentialExecuteGrantee( + GetCredentialExecuteGranteeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCredentialExecuteGranteeRequest, + GetCredentialExecuteGranteeResponse> + handler) { + + 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"); + + return clientCall(request, GetCredentialExecuteGranteeResponse::builder) + .logger(LOG, "getCredentialExecuteGrantee") + .serviceDetails("DatabaseToolsRuntime", "GetCredentialExecuteGrantee", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCredentialExecuteGranteeRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .appendPathParam(request.getExecuteGranteeKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee.class, + GetCredentialExecuteGranteeResponse.Builder::credentialExecuteGrantee) + .handleResponseHeaderString( + "opc-request-id", GetCredentialExecuteGranteeResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getCredentialPublicSynonym( + GetCredentialPublicSynonymRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCredentialPublicSynonymRequest, + GetCredentialPublicSynonymResponse> + handler) { + + 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"); + + return clientCall(request, GetCredentialPublicSynonymResponse::builder) + .logger(LOG, "getCredentialPublicSynonym") + .serviceDetails("DatabaseToolsRuntime", "GetCredentialPublicSynonym", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCredentialPublicSynonymRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .appendPathParam(request.getPublicSynonymKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym.class, + GetCredentialPublicSynonymResponse.Builder::credentialPublicSynonym) + .handleResponseHeaderString( + "opc-request-id", GetCredentialPublicSynonymResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigContent( + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigContentResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigContent") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigContent", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigContentRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("if-none-match", request.getIfNoneMatch()) + .handleBody( + java.io.InputStream.class, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.Builder + ::inputStream) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigGlobal( + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getGlobalKey().getValue(), "globalKey must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigGlobal") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigGlobal", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("globals") + .appendPathParam(request.getGlobalKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal.class, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigGlobal) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigPool( + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPool", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool.class, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPool) + .handleResponseHeaderString( + "etag", GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + + 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"); + + return clientCall( + request, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendPathParam(request.getApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.class, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpec) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + + 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"); + + return clientCall( + request, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendPathParam(request.getAutoApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.class, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getPropertySet( + GetPropertySetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetPropertySetRequest, GetPropertySetResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank( + request.getPropertySetKey().getValue(), "propertySetKey must not be blank"); + + return clientCall(request, GetPropertySetResponse::builder) + .logger(LOG, "getPropertySet") + .serviceDetails("DatabaseToolsRuntime", "GetPropertySet", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPropertySetRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("propertySets") + .appendPathParam(request.getPropertySetKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.PropertySet.class, + GetPropertySetResponse.Builder::propertySet) + .handleResponseHeaderString( + "opc-request-id", GetPropertySetResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getUserCredential( + GetUserCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetUserCredentialRequest, GetUserCredentialResponse> + handler) { + + 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"); + + return clientCall(request, GetUserCredentialResponse::builder) + .logger(LOG, "getUserCredential") + .serviceDetails("DatabaseToolsRuntime", "GetUserCredential", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetUserCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("users") + .appendPathParam(request.getUserKey()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.UserCredential.class, + GetUserCredentialResponse.Builder::userCredential) + .handleResponseHeaderString( + "opc-request-id", GetUserCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("DatabaseToolsRuntime", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderFloat( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCredentialExecuteGrantees( + ListCredentialExecuteGranteesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCredentialExecuteGranteesRequest, + ListCredentialExecuteGranteesResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, ListCredentialExecuteGranteesResponse::builder) + .logger(LOG, "listCredentialExecuteGrantees") + .serviceDetails("DatabaseToolsRuntime", "ListCredentialExecuteGrantees", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCredentialExecuteGranteesRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + .class, + ListCredentialExecuteGranteesResponse.Builder + ::credentialExecuteGranteeCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCredentialExecuteGranteesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCredentialExecuteGranteesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listCredentialPublicSynonyms( + ListCredentialPublicSynonymsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCredentialPublicSynonymsRequest, + ListCredentialPublicSynonymsResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, ListCredentialPublicSynonymsResponse::builder) + .logger(LOG, "listCredentialPublicSynonyms") + .serviceDetails("DatabaseToolsRuntime", "ListCredentialPublicSynonyms", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCredentialPublicSynonymsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + .class, + ListCredentialPublicSynonymsResponse.Builder + ::credentialPublicSynonymCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCredentialPublicSynonymsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCredentialPublicSynonymsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listCredentials( + ListCredentialsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCredentialsRequest, ListCredentialsResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + return clientCall(request, ListCredentialsResponse::builder) + .logger(LOG, "listCredentials") + .serviceDetails("DatabaseToolsRuntime", "ListCredentials", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCredentialsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialCollection.class, + ListCredentialsResponse.Builder::credentialCollection) + .handleResponseHeaderString( + "opc-next-page", ListCredentialsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListCredentialsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> + handler) { + + return clientCall( + request, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + ::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigAdvancedProperties") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + .class, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.Builder + ::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall( + request, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.class, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.Builder + ::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall( + request, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + .class, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.Builder + ::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listDatabaseToolsDatabaseApiGatewayConfigPools( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigPools") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPools", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection.class, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listUserCredentials( + ListUserCredentialsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListUserCredentialsRequest, ListUserCredentialsResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getUserKey(), "userKey must not be blank"); + + return clientCall(request, ListUserCredentialsResponse::builder) + .logger(LOG, "listUserCredentials") + .serviceDetails("DatabaseToolsRuntime", "ListUserCredentials", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListUserCredentialsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("users") + .appendPathParam(request.getUserKey()) + .appendPathParam("credentials") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection.class, + ListUserCredentialsResponse.Builder::userCredentialCollection) + .handleResponseHeaderString( + "opc-next-page", ListUserCredentialsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListUserCredentialsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("DatabaseToolsRuntime", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("DatabaseToolsRuntime", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + .class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("DatabaseToolsRuntime", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("resourceIdentifier", request.getResourceIdentifier()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendListQueryParam( + "operationType", + request.getOperationType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("createdByPrincipalId", request.getCreatedByPrincipalId()) + .appendListQueryParam( + "status", + request.getStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection.class, + ListWorkRequestsResponse.Builder::workRequestCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateCredential( + UpdateCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCredentialRequest, UpdateCredentialResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Objects.requireNonNull( + request.getUpdateCredentialDetails(), "updateCredentialDetails is required"); + + return clientCall(request, UpdateCredentialResponse::builder) + .logger(LOG, "updateCredential") + .serviceDetails("DatabaseToolsRuntime", "UpdateCredential", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.Credential.class, + UpdateCredentialResponse.Builder::credential) + .handleResponseHeaderString( + "opc-request-id", UpdateCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateDatabaseToolsDatabaseApiGatewayConfigGlobal( + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getGlobalKey().getValue(), "globalKey must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails is required"); + + return clientCall( + request, UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigGlobal") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("globals") + .appendPathParam(request.getGlobalKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigGlobal) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateDatabaseToolsDatabaseApiGatewayConfigPool( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails is required"); + + return clientCall(request, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPool", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPool) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> + handler) { + + 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"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails is required"); + + return clientCall( + request, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendPathParam(request.getApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpec) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> + handler) { + + 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"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails is required"); + + return clientCall( + request, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendPathParam(request.getAutoApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updatePropertySet( + UpdatePropertySetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdatePropertySetRequest, UpdatePropertySetResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank( + request.getPropertySetKey().getValue(), "propertySetKey must not be blank"); + Objects.requireNonNull( + request.getUpdatePropertySetDetails(), "updatePropertySetDetails is required"); + + return clientCall(request, UpdatePropertySetResponse::builder) + .logger(LOG, "updatePropertySet") + .serviceDetails("DatabaseToolsRuntime", "UpdatePropertySet", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePropertySetRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("propertySets") + .appendPathParam(request.getPropertySetKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.PropertySet.class, + UpdatePropertySetResponse.Builder::propertySet) + .handleResponseHeaderString( + "opc-request-id", UpdatePropertySetResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + validateDatabaseToolsConnection( + ValidateDatabaseToolsConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsConnectionRequest, + ValidateDatabaseToolsConnectionResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Objects.requireNonNull( + request.getValidateDatabaseToolsConnectionDetails(), + "validateDatabaseToolsConnectionDetails is required"); + + return clientCall(request, ValidateDatabaseToolsConnectionResponse::builder) + .logger(LOG, "validateDatabaseToolsConnection") + .serviceDetails("DatabaseToolsRuntime", "ValidateDatabaseToolsConnection", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDatabaseToolsConnectionRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("actions") + .appendPathParam("validateConnection") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsConnectionResult.class, + ValidateDatabaseToolsConnectionResponse.Builder + ::validateDatabaseToolsConnectionResult) + .handleResponseHeaderString( + "opc-request-id", + ValidateDatabaseToolsConnectionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + validateDatabaseToolsIdentityCredential( + ValidateDatabaseToolsIdentityCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateDatabaseToolsIdentityCredentialRequest, + ValidateDatabaseToolsIdentityCredentialResponse> + handler) { + + Validate.notBlank( + request.getDatabaseToolsIdentityId(), "databaseToolsIdentityId must not be blank"); + Objects.requireNonNull( + request.getValidateDatabaseToolsIdentityCredentialDetails(), + "validateDatabaseToolsIdentityCredentialDetails is required"); + + return clientCall(request, ValidateDatabaseToolsIdentityCredentialResponse::builder) + .logger(LOG, "validateDatabaseToolsIdentityCredential") + .serviceDetails( + "DatabaseToolsRuntime", "ValidateDatabaseToolsIdentityCredential", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDatabaseToolsIdentityCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsIdentities") + .appendPathParam(request.getDatabaseToolsIdentityId()) + .appendPathParam("actions") + .appendPathParam("validateCredential") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult.class, + ValidateDatabaseToolsIdentityCredentialResponse.Builder + ::validateDatabaseToolsIdentityCredentialResult) + .handleResponseHeaderString( + "opc-request-id", + ValidateDatabaseToolsIdentityCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DatabaseToolsRuntimeAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DatabaseToolsRuntimeAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DatabaseToolsRuntimeAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} 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..da85b5dba9f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java @@ -0,0 +1,2122 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.util.internal.Validate; +import com.oracle.bmc.databasetoolsruntime.requests.*; +import com.oracle.bmc.databasetoolsruntime.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public class DatabaseToolsRuntimeClient extends com.oracle.bmc.http.internal.BaseSyncClient + 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(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DatabaseToolsRuntimeClient.class); + + private final DatabaseToolsRuntimeWaiters waiters; + + private final DatabaseToolsRuntimePaginators paginators; + + DatabaseToolsRuntimeClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + DatabaseToolsRuntimeClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService, + boolean isStreamWarningEnabled) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + 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 (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.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 boolean isStreamWarningEnabled = true; + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "databasetoolsruntime"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + 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; + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DatabaseToolsRuntimeClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DatabaseToolsRuntimeClient( + this, authenticationDetailsProvider, executorService, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, CancelWorkRequestResponse::builder) + .logger(LOG, "cancelWorkRequest") + .serviceDetails("DatabaseToolsRuntime", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateCredentialResponse createCredential(CreateCredentialRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Objects.requireNonNull( + request.getCreateCredentialDetails(), "createCredentialDetails is required"); + + return clientCall(request, CreateCredentialResponse::builder) + .logger(LOG, "createCredential") + .serviceDetails("DatabaseToolsRuntime", "CreateCredential", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.Credential.class, + CreateCredentialResponse.Builder::credential) + .handleResponseHeaderString( + "opc-request-id", CreateCredentialResponse.Builder::opcRequestId) + .handleResponseHeaderString("location", CreateCredentialResponse.Builder::location) + .callSync(); + } + + @Override + public CreateCredentialExecuteGranteeResponse createCredentialExecuteGrantee( + CreateCredentialExecuteGranteeRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Objects.requireNonNull( + request.getCreateCredentialExecuteGranteeDetails(), + "createCredentialExecuteGranteeDetails is required"); + + return clientCall(request, CreateCredentialExecuteGranteeResponse::builder) + .logger(LOG, "createCredentialExecuteGrantee") + .serviceDetails("DatabaseToolsRuntime", "CreateCredentialExecuteGrantee", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateCredentialExecuteGranteeRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee.class, + CreateCredentialExecuteGranteeResponse.Builder::credentialExecuteGrantee) + .handleResponseHeaderString( + "opc-request-id", + CreateCredentialExecuteGranteeResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateCredentialExecuteGranteeResponse.Builder::location) + .callSync(); + } + + @Override + public CreateCredentialPublicSynonymResponse createCredentialPublicSynonym( + CreateCredentialPublicSynonymRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Objects.requireNonNull( + request.getCreateCredentialPublicSynonymDetails(), + "createCredentialPublicSynonymDetails is required"); + + return clientCall(request, CreateCredentialPublicSynonymResponse::builder) + .logger(LOG, "createCredentialPublicSynonym") + .serviceDetails("DatabaseToolsRuntime", "CreateCredentialPublicSynonym", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateCredentialPublicSynonymRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym.class, + CreateCredentialPublicSynonymResponse.Builder::credentialPublicSynonym) + .handleResponseHeaderString( + "opc-request-id", + CreateCredentialPublicSynonymResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateCredentialPublicSynonymResponse.Builder::location) + .callSync(); + } + + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + createDatabaseToolsDatabaseApiGatewayConfigPool( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolDetails is required"); + + return clientCall(request, CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPool", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool.class, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPool) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::location) + .handleResponseHeaderString( + "etag", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails is required"); + + return clientCall( + request, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.class, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpec) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::location) + .handleResponseHeaderString( + "etag", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Objects.requireNonNull( + request.getCreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + "createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails is required"); + + return clientCall( + request, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "createDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.class, + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) + .handleResponseHeaderString( + "location", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::location) + .handleResponseHeaderString( + "etag", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public DeleteCredentialResponse deleteCredential(DeleteCredentialRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, DeleteCredentialResponse::builder) + .logger(LOG, "deleteCredential") + .serviceDetails("DatabaseToolsRuntime", "DeleteCredential", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteCredentialExecuteGranteeResponse deleteCredentialExecuteGrantee( + DeleteCredentialExecuteGranteeRequest request) { + + 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"); + + return clientCall(request, DeleteCredentialExecuteGranteeResponse::builder) + .logger(LOG, "deleteCredentialExecuteGrantee") + .serviceDetails("DatabaseToolsRuntime", "DeleteCredentialExecuteGrantee", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCredentialExecuteGranteeRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .appendPathParam(request.getExecuteGranteeKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + DeleteCredentialExecuteGranteeResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteCredentialPublicSynonymResponse deleteCredentialPublicSynonym( + DeleteCredentialPublicSynonymRequest request) { + + 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"); + + return clientCall(request, DeleteCredentialPublicSynonymResponse::builder) + .logger(LOG, "deleteCredentialPublicSynonym") + .serviceDetails("DatabaseToolsRuntime", "DeleteCredentialPublicSynonym", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteCredentialPublicSynonymRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .appendPathParam(request.getPublicSynonymKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + DeleteCredentialPublicSynonymResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPool( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall(request, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPool", + "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + + 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"); + + return clientCall( + request, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendPathParam(request.getApiSpecKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + + 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"); + + return clientCall( + request, + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "deleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder( + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendPathParam(request.getAutoApiSpecKey()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public ExecuteSqlDatabaseToolsConnectionResponse executeSqlDatabaseToolsConnection( + ExecuteSqlDatabaseToolsConnectionRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Objects.requireNonNull( + request.getExecuteSqlDatabaseToolsConnectionDetails(), + "executeSqlDatabaseToolsConnectionDetails is required"); + + return clientCall(request, ExecuteSqlDatabaseToolsConnectionResponse::builder) + .logger(LOG, "executeSqlDatabaseToolsConnection") + .serviceDetails("DatabaseToolsRuntime", "ExecuteSqlDatabaseToolsConnection", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ExecuteSqlDatabaseToolsConnectionRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("actions") + .appendPathParam("executeSql") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse.class, + ExecuteSqlDatabaseToolsConnectionResponse.Builder::executeSqlResponse) + .handleResponseHeaderString( + "opc-request-id", + ExecuteSqlDatabaseToolsConnectionResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ExecuteSqlDatabaseToolsConnectionResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public GetCredentialResponse getCredential(GetCredentialRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, GetCredentialResponse::builder) + .logger(LOG, "getCredential") + .serviceDetails("DatabaseToolsRuntime", "GetCredential", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.Credential.class, + GetCredentialResponse.Builder::credential) + .handleResponseHeaderString( + "opc-request-id", GetCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetCredentialExecuteGranteeResponse getCredentialExecuteGrantee( + GetCredentialExecuteGranteeRequest request) { + + 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"); + + return clientCall(request, GetCredentialExecuteGranteeResponse::builder) + .logger(LOG, "getCredentialExecuteGrantee") + .serviceDetails("DatabaseToolsRuntime", "GetCredentialExecuteGrantee", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCredentialExecuteGranteeRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .appendPathParam(request.getExecuteGranteeKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee.class, + GetCredentialExecuteGranteeResponse.Builder::credentialExecuteGrantee) + .handleResponseHeaderString( + "opc-request-id", GetCredentialExecuteGranteeResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetCredentialPublicSynonymResponse getCredentialPublicSynonym( + GetCredentialPublicSynonymRequest request) { + + 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"); + + return clientCall(request, GetCredentialPublicSynonymResponse::builder) + .logger(LOG, "getCredentialPublicSynonym") + .serviceDetails("DatabaseToolsRuntime", "GetCredentialPublicSynonym", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetCredentialPublicSynonymRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .appendPathParam(request.getPublicSynonymKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym.class, + GetCredentialPublicSynonymResponse.Builder::credentialPublicSynonym) + .handleResponseHeaderString( + "opc-request-id", GetCredentialPublicSynonymResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDatabaseToolsDatabaseApiGatewayConfigContentResponse + getDatabaseToolsDatabaseApiGatewayConfigContent( + GetDatabaseToolsDatabaseApiGatewayConfigContentRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigContentResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigContent") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigContent", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigContentRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("if-none-match", request.getIfNoneMatch()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.Builder + ::inputStream) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + getDatabaseToolsDatabaseApiGatewayConfigGlobal( + GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getGlobalKey().getValue(), "globalKey must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigGlobal") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigGlobal", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("globals") + .appendPathParam(request.getGlobalKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal.class, + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigGlobal) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse + getDatabaseToolsDatabaseApiGatewayConfigPool( + GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall(request, GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPool", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool.class, + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPool) + .handleResponseHeaderString( + "etag", GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + + 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"); + + return clientCall( + request, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendPathParam(request.getApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.class, + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpec) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + + 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"); + + return clientCall( + request, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "getDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendPathParam(request.getAutoApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.class, + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) + .handleResponseHeaderString( + "etag", + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public GetPropertySetResponse getPropertySet(GetPropertySetRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank( + request.getPropertySetKey().getValue(), "propertySetKey must not be blank"); + + return clientCall(request, GetPropertySetResponse::builder) + .logger(LOG, "getPropertySet") + .serviceDetails("DatabaseToolsRuntime", "GetPropertySet", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPropertySetRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("propertySets") + .appendPathParam(request.getPropertySetKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.PropertySet.class, + GetPropertySetResponse.Builder::propertySet) + .handleResponseHeaderString( + "opc-request-id", GetPropertySetResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetUserCredentialResponse getUserCredential(GetUserCredentialRequest request) { + + 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"); + + return clientCall(request, GetUserCredentialResponse::builder) + .logger(LOG, "getUserCredential") + .serviceDetails("DatabaseToolsRuntime", "GetUserCredential", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetUserCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("users") + .appendPathParam(request.getUserKey()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.UserCredential.class, + GetUserCredentialResponse.Builder::userCredential) + .handleResponseHeaderString( + "opc-request-id", GetUserCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("DatabaseToolsRuntime", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderFloat( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .callSync(); + } + + @Override + public ListCredentialExecuteGranteesResponse listCredentialExecuteGrantees( + ListCredentialExecuteGranteesRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, ListCredentialExecuteGranteesResponse::builder) + .logger(LOG, "listCredentialExecuteGrantees") + .serviceDetails("DatabaseToolsRuntime", "ListCredentialExecuteGrantees", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCredentialExecuteGranteesRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("executeGrantees") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + .class, + ListCredentialExecuteGranteesResponse.Builder + ::credentialExecuteGranteeCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCredentialExecuteGranteesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCredentialExecuteGranteesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListCredentialPublicSynonymsResponse listCredentialPublicSynonyms( + ListCredentialPublicSynonymsRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + + return clientCall(request, ListCredentialPublicSynonymsResponse::builder) + .logger(LOG, "listCredentialPublicSynonyms") + .serviceDetails("DatabaseToolsRuntime", "ListCredentialPublicSynonyms", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCredentialPublicSynonymsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .appendPathParam("publicSynonyms") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + .class, + ListCredentialPublicSynonymsResponse.Builder + ::credentialPublicSynonymCollection) + .handleResponseHeaderString( + "opc-request-id", + ListCredentialPublicSynonymsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListCredentialPublicSynonymsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListCredentialsResponse listCredentials(ListCredentialsRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + return clientCall(request, ListCredentialsResponse::builder) + .logger(LOG, "listCredentials") + .serviceDetails("DatabaseToolsRuntime", "ListCredentials", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListCredentialsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.CredentialCollection.class, + ListCredentialsResponse.Builder::credentialCollection) + .handleResponseHeaderString( + "opc-next-page", ListCredentialsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListCredentialsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest request) { + + return clientCall( + request, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse + ::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigAdvancedProperties") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + .class, + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.Builder + ::opcNextPage) + .callSync(); + } + + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse + listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall( + request, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.class, + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.Builder + ::opcNextPage) + .callSync(); + } + + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse + listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + + return clientCall( + request, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + .class, + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.Builder + ::opcNextPage) + .callSync(); + } + + @Override + public ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse + listDatabaseToolsDatabaseApiGatewayConfigPools( + ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + return clientCall(request, ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse::builder) + .logger(LOG, "listDatabaseToolsDatabaseApiGatewayConfigPools") + .serviceDetails( + "DatabaseToolsRuntime", + "ListDatabaseToolsDatabaseApiGatewayConfigPools", + "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection.class, + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolCollection) + .handleResponseHeaderString( + "opc-request-id", + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListUserCredentialsResponse listUserCredentials(ListUserCredentialsRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getUserKey(), "userKey must not be blank"); + + return clientCall(request, ListUserCredentialsResponse::builder) + .logger(LOG, "listUserCredentials") + .serviceDetails("DatabaseToolsRuntime", "ListUserCredentials", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListUserCredentialsRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("users") + .appendPathParam(request.getUserKey()) + .appendPathParam("credentials") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection.class, + ListUserCredentialsResponse.Builder::userCredentialCollection) + .handleResponseHeaderString( + "opc-next-page", ListUserCredentialsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListUserCredentialsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("DatabaseToolsRuntime", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("DatabaseToolsRuntime", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + .class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("DatabaseToolsRuntime", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20230222") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("resourceIdentifier", request.getResourceIdentifier()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendListQueryParam( + "operationType", + request.getOperationType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("createdByPrincipalId", request.getCreatedByPrincipalId()) + .appendListQueryParam( + "status", + request.getStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection.class, + ListWorkRequestsResponse.Builder::workRequestCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public UpdateCredentialResponse updateCredential(UpdateCredentialRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank(request.getCredentialKey(), "credentialKey must not be blank"); + Objects.requireNonNull( + request.getUpdateCredentialDetails(), "updateCredentialDetails is required"); + + return clientCall(request, UpdateCredentialResponse::builder) + .logger(LOG, "updateCredential") + .serviceDetails("DatabaseToolsRuntime", "UpdateCredential", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("credentials") + .appendPathParam(request.getCredentialKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.Credential.class, + UpdateCredentialResponse.Builder::credential) + .handleResponseHeaderString( + "opc-request-id", UpdateCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse + updateDatabaseToolsDatabaseApiGatewayConfigGlobal( + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getGlobalKey().getValue(), "globalKey must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails is required"); + + return clientCall( + request, UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigGlobal") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("globals") + .appendPathParam(request.getGlobalKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigGlobal) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse + updateDatabaseToolsDatabaseApiGatewayConfigPool( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest request) { + + Validate.notBlank( + request.getDatabaseToolsDatabaseApiGatewayConfigId(), + "databaseToolsDatabaseApiGatewayConfigId must not be blank"); + + Validate.notBlank(request.getPoolKey(), "poolKey must not be blank"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolDetails is required"); + + return clientCall(request, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigPool") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPool", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDatabaseToolsDatabaseApiGatewayConfigPoolRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPool.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPool) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse + updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest request) { + + 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"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails is required"); + + return clientCall( + request, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("apiSpecs") + .appendPathParam(request.getApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolApiSpec) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse + updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest request) { + + 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"); + Objects.requireNonNull( + request.getUpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails(), + "updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails is required"); + + return clientCall( + request, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse::builder) + .logger(LOG, "updateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec") + .serviceDetails( + "DatabaseToolsRuntime", + "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder( + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsDatabaseApiGatewayConfigs") + .appendPathParam(request.getDatabaseToolsDatabaseApiGatewayConfigId()) + .appendPathParam("pools") + .appendPathParam(request.getPoolKey()) + .appendPathParam("autoApiSpecs") + .appendPathParam(request.getAutoApiSpecKey()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.class, + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec) + .handleResponseHeaderString( + "etag", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::etag) + .handleResponseHeaderString( + "opc-request-id", + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.Builder + ::opcRequestId) + .callSync(); + } + + @Override + public UpdatePropertySetResponse updatePropertySet(UpdatePropertySetRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + + Validate.notBlank( + request.getPropertySetKey().getValue(), "propertySetKey must not be blank"); + Objects.requireNonNull( + request.getUpdatePropertySetDetails(), "updatePropertySetDetails is required"); + + return clientCall(request, UpdatePropertySetResponse::builder) + .logger(LOG, "updatePropertySet") + .serviceDetails("DatabaseToolsRuntime", "UpdatePropertySet", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePropertySetRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("propertySets") + .appendPathParam(request.getPropertySetKey().getValue()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model.PropertySet.class, + UpdatePropertySetResponse.Builder::propertySet) + .handleResponseHeaderString( + "opc-request-id", UpdatePropertySetResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( + ValidateDatabaseToolsConnectionRequest request) { + + Validate.notBlank( + request.getDatabaseToolsConnectionId(), + "databaseToolsConnectionId must not be blank"); + Objects.requireNonNull( + request.getValidateDatabaseToolsConnectionDetails(), + "validateDatabaseToolsConnectionDetails is required"); + + return clientCall(request, ValidateDatabaseToolsConnectionResponse::builder) + .logger(LOG, "validateDatabaseToolsConnection") + .serviceDetails("DatabaseToolsRuntime", "ValidateDatabaseToolsConnection", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDatabaseToolsConnectionRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsConnections") + .appendPathParam(request.getDatabaseToolsConnectionId()) + .appendPathParam("actions") + .appendPathParam("validateConnection") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsConnectionResult.class, + ValidateDatabaseToolsConnectionResponse.Builder + ::validateDatabaseToolsConnectionResult) + .handleResponseHeaderString( + "opc-request-id", + ValidateDatabaseToolsConnectionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ValidateDatabaseToolsIdentityCredentialResponse validateDatabaseToolsIdentityCredential( + ValidateDatabaseToolsIdentityCredentialRequest request) { + + Validate.notBlank( + request.getDatabaseToolsIdentityId(), "databaseToolsIdentityId must not be blank"); + Objects.requireNonNull( + request.getValidateDatabaseToolsIdentityCredentialDetails(), + "validateDatabaseToolsIdentityCredentialDetails is required"); + + return clientCall(request, ValidateDatabaseToolsIdentityCredentialResponse::builder) + .logger(LOG, "validateDatabaseToolsIdentityCredential") + .serviceDetails( + "DatabaseToolsRuntime", "ValidateDatabaseToolsIdentityCredential", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ValidateDatabaseToolsIdentityCredentialRequest::builder) + .basePath("/20230222") + .appendPathParam("databaseToolsIdentities") + .appendPathParam(request.getDatabaseToolsIdentityId()) + .appendPathParam("actions") + .appendPathParam("validateCredential") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult.class, + ValidateDatabaseToolsIdentityCredentialResponse.Builder + ::validateDatabaseToolsIdentityCredentialResult) + .handleResponseHeaderString( + "opc-request-id", + ValidateDatabaseToolsIdentityCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DatabaseToolsRuntimeWaiters getWaiters() { + return waiters; + } + + @Override + public DatabaseToolsRuntimePaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DatabaseToolsRuntimeClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DatabaseToolsRuntimeClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DatabaseToolsRuntimeClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} 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..5ecc67b49cf --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimePaginators.java @@ -0,0 +1,1371 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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..c7562e065be --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeWaiters.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.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}. + */ +@jakarta.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/model/ActionType.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ActionType.java new file mode 100644 index 00000000000..f269798a2f9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ActionType.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 type of action. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + 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..78f094930ae --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ApexFaIntegrationPrerequisitesCheck.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApexFaIntegrationPrerequisitesCheck.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ApexFaIntegrationPrerequisitesCheck + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..844d4a9059e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ConnectionType.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 connection type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum ConnectionType implements com.oracle.bmc.http.internal.BmcEnum { + 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..53c75b14a0b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialBasicDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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( + @com.fasterxml.jackson.annotation.JsonProperty("key") String key, + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("password") 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..28202537fa9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialDetails.java @@ -0,0 +1,94 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateCredentialDetails + extends com.oracle.bmc.http.client.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..269e23958c8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialExecuteGranteeDetails.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCredentialExecuteGranteeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateCredentialExecuteGranteeDetails + extends com.oracle.bmc.http.client.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..77b68926de8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateCredentialPublicSynonymDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCredentialPublicSynonymDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateCredentialPublicSynonymDetails + extends com.oracle.bmc.http.client.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..f3a0e162b87 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..585cf3a84ab --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + extends com.oracle.bmc.http.client.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..5fad29a9964 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..8dbd927e218 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..de5ecb40b69 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..50fd939e40d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java @@ -0,0 +1,459 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..8e64dbe01ae --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/Credential.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Credential.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Credential extends com.oracle.bmc.http.client.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..5e459cb6370 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialCollection + extends com.oracle.bmc.http.client.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..61b8df99e87 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGrantee.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialExecuteGrantee.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialExecuteGrantee + extends com.oracle.bmc.http.client.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..0f90971f656 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeCollection.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialExecuteGranteeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialExecuteGranteeCollection + extends com.oracle.bmc.http.client.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..f90a379018e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialExecuteGranteeSummary.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialExecuteGranteeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialExecuteGranteeSummary + extends com.oracle.bmc.http.client.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..916e2688e3b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialKeyType.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.databasetoolsruntime.model; + +/** The credential key type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum CredentialKeyType implements com.oracle.bmc.http.internal.BmcEnum { + 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..db4ecd2b8bb --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonym.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialPublicSynonym.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialPublicSynonym + extends com.oracle.bmc.http.client.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..15ce648c00d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymCollection.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialPublicSynonymCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialPublicSynonymCollection + extends com.oracle.bmc.http.client.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..90f730d46bd --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialPublicSynonymSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialPublicSynonymSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialPublicSynonymSummary + extends com.oracle.bmc.http.client.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..7d1d50635de --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResource.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialRelatedResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialRelatedResource + extends com.oracle.bmc.http.client.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..e3fb8b6605a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialRelatedResourceType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** The related resource type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum CredentialRelatedResourceType implements com.oracle.bmc.http.internal.BmcEnum { + 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..87608a954a1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CredentialSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CredentialSummary + extends com.oracle.bmc.http.client.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..c56d9675f3f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/CredentialType.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** The credential type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum CredentialType implements com.oracle.bmc.http.internal.BmcEnum { + Basic("BASIC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (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..7f449207664 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigAdvancedPropertyConfigType.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 database API gateway config advanced property config type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseApiGatewayConfigAdvancedPropertyConfigType + implements com.oracle.bmc.http.internal.BmcEnum { + 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..0b843d9c950 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundle.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseApiGatewayConfigCertificateBundle + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..c439c09d0d7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleFileName.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..3cd64fbf8f3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificateBundleSelfSigned.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..af051e18518 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePrivateKeyFileName.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseApiGatewayConfigCertificatePrivateKeyFileName.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseApiGatewayConfigCertificatePrivateKeyFileName + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..9cb4a2563ba --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigCertificatePublicFileName.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseApiGatewayConfigCertificatePublicFileName.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseApiGatewayConfigCertificatePublicFileName + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..427070aa713 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigGlobalKey.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** The Database Tools database API gateway config global key. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseApiGatewayConfigGlobalKey implements com.oracle.bmc.http.internal.BmcEnum { + 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..2763fc4f312 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseApiGatewayConfigType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** The Database Tools database API gateway config type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseApiGatewayConfigType implements com.oracle.bmc.http.internal.BmcEnum { + 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..7d8e47e85e9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsConnection.java @@ -0,0 +1,624 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsConnection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsConnection + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..4503922505f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfig.java @@ -0,0 +1,631 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfig + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..5ce66c3dd6c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary.java @@ -0,0 +1,778 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..2e3c2af088a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = + DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection.Builder + .class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + extends com.oracle.bmc.http.client.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..01d31543982 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigContent.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigContent.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigContent + extends com.oracle.bmc.http.client.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..8425847bffe --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobal.java @@ -0,0 +1,477 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigGlobal + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..b425585bbd9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigGlobalDefault.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..5067b0d4e6a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPool.java @@ -0,0 +1,542 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPool + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..c710867003a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + extends com.oracle.bmc.http.client.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..7ae59c3052c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + extends com.oracle.bmc.http.client.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..87420a83280 --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..0065807de44 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..7e2eba2a595 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary + extends com.oracle.bmc.http.client.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..69540c0ad23 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec.java @@ -0,0 +1,490 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..e86b9eafcbe --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + extends com.oracle.bmc.http.client.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..1feabc9e93f --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..6518c5b2b62 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..2b8f19808c6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary + extends com.oracle.bmc.http.client.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..743a871b0f7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolCollection.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseToolsDatabaseApiGatewayConfigPoolCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseToolsDatabaseApiGatewayConfigPoolCollection + extends com.oracle.bmc.http.client.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..4434a8e66ff --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContent.java @@ -0,0 +1,554 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolContent + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..6486b1cdbac --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..671a5f010dc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefault.java @@ -0,0 +1,342 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..1494611a07e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..68c891532c5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsDatabaseApiGatewayConfigPoolSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsDatabaseApiGatewayConfigPoolSummary + extends com.oracle.bmc.http.client.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..3680714e5ab --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsExternalAuthenticationStatus.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.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. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseToolsExternalAuthenticationStatus + implements com.oracle.bmc.http.internal.BmcEnum { + 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..29e1bf88eb8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentity.java @@ -0,0 +1,332 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseToolsIdentity + extends com.oracle.bmc.http.client.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..5fed75a76a4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityLifecycleState.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.databasetoolsruntime.model; + +/** The lifecycle state. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseToolsIdentityLifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + 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..6197d3bfb49 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityOracleDatabaseResourcePrincipal.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..de72f4c80b9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DatabaseToolsIdentityStatus.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 status of the identity. AVAILABLE if the identity type can be used with this connection. + * UNAVAILABLE if not. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DatabaseToolsIdentityStatus implements com.oracle.bmc.http.internal.BmcEnum { + 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..5c459851c5f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/DbmsCloudStatus.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.databasetoolsruntime.model; + +/** The DBMS_CLOUD package installation status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum DbmsCloudStatus implements com.oracle.bmc.http.internal.BmcEnum { + 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..5a63c1b3a18 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExecuteSqlAsynchronousInputDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..0264f53be87 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputInlineDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..36c178f430a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlAsynchronousInputObjectStorageDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..f73e62fa119 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBind.java @@ -0,0 +1,403 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ExecuteSqlBind.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlBind + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..8499930ab04 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindPlsqlTable.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlBindPlsqlTable.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlBindPlsqlTable + extends com.oracle.bmc.http.client.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..9281acb61b7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlBindTypeComponent.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlBindTypeComponent.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlBindTypeComponent + extends com.oracle.bmc.http.client.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..5c9b416e50b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionAsynchronousDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..5708c4b6cbc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExecuteSqlDatabaseToolsConnectionDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..79913a48042 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlDatabaseToolsConnectionSynchronousDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..ce498ed0059 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputBatchDetails.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..3080ad4a6bb --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExecuteSqlInputDetails + extends com.oracle.bmc.http.client.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..a36f36da2d6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptDetails.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 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..ecaf9ee13c9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputScriptSqlRequestDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlInputScriptSqlRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlInputScriptSqlRequestDetails + extends com.oracle.bmc.http.client.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..266e7668651 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlInputStandardDetails.java @@ -0,0 +1,315 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..d9e85728ed4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlObjectStorageLocation.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlObjectStorageLocation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlObjectStorageLocation + extends com.oracle.bmc.http.client.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..45bad69904c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExecuteSqlOutputDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorage("OBJECT_STORAGE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; +} diff --git a/bmc-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..ce30eb61bf6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExecuteSqlOutputDispositionDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorage("OBJECT_STORAGE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-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..95af89a1ded --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputDispositionObjectStorageDetails.java @@ -0,0 +1,700 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..b1618625ee8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputObjectStorageDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..ae1a2b9ae03 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlOutputResultDispositionTemplate.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlOutputResultDispositionTemplate.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlOutputResultDispositionTemplate + extends com.oracle.bmc.http.client.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..fbc61be640b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponse.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExecuteSqlResponse extends com.oracle.bmc.http.client.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..fd679cc6bfa --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseBatch.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..b9e648bec9f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseEnv.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseEnv.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseEnv + extends com.oracle.bmc.http.client.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..bb79e957a2d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseFormat.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseFormat.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseFormat + extends com.oracle.bmc.http.client.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..de23bd36c48 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemBatch.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemBatch.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemBatch + extends com.oracle.bmc.http.client.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..486768f318a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemError.java @@ -0,0 +1,291 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemError + extends com.oracle.bmc.http.client.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..c824b9bb6b0 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemProperties.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemProperties.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemProperties + extends com.oracle.bmc.http.client.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..e76ddaa2488 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSet.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemResultSet.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemResultSet + extends com.oracle.bmc.http.client.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..8b948b83dd6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemResultSetMetadata.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemResultSetMetadata.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemResultSetMetadata + extends com.oracle.bmc.http.client.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..81674090e63 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemScript.java @@ -0,0 +1,509 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemScript.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemScript + extends com.oracle.bmc.http.client.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..75e3f95fb10 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStandard.java @@ -0,0 +1,509 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemStandard.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemStandard + extends com.oracle.bmc.http.client.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..7bd8de5024a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseItemStatementPos.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecuteSqlResponseItemStatementPos.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecuteSqlResponseItemStatementPos + extends com.oracle.bmc.http.client.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..cfce0c1e87a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseScript.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..de7d66f7f76 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ExecuteSqlResponseStandard.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..d38df925b5c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityProviderType.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 identity provider type */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum IdentityProviderType implements com.oracle.bmc.http.internal.BmcEnum { + 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..932d26b4e25 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/IdentityType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** The Database Tools identity type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum IdentityType implements com.oracle.bmc.http.internal.BmcEnum { + 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..7a4a3a0cb44 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationStatus.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.databasetoolsruntime.model; + +/** The state of the work request operation. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + 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..904396ce05d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/OperationType.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.databasetoolsruntime.model; + +/** The work request operation type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + 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..0424cefea40 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PayloadType.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 payload type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum PayloadType implements com.oracle.bmc.http.internal.BmcEnum { + 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..4ee06ae4800 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySet.java @@ -0,0 +1,102 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PropertySet extends com.oracle.bmc.http.client.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..e48a57ae7c3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApex.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..a46689b68b5 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexDocumentGenerator.java @@ -0,0 +1,575 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 + implements com.oracle.bmc.http.internal.BmcEnum { + 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..4f2451c17de --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetApexFaIntegration.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..686c46b4ae7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetKey.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 property set key */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum PropertySetKey implements com.oracle.bmc.http.internal.BmcEnum { + 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..dc644a4e2fb --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthentication.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..91497ede642 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProvider.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PropertySetOracleDatabaseExternalAuthenticationIdentityProvider + extends com.oracle.bmc.http.client.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..9a3949e5ded --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..01ef5979581 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..57c9442ee24 --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..e7ff06e10f7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/SortOrder.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.model; + +/** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } +} 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..f20b264764d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/StatementType.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.databasetoolsruntime.model; + +/** The statement type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +public enum StatementType implements com.oracle.bmc.http.internal.BmcEnum { + 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..fa9b41d59cc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialBasicDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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( + @com.fasterxml.jackson.annotation.JsonProperty("userName") String userName, + @com.fasterxml.jackson.annotation.JsonProperty("password") 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..cb038b288a4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateCredentialDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateCredentialDetails + extends com.oracle.bmc.http.client.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..0cf99c2da07 --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..4c7db5ee772 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..8511c93bc6a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..961996af616 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails + extends com.oracle.bmc.http.client.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..8a23a34ba01 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..1fd5e92b4fc --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..b95351dfe09 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..3347fb86bb1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.java @@ -0,0 +1,459 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails + extends com.oracle.bmc.http.client.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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 implements com.oracle.bmc.http.internal.BmcEnum { + 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..727e9f80ad2 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexDocumentGeneratorDetails.java @@ -0,0 +1,466 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..d22bca2f6ec --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetApexFaIntegrationDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..aaf0fd8dcbf --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdatePropertySetDetails + extends com.oracle.bmc.http.client.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..cd14da46b6a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UpdatePropertySetOracleDatabaseExternalAuthenticationDetails.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..f65b571f9eb --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredential.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UserCredential.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UserCredential + extends com.oracle.bmc.http.client.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..eb900338faf --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UserCredentialCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UserCredentialCollection + extends com.oracle.bmc.http.client.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..58d7038a561 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/UserCredentialSummary.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UserCredentialSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UserCredentialSummary + extends com.oracle.bmc.http.client.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..07f96f5b039 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionDetails.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ValidateDatabaseToolsConnectionDetails + extends com.oracle.bmc.http.client.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..9d15238d3ac --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlDetails.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..6735e7899db --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionMySqlResult.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..9aa1f37381c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseDetails.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..06877263253 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionOracleDatabaseResult.java @@ -0,0 +1,681 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..fbe1d185f27 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlDetails.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..a3ef674ed9d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionPostgresqlResult.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..13423c9681d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsConnectionResult.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ValidateDatabaseToolsConnectionResult + extends com.oracle.bmc.http.client.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..8d48a079fa8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialDetails.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ValidateDatabaseToolsIdentityCredentialDetails + extends com.oracle.bmc.http.client.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..1be72f5cdc0 --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..bdf8f986970 --- /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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_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..6b2f74a8f23 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidateDatabaseToolsIdentityCredentialResult.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 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.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ValidateDatabaseToolsIdentityCredentialResult + extends com.oracle.bmc.http.client.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..02a526f8b71 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationExternalAuthenticationStatus.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidationExternalAuthenticationStatus.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ValidationExternalAuthenticationStatus + extends com.oracle.bmc.http.client.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..258bae684bb --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/ValidationIdentityStatus.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; + +/** + * 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidationIdentityStatus.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ValidationIdentityStatus + extends com.oracle.bmc.http.client.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..2135bd9212f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequest.java @@ -0,0 +1,711 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequest extends com.oracle.bmc.http.client.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..d3027aa70d9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestCollection + extends com.oracle.bmc.http.client.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..624e5569368 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestError.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestError + extends com.oracle.bmc.http.client.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..880d1b50a16 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestErrorCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.client.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..bacbce94de9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntry.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntry + extends com.oracle.bmc.http.client.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..fb10b594b55 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestLogEntryCollection.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.client.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..20a25d72c2e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestResource.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.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.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..9bd0116917d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/model/WorkRequestSummary.java @@ -0,0 +1,713 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummary + extends com.oracle.bmc.http.client.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..542fc006f97 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CancelWorkRequestRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..a56d65fab2a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialExecuteGranteeRequest.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 + * CreateCredentialExecuteGranteeRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..56d0c044e48 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialPublicSynonymRequest.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 + * CreateCredentialPublicSynonymRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..8b29774099b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateCredentialRequest.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 CreateCredentialRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..ebecf5351ac --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..7040fced913 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..54ddc09087c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/CreateDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..180b5d4c1b0 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialExecuteGranteeRequest.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 + * DeleteCredentialExecuteGranteeRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..1258b48696c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteCredentialPublicSynonymRequest.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 + * DeleteCredentialPublicSynonymRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..49012be96cc --- /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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..447ef44ab07 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.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 + * DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..130b282a873 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.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 + * DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..a35465ed70c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java @@ -0,0 +1,304 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..ae9032ee76b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ExecuteSqlDatabaseToolsConnectionRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * ExecuteSqlDatabaseToolsConnectionRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..d9c8b16bb80 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialExecuteGranteeRequest.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.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * GetCredentialExecuteGranteeRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..e5f83df8930 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetCredentialPublicSynonymRequest.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.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * GetCredentialPublicSynonymRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..0af1f32fe1a --- /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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..2ab8d02fa2c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigContentRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseToolsDatabaseApiGatewayConfigContentRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..4902256d36f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * GetDatabaseToolsDatabaseApiGatewayConfigGlobalRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..22cedc0dfda --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.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 + * GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..e1867776ee7 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.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 + * GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..6cbf6ce2667 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetDatabaseToolsDatabaseApiGatewayConfigPoolRequest.java @@ -0,0 +1,304 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..0c4e104ee83 --- /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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..e520c49b9da --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetUserCredentialRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetUserCredentialRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..6295e930e8f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/GetWorkRequestRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..08f484679d2 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialExecuteGranteesRequest.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 + * ListCredentialExecuteGranteesRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..e6a1af6a441 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListCredentialPublicSynonymsRequest.java @@ -0,0 +1,388 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..c648f3de77f --- /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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..125770db923 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest.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.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..81f58153bda --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsRequest.java @@ -0,0 +1,444 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..39445de4e8a --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest.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.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsRequest. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..73338f031aa --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListDatabaseToolsDatabaseApiGatewayConfigPoolsRequest.java @@ -0,0 +1,417 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..516cc29f495 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListUserCredentialsRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use ListUserCredentialsRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..8b29613943d --- /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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..1605036d2c4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,365 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The 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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..9631af8b51e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ListWorkRequestsRequest.java @@ -0,0 +1,516 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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 implements com.oracle.bmc.http.internal.BmcEnum { + 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.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The [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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..318e29e0e05 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateCredentialRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdateCredentialRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..bf290c4455a --- /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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..a5dab944c02 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest.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.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..4e6b08bb908 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecRequest.java @@ -0,0 +1,418 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..452e2380d47 --- /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. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..c5db5fcbc27 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/UpdatePropertySetRequest.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.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use UpdatePropertySetRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..a534cd0465e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsConnectionRequest.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 + * ValidateDatabaseToolsConnectionRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..264f872425d --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/requests/ValidateDatabaseToolsIdentityCredentialRequest.java @@ -0,0 +1,348 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.requests; + +import com.oracle.bmc.databasetoolsruntime.model.*; +/** + * Example: Click here to see how to use + * ValidateDatabaseToolsIdentityCredentialRequest. + */ +@jakarta.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.http.client.RequestInterceptor 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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..370e9b90e25 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CancelWorkRequestResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..37df6fe00a6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialExecuteGranteeResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code CredentialExecuteGrantee} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateCredentialExecuteGranteeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code CredentialExecuteGrantee} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..2ce275fdc55 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialPublicSynonymResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code CredentialPublicSynonym} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateCredentialPublicSynonymResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code CredentialPublicSynonym} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..1aaf1ecc625 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateCredentialResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code Credential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** 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 {@code Credential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..f7be55f7ef6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..96b0d746abb --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..5c5e431cf2f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPool} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DatabaseToolsDatabaseApiGatewayConfigPool} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..a562667c4e9 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialExecuteGranteeResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteCredentialExecuteGranteeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteCredentialExecuteGranteeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..31193bc840b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialPublicSynonymResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteCredentialPublicSynonymResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteCredentialPublicSynonymResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..03373c1e04b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteCredentialResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..2016a00333f --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..85ea5a6e54e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..9c3ef43d5a6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + 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..c4dbc552f44 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ExecuteSqlDatabaseToolsConnectionResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code ExecuteSqlResponse} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse executeSqlResponse; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ExecuteSqlDatabaseToolsConnectionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** The returned {@code ExecuteSqlResponse} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse executeSqlResponse; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..a3032fd4273 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialExecuteGranteeResponse.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.*; + +@jakarta.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 {@code CredentialExecuteGrantee} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credentialExecuteGrantee = credentialExecuteGrantee; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetCredentialExecuteGranteeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code CredentialExecuteGrantee} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee + credentialExecuteGrantee; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..e18360b8810 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialPublicSynonymResponse.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.*; + +@jakarta.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 {@code CredentialPublicSynonym} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credentialPublicSynonym = credentialPublicSynonym; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetCredentialPublicSynonymResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code CredentialPublicSynonym} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym + credentialPublicSynonym; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..0bf59266f30 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetCredentialResponse.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.*; + +@jakarta.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 {@code Credential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credential = credential; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Credential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..9874192d36b --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigContentResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..74716ee9aad --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.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.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigGlobal} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigGlobal} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..53c6203e598 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..750453feaa6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.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.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..b096ec19bf2 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPool} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigPool} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..5f7ac22f934 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetPropertySetResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code PropertySet} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.propertySet = propertySet; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code PropertySet} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..ed1fe491e94 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetUserCredentialResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code UserCredential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredential userCredential; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.UserCredential userCredential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.userCredential = userCredential; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code UserCredential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredential userCredential; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..56c2d7db035 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/GetWorkRequestResponse.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.*; + +@jakarta.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 {@code WorkRequest} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequest workRequest; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 {@code WorkRequest} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequest workRequest; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..5b6d942c991 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialExecuteGranteesResponse.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.*; + +@jakarta.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 {@code CredentialExecuteGranteeCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + credentialExecuteGranteeCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCredentialExecuteGranteesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code CredentialExecuteGranteeCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection + credentialExecuteGranteeCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..514a4b03a2e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialPublicSynonymsResponse.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.*; + +@jakarta.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 {@code CredentialPublicSynonymCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + credentialPublicSynonymCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListCredentialPublicSynonymsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code CredentialPublicSynonymCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection + credentialPublicSynonymCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..5ce177ba283 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListCredentialsResponse.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.*; + +@jakarta.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 {@code CredentialCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialCollection credentialCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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 {@code CredentialCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.CredentialCollection credentialCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..8c1c379b0a6 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection} + * instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned {@code + * DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection} instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection + databaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection; + + /** + * The returned {@code + * 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 + */ + @Override + 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 + */ + @Override + 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..f51d3bd600c --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection} instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..9d3a1d84d5e --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection} instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection} + * instance. + */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..be6c23704a4 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + databaseToolsDatabaseApiGatewayConfigPoolCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DatabaseToolsDatabaseApiGatewayConfigPoolCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolCollection + databaseToolsDatabaseApiGatewayConfigPoolCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..bdb8137a7d8 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListUserCredentialsResponse.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.*; + +@jakarta.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 {@code UserCredentialCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection + userCredentialCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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 {@code UserCredentialCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection + userCredentialCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..d8165998aff --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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 {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..06fec8ec899 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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 {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..f145db18759 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ListWorkRequestsResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code WorkRequestCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection workRequestCollection; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestCollection} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection + workRequestCollection; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..f38312add21 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateCredentialResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code Credential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.Credential credential) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.credential = credential; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Credential} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.Credential credential; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..5243a869347 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse.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.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigGlobal} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigGlobal} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigGlobal + databaseToolsDatabaseApiGatewayConfigGlobal; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..7253c3f1dca --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec + databaseToolsDatabaseApiGatewayConfigPoolApiSpec; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..9712ca6dda2 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse.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.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec + databaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..7ea249429da --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code DatabaseToolsDatabaseApiGatewayConfigPool} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned {@code 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__, + java.util.Map> 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 + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. 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 {@code DatabaseToolsDatabaseApiGatewayConfigPool} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool + databaseToolsDatabaseApiGatewayConfigPool; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..fdb1c1c0de3 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/UpdatePropertySetResponse.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.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code PropertySet} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.propertySet = propertySet; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code PropertySet} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.PropertySet propertySet; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..a49e10f03a1 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsConnectionResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code ValidateDatabaseToolsConnectionResult} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + validateDatabaseToolsConnectionResult; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + validateDatabaseToolsConnectionResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.validateDatabaseToolsConnectionResult = validateDatabaseToolsConnectionResult; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ValidateDatabaseToolsConnectionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ValidateDatabaseToolsConnectionResult} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult + validateDatabaseToolsConnectionResult; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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..d28705e9d56 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/responses/ValidateDatabaseToolsIdentityCredentialResponse.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.databasetoolsruntime.responses; + +import com.oracle.bmc.databasetoolsruntime.model.*; + +@jakarta.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 {@code ValidateDatabaseToolsIdentityCredentialResult} instance. */ + private com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialResult + validateDatabaseToolsIdentityCredentialResult; + + /** + * The returned {@code 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__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialResult + validateDatabaseToolsIdentityCredentialResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.validateDatabaseToolsIdentityCredentialResult = + validateDatabaseToolsIdentityCredentialResult; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ValidateDatabaseToolsIdentityCredentialResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ValidateDatabaseToolsIdentityCredentialResult} instance. */ + private com.oracle.bmc.databasetoolsruntime.model + .ValidateDatabaseToolsIdentityCredentialResult + validateDatabaseToolsIdentityCredentialResult; + + /** + * The returned {@code 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 + */ + @Override + 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 + */ + @Override + 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-databasetoolsruntime/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasetoolsruntime/reflect-config.json b/bmc-databasetoolsruntime/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasetoolsruntime/reflect-config.json new file mode 100644 index 00000000000..2f686a79339 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasetoolsruntime/reflect-config.json @@ -0,0 +1,2002 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ApexFaIntegrationPrerequisitesCheck", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ApexFaIntegrationPrerequisitesCheck$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ApexFaIntegrationPrerequisitesCheck$Status", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ConnectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateCredentialBasicDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateCredentialBasicDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateCredentialExecuteGranteeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateCredentialPublicSynonymDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails$DatabaseObjectType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails$Operations", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails$SecuritySchemes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails$DatabaseActionsStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails$RestEnabledSqlStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.Credential", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.Credential$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGrantee$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialExecuteGranteeSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialKeyType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonym$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialPublicSynonymSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialRelatedResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialRelatedResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialRelatedResourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.CredentialType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigAdvancedPropertyConfigType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificateBundle", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificateBundle$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificateBundleFileName", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificateBundleFileName$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificateBundleSelfSigned", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificateBundleSelfSigned$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificatePrivateKeyFileName", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificatePrivateKeyFileName$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificatePrivateKeyFileName$Format", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificatePublicFileName", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificatePublicFileName$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigCertificatePublicFileName$Format", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigGlobalKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseApiGatewayConfigType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsConnection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsConnection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsConnection$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfig$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary$DataType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary$DatabaseToolsConnectionTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigContent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigContent$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal$PoolRoute", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal$DatabaseApiStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobal$MetadataSource", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobalDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigGlobalDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool$DatabaseActionsStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPool$RestEnabledSqlStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolApiSpecSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec$DatabaseObjectType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec$Operations", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec$SecuritySchemes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolContent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolContent$DatabaseActionsStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolContent$RestEnabledSqlStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolContentDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolDefaultSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsDatabaseApiGatewayConfigPoolSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsExternalAuthenticationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsIdentity", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsIdentityLifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipal", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsIdentityOracleDatabaseResourcePrincipal$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DatabaseToolsIdentityStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.DbmsCloudStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlAsynchronousInputDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlAsynchronousInputDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlAsynchronousInputInlineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlAsynchronousInputInlineDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlAsynchronousInputObjectStorageDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlAsynchronousInputObjectStorageDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlBind", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlBind$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlBind$Mode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlBindPlsqlTable", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlBindPlsqlTable$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlBindTypeComponent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlBindTypeComponent$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionAsynchronousDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionAsynchronousDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionSynchronousDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlDatabaseToolsConnectionSynchronousDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputBatchDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputBatchDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputScriptDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputScriptDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputScriptSqlRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputScriptSqlRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputStandardDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlInputStandardDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlObjectStorageLocation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlObjectStorageLocation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputDispositionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputDispositionDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputDispositionObjectStorageDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputDispositionObjectStorageDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputDispositionObjectStorageDetails$StorageTier", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputObjectStorageDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputObjectStorageDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputResultDispositionTemplate", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlOutputResultDispositionTemplate$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponse", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseBatch", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseBatch$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseEnv", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseEnv$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseFormat", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseFormat$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemBatch", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemBatch$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemProperties", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemProperties$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemResultSet", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemResultSet$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemResultSetMetadata", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemResultSetMetadata$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemScript", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemScript$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemStandard", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemStandard$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemStatementPos", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseItemStatementPos$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseScript", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseScript$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseStandard", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ExecuteSqlResponseStandard$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.IdentityProviderType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.IdentityType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PayloadType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySet", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApex", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApex$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApexDocumentGenerator", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApexDocumentGenerator$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApexDocumentGenerator$PrintServerType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApexDocumentGenerator$AutonomousDatabaseResourcePrincipalStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApexFaIntegration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetApexFaIntegration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthentication", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthentication$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthenticationIdentityProvider", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthenticationIdentityProviderAzureAd$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthenticationIdentityProviderNone$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.PropertySetOracleDatabaseExternalAuthenticationIdentityProviderOciIam$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.StatementType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialBasicDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialBasicDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails$PoolRoute", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalDetails$DatabaseApiStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails$DatabaseObjectType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails$Operations", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecDetails$SecuritySchemes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails$DatabaseActionsStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdateDatabaseToolsDatabaseApiGatewayConfigPoolDetails$RestEnabledSqlStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetApexDocumentGeneratorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetApexDocumentGeneratorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetApexFaIntegrationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetApexFaIntegrationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetOracleDatabaseExternalAuthenticationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UpdatePropertySetOracleDatabaseExternalAuthenticationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UserCredential", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UserCredential$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UserCredentialCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UserCredentialSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.UserCredentialSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionMySqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionMySqlDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionMySqlResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionMySqlResult$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionOracleDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionOracleDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionOracleDatabaseResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionOracleDatabaseResult$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionPostgresqlDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionPostgresqlDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionPostgresqlResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionPostgresqlResult$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsConnectionResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialOracleDatabaseResourcePrincipalResult$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidateDatabaseToolsIdentityCredentialResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidationExternalAuthenticationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidationExternalAuthenticationStatus$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidationIdentityStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.ValidationIdentityStatus$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasetoolsruntime.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-databasetoolsruntime/src/main/resources/com/oracle/bmc/databasetoolsruntime/client.properties b/bmc-databasetoolsruntime/src/main/resources/com/oracle/bmc/databasetoolsruntime/client.properties new file mode 100644 index 00000000000..60e16e64851 --- /dev/null +++ b/bmc-databasetoolsruntime/src/main/resources/com/oracle/bmc/databasetoolsruntime/client.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + +java.client.codegen.version = 2.163 +java.minimum.client.codegen.version.from.client = 2.145 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230222") \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 94c511a2845..153175ef277 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 1c7d3bf7d25..bf87e65a888 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 1c8298e10a7..ccab5a3dc1b 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 69e2157d809..3aed52d6317 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index e9474969a96..15927b26f83 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 5f15c8c3dba..7019be49446 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index ebaee1cde8f..b90a4b31f3c 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index d8d05959326..eb2a1f4b5c4 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index b01ff0107c8..d73e3e51775 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index ee0d8f9b49f..b906d6ea6eb 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 7229eecc798..e3648463fe4 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index bbf6bb38968..fc6dafe3af2 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 6e813c16b7a..003fc340204 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 5e09691d99e..0e515ad4e1f 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 73bd254983b..fb220bff3cf 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 2a393cb5a01..712942c9889 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index bcf5d96ba87..dc7a4c900d7 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.86.1 + 3.86.2 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 0727593b976..3df6dc20c79 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index d2f41e7b815..c555eeffab4 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 1983c21ac78..0e69f916de1 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 4cfafd99ab0..d81e0db6657 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.86.1 + 3.86.2 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index d95bf9836ff..ab8516c0f84 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index bec29732a98..940b2854567 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 96bb0bf0ae7..1b7b0a1f73f 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.86.1 + 3.86.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 pom import @@ -805,5 +805,9 @@ com.oracle.oci.sdk oci-java-sdk-containerregistry + + com.oracle.oci.sdk + oci-java-sdk-databasetoolsruntime + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 0c7f60abc6f..877d6420af4 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 01acc20f87a..1c6d8eb4bfb 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index a8eef8b4147..d53ecc910d1 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 5bd77804723..65390945538 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.86.1 + 3.86.2 pom import @@ -691,5 +691,9 @@ com.oracle.oci.sdk oci-java-sdk-containerregistry + + com.oracle.oci.sdk + oci-java-sdk-databasetoolsruntime + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 44e6f128bc2..f98270fcb6d 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index ac17660da54..3c112a19762 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index 50911be009f..71311fa8fca 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 0de6ea9b9fc..6dfeaba8c84 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file 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 f09e334bc96..fa331a7989b 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 @@ -12,6 +12,14 @@ public enum ImportedModelCapability implements com.oracle.bmc.http.internal.BmcE 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 4f0d1788895..396d9fe170c 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 @@ -14,6 +14,15 @@ public enum ModelCapability implements com.oracle.bmc.http.internal.BmcEnum { 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 b746a66bedb..cc7c34422cc 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 2c0df63dec2..86779a26e45 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 7055a721fad..14c4e56e264 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ 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 75559a0390f..01158cc4586 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 @@ -109,7 +109,10 @@ public java.util.concurrent.Future cancelEnrichment return clientCall(request, CancelEnrichmentJobResponse::builder) .logger(LOG, "cancelEnrichmentJob") - .serviceDetails("CancelEnrichmentJob", "CancelEnrichmentJob", "") + .serviceDetails( + "CancelEnrichmentJob", + "CancelEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CancelEnrichmentJobRequest::builder) .basePath("/20260325") 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 063d326fca1..05591a53341 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 @@ -95,7 +95,10 @@ public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobReques return clientCall(request, CancelEnrichmentJobResponse::builder) .logger(LOG, "cancelEnrichmentJob") - .serviceDetails("CancelEnrichmentJob", "CancelEnrichmentJob", "") + .serviceDetails( + "CancelEnrichmentJob", + "CancelEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CancelEnrichmentJobRequest::builder) .basePath("/20260325") 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 aa0beb54347..7a01fedefd3 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 @@ -110,7 +110,10 @@ public java.util.concurrent.Future generateEnrich return clientCall(request, GenerateEnrichmentJobResponse::builder) .logger(LOG, "generateEnrichmentJob") - .serviceDetails("GenerateEnrichmentJob", "GenerateEnrichmentJob", "") + .serviceDetails( + "GenerateEnrichmentJob", + "GenerateEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(GenerateEnrichmentJobRequest::builder) .basePath("/20260325") 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 3eb6cab4351..c47a52d5022 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 @@ -97,7 +97,10 @@ public GenerateEnrichmentJobResponse generateEnrichmentJob( return clientCall(request, GenerateEnrichmentJobResponse::builder) .logger(LOG, "generateEnrichmentJob") - .serviceDetails("GenerateEnrichmentJob", "GenerateEnrichmentJob", "") + .serviceDetails( + "GenerateEnrichmentJob", + "GenerateEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(GenerateEnrichmentJobRequest::builder) .basePath("/20260325") 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 80a11170073..13926639818 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 @@ -109,7 +109,10 @@ public java.util.concurrent.Future generateSqlFromNl( return clientCall(request, GenerateSqlFromNlResponse::builder) .logger(LOG, "generateSqlFromNl") - .serviceDetails("GenerateSqlFromNlJob", "GenerateSqlFromNl", "") + .serviceDetails( + "GenerateSqlFromNlJob", + "GenerateSqlFromNl", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(GenerateSqlFromNlRequest::builder) .basePath("/20260325") 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 3bc6c2f7ca5..913aff08977 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 @@ -95,7 +95,10 @@ public GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest requ return clientCall(request, GenerateSqlFromNlResponse::builder) .logger(LOG, "generateSqlFromNl") - .serviceDetails("GenerateSqlFromNlJob", "GenerateSqlFromNl", "") + .serviceDetails( + "GenerateSqlFromNlJob", + "GenerateSqlFromNl", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(GenerateSqlFromNlRequest::builder) .basePath("/20260325") 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 c315e68fe6e..0208843aa0a 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 @@ -109,7 +109,10 @@ public java.util.concurrent.Future getEnrichmentJob( return clientCall(request, GetEnrichmentJobResponse::builder) .logger(LOG, "getEnrichmentJob") - .serviceDetails("GetEnrichmentJob", "GetEnrichmentJob", "") + .serviceDetails( + "GetEnrichmentJob", + "GetEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetEnrichmentJobRequest::builder) .basePath("/20260325") 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 a56bb503a55..18610c7233f 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 @@ -128,7 +128,10 @@ public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request return clientCall(request, GetEnrichmentJobResponse::builder) .logger(LOG, "getEnrichmentJob") - .serviceDetails("GetEnrichmentJob", "GetEnrichmentJob", "") + .serviceDetails( + "GetEnrichmentJob", + "GetEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetEnrichmentJobRequest::builder) .basePath("/20260325") 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 e968b99473d..d80d156a373 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 @@ -108,7 +108,10 @@ public java.util.concurrent.Future listEnrichmentJob return clientCall(request, ListEnrichmentJobsResponse::builder) .logger(LOG, "listEnrichmentJobs") - .serviceDetails("ListEnrichmentJobs", "ListEnrichmentJobs", "") + .serviceDetails( + "ListEnrichmentJobs", + "ListEnrichmentJobs", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListEnrichmentJobsRequest::builder) .basePath("/20260325") 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 0b07d82527a..dadbba07d90 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 @@ -97,7 +97,10 @@ public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest r return clientCall(request, ListEnrichmentJobsResponse::builder) .logger(LOG, "listEnrichmentJobs") - .serviceDetails("ListEnrichmentJobs", "ListEnrichmentJobs", "") + .serviceDetails( + "ListEnrichmentJobs", + "ListEnrichmentJobs", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListEnrichmentJobsRequest::builder) .basePath("/20260325") diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 5930c994530..d32abc11089 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 9a90c11aa39..691fa7f68ee 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index d9e2660d627..e1b3ded783a 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index d6a6dcd4444..8899fd91993 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index cb080ed8f2a..aac488e0010 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 0f8358197ac..e22c5f8a579 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index dab1cc01175..29f68349ac7 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 88346d058bc..c6ac2a21825 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 8db4eed4bc4..012be8a6334 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index ba1a25bf192..0a1285cb171 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java index ea7bc414749..070d81f5386 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java @@ -1089,6 +1089,7 @@ public java.util.concurrent.Future listDigital .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("digitalTwinModelId", request.getDigitalTwinModelId()) .appendQueryParam("digitalTwinModelSpecUri", request.getDigitalTwinModelSpecUri()) + .appendEnumQueryParam("connectivityType", request.getConnectivityType()) .appendQueryParam("iotDomainId", request.getIotDomainId()) .appendQueryParam("id", request.getId()) .accept("application/json") diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java index c18002ecc55..07704992b72 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java @@ -1030,6 +1030,7 @@ public ListDigitalTwinInstancesResponse listDigitalTwinInstances( .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("digitalTwinModelId", request.getDigitalTwinModelId()) .appendQueryParam("digitalTwinModelSpecUri", request.getDigitalTwinModelSpecUri()) + .appendEnumQueryParam("connectivityType", request.getConnectivityType()) .appendQueryParam("iotDomainId", request.getIotDomainId()) .appendQueryParam("id", request.getId()) .accept("application/json") 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 ef2efe3aa41..ffd3520c9be 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 @@ -25,6 +25,7 @@ public final class CreateDigitalTwinInstanceDetails @Deprecated @java.beans.ConstructorProperties({ "iotDomainId", + "connectivityType", "authId", "externalKey", "displayName", @@ -32,11 +33,13 @@ public final class CreateDigitalTwinInstanceDetails "digitalTwinAdapterId", "digitalTwinModelId", "digitalTwinModelSpecUri", + "gateways", "freeformTags", "definedTags" }) public CreateDigitalTwinInstanceDetails( String iotDomainId, + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -44,10 +47,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; @@ -55,6 +60,7 @@ public CreateDigitalTwinInstanceDetails( this.digitalTwinAdapterId = digitalTwinAdapterId; this.digitalTwinModelId = digitalTwinModelId; this.digitalTwinModelSpecUri = digitalTwinModelSpecUri; + this.gateways = gateways; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -80,6 +86,21 @@ 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 @@ -211,6 +232,27 @@ 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 @@ -270,6 +312,7 @@ public CreateDigitalTwinInstanceDetails build() { CreateDigitalTwinInstanceDetails model = new CreateDigitalTwinInstanceDetails( this.iotDomainId, + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -277,6 +320,7 @@ public CreateDigitalTwinInstanceDetails build() { this.digitalTwinAdapterId, this.digitalTwinModelId, this.digitalTwinModelSpecUri, + this.gateways, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -290,6 +334,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()); } @@ -311,6 +358,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()); } @@ -347,6 +397,19 @@ 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 @@ -464,6 +527,25 @@ 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 @@ -526,6 +608,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)); @@ -534,6 +617,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(")"); @@ -551,6 +635,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) @@ -559,6 +644,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); @@ -569,6 +655,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()); @@ -588,6 +677,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/DigitalTwinAdapterEnvelopeMapping.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java index cf6d835de65..5cab86a87fb 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.client.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 = "") @@ -57,13 +60,52 @@ 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); } @@ -75,6 +117,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; } } @@ -111,6 +159,40 @@ 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); @@ -127,6 +209,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(); } @@ -142,6 +226,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); } @@ -150,6 +236,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 7561ffa8e49..462877e3828 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 @@ -33,6 +33,7 @@ public final class DigitalTwinInstance @java.beans.ConstructorProperties({ "id", "iotDomainId", + "connectivityType", "authId", "externalKey", "displayName", @@ -40,6 +41,7 @@ public final class DigitalTwinInstance "digitalTwinModelId", "digitalTwinModelSpecUri", "digitalTwinAdapterId", + "gateways", "lifecycleState", "freeformTags", "definedTags", @@ -50,6 +52,7 @@ public final class DigitalTwinInstance public DigitalTwinInstance( String id, String iotDomainId, + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -57,6 +60,7 @@ public DigitalTwinInstance( String digitalTwinModelId, String digitalTwinModelSpecUri, String digitalTwinAdapterId, + java.util.List gateways, LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, @@ -66,6 +70,7 @@ public DigitalTwinInstance( super(); this.id = id; this.iotDomainId = iotDomainId; + this.connectivityType = connectivityType; this.authId = authId; this.externalKey = externalKey; this.displayName = displayName; @@ -73,6 +78,7 @@ public DigitalTwinInstance( this.digitalTwinModelId = digitalTwinModelId; this.digitalTwinModelSpecUri = digitalTwinModelSpecUri; this.digitalTwinAdapterId = digitalTwinAdapterId; + this.gateways = gateways; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -121,6 +127,21 @@ 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 @@ -252,6 +273,27 @@ 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. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -386,6 +428,7 @@ public DigitalTwinInstance build() { new DigitalTwinInstance( this.id, this.iotDomainId, + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -393,6 +436,7 @@ public DigitalTwinInstance build() { this.digitalTwinModelId, this.digitalTwinModelSpecUri, this.digitalTwinAdapterId, + this.gateways, this.lifecycleState, this.freeformTags, this.definedTags, @@ -413,6 +457,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()); } @@ -434,6 +481,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()); } @@ -499,6 +549,19 @@ 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 @@ -616,6 +679,25 @@ 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. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; @@ -745,6 +827,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)); @@ -753,6 +836,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)); @@ -775,6 +859,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) @@ -783,6 +868,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) @@ -798,6 +884,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()); @@ -817,6 +906,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..19f5a03a1e2 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceConnectivityType.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.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. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public enum DigitalTwinInstanceConnectivityType implements com.oracle.bmc.http.internal.BmcEnum { + 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 ca749646fe2..4bc2324e8d5 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 @@ -26,6 +26,7 @@ public final class DigitalTwinInstanceSummary @java.beans.ConstructorProperties({ "id", "iotDomainId", + "connectivityType", "authId", "externalKey", "displayName", @@ -33,6 +34,7 @@ public final class DigitalTwinInstanceSummary "digitalTwinModelId", "digitalTwinModelSpecUri", "digitalTwinAdapterId", + "gateways", "lifecycleState", "freeformTags", "definedTags", @@ -43,6 +45,7 @@ public final class DigitalTwinInstanceSummary public DigitalTwinInstanceSummary( String id, String iotDomainId, + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -50,6 +53,7 @@ public DigitalTwinInstanceSummary( String digitalTwinModelId, String digitalTwinModelSpecUri, String digitalTwinAdapterId, + java.util.List gateways, LifecycleState lifecycleState, java.util.Map freeformTags, java.util.Map> definedTags, @@ -59,6 +63,7 @@ public DigitalTwinInstanceSummary( super(); this.id = id; this.iotDomainId = iotDomainId; + this.connectivityType = connectivityType; this.authId = authId; this.externalKey = externalKey; this.displayName = displayName; @@ -66,6 +71,7 @@ public DigitalTwinInstanceSummary( this.digitalTwinModelId = digitalTwinModelId; this.digitalTwinModelSpecUri = digitalTwinModelSpecUri; this.digitalTwinAdapterId = digitalTwinAdapterId; + this.gateways = gateways; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -114,6 +120,21 @@ 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 @@ -245,6 +266,27 @@ 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. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -379,6 +421,7 @@ public DigitalTwinInstanceSummary build() { new DigitalTwinInstanceSummary( this.id, this.iotDomainId, + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -386,6 +429,7 @@ public DigitalTwinInstanceSummary build() { this.digitalTwinModelId, this.digitalTwinModelSpecUri, this.digitalTwinAdapterId, + this.gateways, this.lifecycleState, this.freeformTags, this.definedTags, @@ -406,6 +450,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()); } @@ -427,6 +474,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()); } @@ -492,6 +542,19 @@ 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 @@ -609,6 +672,25 @@ 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. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; @@ -738,6 +820,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)); @@ -746,6 +829,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)); @@ -768,6 +852,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) @@ -776,6 +861,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) @@ -791,6 +877,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()); @@ -810,6 +899,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/UpdateDigitalTwinInstanceDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java index df84ae5d427..cc28dde6288 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; } @@ -189,6 +192,27 @@ 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 @@ -254,6 +278,7 @@ public UpdateDigitalTwinInstanceDetails build() { this.digitalTwinAdapterId, this.digitalTwinModelId, this.digitalTwinModelSpecUri, + this.gateways, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -285,6 +310,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()); } @@ -421,6 +449,25 @@ 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 @@ -490,6 +537,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(")"); @@ -514,6 +562,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); @@ -542,6 +591,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 d6ce6b3a920..abcaed986f9 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 @@ -190,6 +190,13 @@ 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 @@ -376,6 +383,22 @@ 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 @@ -436,6 +459,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()); @@ -481,11 +505,12 @@ 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); + // digitalTwinModelSpecUri, connectivityType, id); } } @@ -506,6 +531,7 @@ public Builder toBuilder() { .opcRequestId(opcRequestId) .digitalTwinModelId(digitalTwinModelId) .digitalTwinModelSpecUri(digitalTwinModelSpecUri) + .connectivityType(connectivityType) .id(id); } @@ -533,6 +559,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(); @@ -560,6 +587,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); } @@ -587,6 +615,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-iot/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-iot/reflect-config.json b/bmc-iot/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-iot/reflect-config.json index cf064fe1e1b..cad1bd54769 100644 --- a/bmc-iot/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-iot/reflect-config.json +++ b/bmc-iot/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-iot/reflect-config.json @@ -337,6 +337,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.DigitalTwinInstanceConnectivityType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.DigitalTwinInstanceSummary", diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index cb94cf65f5f..9ad6ea3ae4a 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index fff1030a5fb..45ae4ea9c9e 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 84def5c8712..0e28225f317 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 59b6c3a2b48..5d9d35526c6 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index ee80ebe9ae7..eeeeb9aac72 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index ad66fb66922..b99c116831e 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index ee39cc9551b..9941addabaa 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ 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 605302fe61f..02a56020c99 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 @@ -110,7 +110,10 @@ public void setRegion(String regionId) { return clientCall(request, CancelLimitsIncreaseItemRequestResponse::builder) .logger(LOG, "cancelLimitsIncreaseItemRequest") - .serviceDetails("LimitsIncrease", "CancelLimitsIncreaseItemRequest", "") + .serviceDetails( + "LimitsIncrease", + "CancelLimitsIncreaseItemRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/CancelLimitsIncreaseItemRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CancelLimitsIncreaseItemRequestRequest::builder) .basePath("/20251101") @@ -147,7 +150,10 @@ public void setRegion(String regionId) { return clientCall(request, CancelLimitsIncreaseRequestResponse::builder) .logger(LOG, "cancelLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "CancelLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "CancelLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CancelLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CancelLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -183,7 +189,10 @@ public void setRegion(String regionId) { return clientCall(request, CreateLimitsIncreaseRequestResponse::builder) .logger(LOG, "createLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "CreateLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "CreateLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CreateLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -216,7 +225,10 @@ public void setRegion(String regionId) { return clientCall(request, DeleteLimitsIncreaseRequestResponse::builder) .logger(LOG, "deleteLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "DeleteLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "DeleteLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/DeleteLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -245,7 +257,10 @@ public void setRegion(String regionId) { return clientCall(request, GetLimitsIncreaseItemRequestResponse::builder) .logger(LOG, "getLimitsIncreaseItemRequest") - .serviceDetails("LimitsIncrease", "GetLimitsIncreaseItemRequest", "") + .serviceDetails( + "LimitsIncrease", + "GetLimitsIncreaseItemRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/GetLimitsIncreaseItemRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetLimitsIncreaseItemRequestRequest::builder) .basePath("/20251101") @@ -276,7 +291,10 @@ public java.util.concurrent.Future getLimitsIn return clientCall(request, GetLimitsIncreaseRequestResponse::builder) .logger(LOG, "getLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "GetLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "GetLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/GetLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -305,7 +323,10 @@ public java.util.concurrent.Future getLimitsIn return clientCall(request, ListLimitsIncreaseItemRequestsResponse::builder) .logger(LOG, "listLimitsIncreaseItemRequests") - .serviceDetails("LimitsIncrease", "ListLimitsIncreaseItemRequests", "") + .serviceDetails( + "LimitsIncrease", + "ListLimitsIncreaseItemRequests", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequestCollection/ListLimitsIncreaseItemRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListLimitsIncreaseItemRequestsRequest::builder) .basePath("/20251101") @@ -346,7 +367,10 @@ public java.util.concurrent.Future getLimitsIn return clientCall(request, ListLimitsIncreaseQuestionsResponse::builder) .logger(LOG, "listLimitsIncreaseQuestions") - .serviceDetails("LimitsIncrease", "ListLimitsIncreaseQuestions", "") + .serviceDetails( + "LimitsIncrease", + "ListLimitsIncreaseQuestions", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseQuestionCollection/ListLimitsIncreaseQuestions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListLimitsIncreaseQuestionsRequest::builder) .basePath("/20251101") @@ -383,7 +407,10 @@ public java.util.concurrent.Future getLimitsIn return clientCall(request, ListLimitsIncreaseRequestsResponse::builder) .logger(LOG, "listLimitsIncreaseRequests") - .serviceDetails("LimitsIncrease", "ListLimitsIncreaseRequests", "") + .serviceDetails( + "LimitsIncrease", + "ListLimitsIncreaseRequests", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/ListLimitsIncreaseRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListLimitsIncreaseRequestsRequest::builder) .basePath("/20251101") @@ -424,7 +451,10 @@ public java.util.concurrent.Future getLimitsIn return clientCall(request, PatchLimitsIncreaseRequestResponse::builder) .logger(LOG, "patchLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "PatchLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "PatchLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/PatchLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.PATCH) .requestBuilder(PatchLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -461,7 +491,10 @@ public java.util.concurrent.Future getLimitsIn return clientCall(request, UpdateLimitsIncreaseRequestResponse::builder) .logger(LOG, "updateLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "UpdateLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "UpdateLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/UpdateLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateLimitsIncreaseRequestRequest::builder) .basePath("/20251101") 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 f35184a02a5..948b0194f88 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 @@ -132,7 +132,10 @@ public CancelLimitsIncreaseItemRequestResponse cancelLimitsIncreaseItemRequest( return clientCall(request, CancelLimitsIncreaseItemRequestResponse::builder) .logger(LOG, "cancelLimitsIncreaseItemRequest") - .serviceDetails("LimitsIncrease", "CancelLimitsIncreaseItemRequest", "") + .serviceDetails( + "LimitsIncrease", + "CancelLimitsIncreaseItemRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/CancelLimitsIncreaseItemRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CancelLimitsIncreaseItemRequestRequest::builder) .basePath("/20251101") @@ -165,7 +168,10 @@ public CancelLimitsIncreaseRequestResponse cancelLimitsIncreaseRequest( return clientCall(request, CancelLimitsIncreaseRequestResponse::builder) .logger(LOG, "cancelLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "CancelLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "CancelLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CancelLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CancelLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -197,7 +203,10 @@ public CreateLimitsIncreaseRequestResponse createLimitsIncreaseRequest( return clientCall(request, CreateLimitsIncreaseRequestResponse::builder) .logger(LOG, "createLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "CreateLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "CreateLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/CreateLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -226,7 +235,10 @@ public DeleteLimitsIncreaseRequestResponse deleteLimitsIncreaseRequest( return clientCall(request, DeleteLimitsIncreaseRequestResponse::builder) .logger(LOG, "deleteLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "DeleteLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "DeleteLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/DeleteLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -251,7 +263,10 @@ public GetLimitsIncreaseItemRequestResponse getLimitsIncreaseItemRequest( return clientCall(request, GetLimitsIncreaseItemRequestResponse::builder) .logger(LOG, "getLimitsIncreaseItemRequest") - .serviceDetails("LimitsIncrease", "GetLimitsIncreaseItemRequest", "") + .serviceDetails( + "LimitsIncrease", + "GetLimitsIncreaseItemRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequest/GetLimitsIncreaseItemRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetLimitsIncreaseItemRequestRequest::builder) .basePath("/20251101") @@ -280,7 +295,10 @@ public GetLimitsIncreaseRequestResponse getLimitsIncreaseRequest( return clientCall(request, GetLimitsIncreaseRequestResponse::builder) .logger(LOG, "getLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "GetLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "GetLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/GetLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -305,7 +323,10 @@ public ListLimitsIncreaseItemRequestsResponse listLimitsIncreaseItemRequests( return clientCall(request, ListLimitsIncreaseItemRequestsResponse::builder) .logger(LOG, "listLimitsIncreaseItemRequests") - .serviceDetails("LimitsIncrease", "ListLimitsIncreaseItemRequests", "") + .serviceDetails( + "LimitsIncrease", + "ListLimitsIncreaseItemRequests", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseItemRequestCollection/ListLimitsIncreaseItemRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListLimitsIncreaseItemRequestsRequest::builder) .basePath("/20251101") @@ -342,7 +363,10 @@ public ListLimitsIncreaseQuestionsResponse listLimitsIncreaseQuestions( return clientCall(request, ListLimitsIncreaseQuestionsResponse::builder) .logger(LOG, "listLimitsIncreaseQuestions") - .serviceDetails("LimitsIncrease", "ListLimitsIncreaseQuestions", "") + .serviceDetails( + "LimitsIncrease", + "ListLimitsIncreaseQuestions", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseQuestionCollection/ListLimitsIncreaseQuestions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListLimitsIncreaseQuestionsRequest::builder) .basePath("/20251101") @@ -375,7 +399,10 @@ public ListLimitsIncreaseRequestsResponse listLimitsIncreaseRequests( return clientCall(request, ListLimitsIncreaseRequestsResponse::builder) .logger(LOG, "listLimitsIncreaseRequests") - .serviceDetails("LimitsIncrease", "ListLimitsIncreaseRequests", "") + .serviceDetails( + "LimitsIncrease", + "ListLimitsIncreaseRequests", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/ListLimitsIncreaseRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListLimitsIncreaseRequestsRequest::builder) .basePath("/20251101") @@ -412,7 +439,10 @@ public PatchLimitsIncreaseRequestResponse patchLimitsIncreaseRequest( return clientCall(request, PatchLimitsIncreaseRequestResponse::builder) .logger(LOG, "patchLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "PatchLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "PatchLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/PatchLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.PATCH) .requestBuilder(PatchLimitsIncreaseRequestRequest::builder) .basePath("/20251101") @@ -445,7 +475,10 @@ public UpdateLimitsIncreaseRequestResponse updateLimitsIncreaseRequest( return clientCall(request, UpdateLimitsIncreaseRequestResponse::builder) .logger(LOG, "updateLimitsIncreaseRequest") - .serviceDetails("LimitsIncrease", "UpdateLimitsIncreaseRequest", "") + .serviceDetails( + "LimitsIncrease", + "UpdateLimitsIncreaseRequest", + "https://docs.oracle.com/iaas/api/#/en/limits-increase/20251101/LimitsIncreaseRequest/UpdateLimitsIncreaseRequest") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateLimitsIncreaseRequestRequest::builder) .basePath("/20251101") diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 42f878062bf..78aa47e96b3 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 048171e5d6e..b1ed2d6b9d9 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index b42fd7a9db3..2254e1aed72 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 248360e2db3..32ead7979a5 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 6f2ae8574c0..c594dd686a9 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 3a04742b081..679e666441f 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 96ecdaf8edd..ee1fa2b262d 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index af4e282e99d..e13c41e2a0e 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index e48eab39b05..63413339c75 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 01f86423b8d..da3f79dd0bf 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 2793635ac5b..f2900f61a92 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 1d8eef114b4..40c69fe9db8 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index c0002326fe6..4eab05d11a1 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index d0890ced178..05801fbfc26 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index 549271a38f3..a7887cde292 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 3bfa146ba6b..cb5d0735cf0 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 12ecc9c31f4..78bf3e84e03 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index e1ab2dbc54c..0e3d66f7fd0 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index ff04ff5e84b..5129f373014 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 240424b9c46..f7f0cf1629f 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index c1affd937d8..0c78e767bbc 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 3935134e919..40717c340df 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 2763af3c41b..51bc4af84cd 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.86.1 + 3.86.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.86.1 + 3.86.2 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 9c98b8ec7a1..1878a838dad 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.86.1 + 3.86.2 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.86.1 + 3.86.2 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index c2df25fa654..a0315476523 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.86.1 + 3.86.2 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 3419f5eea1f..dc680b467d0 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 6d53c296544..2a53d181849 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index f10434688a4..0cc838d4efe 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index c89fe244fb0..53ca149703f 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 036d50c87d5..8a848416f4c 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 3d73749d16e..e4f4afdbb5a 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index a5ec8c3b521..321ec67abdb 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 09995e6a594..15111a048db 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 4e18d12b7a9..5284691f3cb 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 57d5bb3d445..ad5bb5527ec 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index c5e93334c45..fe58a867a01 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index db4ec319f85..e618f360799 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 85f533960e4..cf31931a02d 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 46316362640..ee96afaa403 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 29829789410..b4be06e2722 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index a123e38b4ca..fb06e9927aa 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index fc7ca63ce2a..609e436a035 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 68699cdd9b5..accf90745c5 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index ff76ccd1dec..10521a11eb5 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.86.1 + 3.86.2 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.86.1 + 3.86.2 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.86.1 + 3.86.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 72724afe9d3..c7c9fcff9ea 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.86.1 + 3.86.2 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.86.1 + 3.86.2 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.86.1 + 3.86.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.86.1 + 3.86.2 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index e14947a2368..de129d99bcd 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.86.1 + 3.86.2 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.86.1 + 3.86.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.86.1 + 3.86.2 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index d8435d109ed..4557826a400 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 1105944452d..0e625314f92 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 23cd55bce43..dd718e2bd41 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 58d12a052da..5f5bb1cbcad 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index bcd465ddb7a..3abbd2bdf70 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 16eff561624..60132710998 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index a720324d174..5eba13655e4 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index af3b85fdf30..7c35f48b709 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index d648843a7e2..42cb3cdc077 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index e5a161bd278..858dba3f82e 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 20c4e2c52f1..5876a8a2b31 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 7818f74f599..19bacb6d40a 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index d396d6c5ed5..ee0fff094b4 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 8c794cd88d9..a3a62573101 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index 483354bc9fa..91d7f1179fc 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 7ff8d3f2220..47dacd98a91 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 494e21e6045..c7f8a3cbb7a 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ 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 102eba0350c..6b916754a72 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 2c992606931..58288fb2e49 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 4031adf5809..79741d171c9 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 4cc207cf188..5654fef18ca 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 4ea9c6e566d..16a80132c19 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 27d87d3d8cc..5d13245ae59 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 39490639da3..85f7b10c555 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index fd32bd8244b..48476a358fd 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 3e1b353a1e3..5ea96b30847 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 1e2a23cb04a..5e74ba385a5 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index dcbe9d9823c..3bec2074ead 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 5881d715134..f58a4918a1a 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index e8f3f8d6b04..1f975fa009a 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 1f65ce6333e..f1275d5ab24 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 799efacd923..5cb71ee8a3d 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 354d8da9124..5147750ecff 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 0f44d625770..d1c76b31014 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index c907dbbc933..4a1377f7626 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 6fea06c4ebc..cf438f1dd33 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.86.1 + 3.86.2 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 444f19794d5..0512ebffad2 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.86.1 + 3.86.2 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -677,6 +677,7 @@ bmc-generativeaidata bmc-self bmc-containerregistry + bmc-databasetoolsruntime bmc-containerengine bmc-keymanagement bmc-resourcesearch