diff --git a/CHANGELOG.md b/CHANGELOG.md index b588770eed4..f2955c86097 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.95.1 - 2026-09-01 +### Added +- Support for the Cluster Health service +- Support for scheduling and canceling maintenance window changes after provisioning Autonomous Database Serverless instances in the Database service +- Support for quick launches of BaseDB Database systems in the Database service +- Support for IoT Flow Runtime (Node-RED) resources in the OCI Internet of Things (OCI IoT) service + ## 3.95.0 - 2026-08-25 ### Added - Support for blue/green deployments in the MySQL HeatWave service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 80a2464dbe8..37a9518494e 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index ff81f0eb0a4..d3039ee6581 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.95.0 + 3.95.1 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index b08ab1ab275..c7eabd73072 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.95.0 + 3.95.1 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 1197d450b55..958e6bfcf85 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.95.0 + 3.95.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.0 + 3.95.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 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 0597cc268dc..12854eda080 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.95.0 + 3.95.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.0 + 3.95.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.0 + 3.95.1 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index aa7ac82c6c8..ca5cc4cca1e 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.95.0 + 3.95.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ 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 74d8389f382..1cb46a5d0d6 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.95.0 + 3.95.1 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 compile com.oracle.oci.sdk oci-java-sdk-core - 3.95.0 + 3.95.1 test com.oracle.oci.sdk oci-java-sdk-identity - 3.95.0 + 3.95.1 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.95.0 + 3.95.1 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 485c07425b6..99ec8e0abc1 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.95.0 + 3.95.1 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ 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 c30b6255343..c3f25cafac0 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.95.0 + 3.95.1 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.95.0 + 3.95.1 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.95.0 + 3.95.1 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index a7f240a50ef..d4a54851985 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.95.0 + 3.95.1 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index c2e1ebc2046..48dfd50018c 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.95.0 + 3.95.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.95.0 + 3.95.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.0 + 3.95.1 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 7ceda43e912..bd3c0b9ee98 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.95.0 + 3.95.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.95.0 + 3.95.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index b6054681862..24dd1f84a21 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index b49309d2053..d8047582190 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 96f398f20df..f4a8187a3b1 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index e52ffb55b4b..d2f0d11dc8e 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 0f167e49614..ea32da7401a 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 4016d2b2e0f..1a0dd8ce378 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 15249da796d..f092da29c31 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index a0967b6190e..17c8db8aa71 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 44afcaaeb10..871be4b075a 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index 6d4598bb0b6..cdf46e8f3c0 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 50b290b9d43..fe36d7e7957 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index 273fb6eee0a..1bb724b01e2 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 8ec4887921b..140d427b413 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index de9fe3e787b..25e503f197f 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index c9c45ab9964..31e48c5e4b9 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index f956f1ff784..b3efd9e3048 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index ec804893a30..4f4c92ad6cd 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 9a7ee54aa48..799b8159718 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index dbe30ca25e0..5187be3db6c 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 6888dd161b5..93ba40a24e3 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 4d481e1af76..ee1f7f3bcea 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 8fdac6cd69a..71248442018 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 79eb1747865..4b66e8ebd1c 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 5254318963f..fc3886b4d60 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 581ad5a330d..58314123fe6 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.95.0 + 3.95.1 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1129 +38,1135 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-audit - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-core - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-database - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-dns - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-email - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-identity - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-waas - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-ons - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-budget - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-limits - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-functions - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-events - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-oce - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-oda - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-integration - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-vault - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-bds - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-cims - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-logging - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-sch - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-rover - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-jms - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-devops - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-waf - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-usage - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-adm - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-waa - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-opa - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-queue - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-redis - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-psql - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-iot - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-psa - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-dif - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-batch - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-self - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-costad - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-datacc - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-ddfs - 3.95.0 + 3.95.1 false com.oracle.oci.sdk oci-java-sdk-distributeddatabasev26 - 3.95.0 + 3.95.1 + false + + + com.oracle.oci.sdk + oci-java-sdk-clusterhealth + 3.95.1 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 3174932a63a..8610eaa6ffe 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index a6baa8c64b4..403f1832514 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index fdededd4988..8eac272aac2 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 890e8b5ad26..707465859ec 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index a519f420d02..921bcc7cd3c 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index f63a0f75edb..f94d26e7715 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index f8091114636..d5a2979069f 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 51ff1fe1aa3..8d0b3cdec10 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 146f158ecc0..009275c89c8 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-clusterhealth/pom.xml b/bmc-clusterhealth/pom.xml new file mode 100644 index 00000000000..68e44319e06 --- /dev/null +++ b/bmc-clusterhealth/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.95.1 + ../pom.xml + + oci-java-sdk-clusterhealth + Oracle Cloud Infrastructure SDK - Cluster Health + This project contains the SDK used for Oracle Cloud Infrastructure Cluster Health + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.95.1 + + + \ No newline at end of file diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/Diagnosis.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/Diagnosis.java new file mode 100644 index 00000000000..1705997a809 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/Diagnosis.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.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** + * Use the ITV Control Plane Diagnosis Store API to manage diagnosis. 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: 20260331") +public interface Diagnosis 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); + + /** + * Cancels a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CancelWorkRequest + * API. + */ + CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); + + /** + * Moves a Diagnosis into a different compartment within the same tenancy. For information about + * moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeDiagnosisStoreCompartment API. + */ + ChangeDiagnosisStoreCompartmentResponse changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request); + + /** + * Creates a Diagnosis Store. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CreateDiagnosisStore API. + */ + CreateDiagnosisStoreResponse createDiagnosisStore(CreateDiagnosisStoreRequest request); + + /** + * Deletes a Diagnosis Store. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DeleteDiagnosisStore API. + */ + DeleteDiagnosisStoreResponse deleteDiagnosisStore(DeleteDiagnosisStoreRequest request); + + /** + * Gets information about a Diagnosis Store. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetDiagnosisStore + * API. + */ + GetDiagnosisStoreResponse getDiagnosisStore(GetDiagnosisStoreRequest request); + + /** + * Gets the details of a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Gets a list of Diagnosis Stores. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListDiagnosisStores + * API. + */ + ListDiagnosisStoresResponse listDiagnosisStores(ListDiagnosisStoresRequest request); + + /** + * Lists the errors for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * Lists the logs for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListWorkRequestLogs + * API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListWorkRequests + * API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Query latest diagnosis result summaries. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * QueryDiagnosisByHealthCheckKey API. + */ + QueryDiagnosisByHealthCheckKeyResponse queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request); + + /** + * Query latest diagnosis result summaries. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * QueryDiagnosisSummary API. + */ + QueryDiagnosisSummaryResponse queryDiagnosisSummary(QueryDiagnosisSummaryRequest request); + + /** + * Request a diagnosis to be analyzed. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use RequestDiagnosis + * API. + */ + RequestDiagnosisResponse requestDiagnosis(RequestDiagnosisRequest request); + + /** + * Updates a Diagnosis Store. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateDiagnosisStore API. + */ + UpdateDiagnosisStoreResponse updateDiagnosisStore(UpdateDiagnosisStoreRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DiagnosisWaiters 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. + */ + DiagnosisPaginators getPaginators(); +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsync.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsync.java new file mode 100644 index 00000000000..9a6bf550e25 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsync.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** Use the ITV Control Plane Diagnosis Store API to manage diagnosis. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public interface DiagnosisAsync 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); + + /** + * Cancels a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler); + + /** + * Moves a Diagnosis into a different compartment within the same tenancy. For information about + * moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDiagnosisStoreCompartmentRequest, + ChangeDiagnosisStoreCompartmentResponse> + handler); + + /** + * Creates a Diagnosis Store. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createDiagnosisStore( + CreateDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDiagnosisStoreRequest, CreateDiagnosisStoreResponse> + handler); + + /** + * Deletes a Diagnosis Store. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteDiagnosisStore( + DeleteDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDiagnosisStoreRequest, DeleteDiagnosisStoreResponse> + handler); + + /** + * Gets information about a Diagnosis Store. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse> + handler); + + /** + * Gets the details of a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a list of Diagnosis Stores. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listDiagnosisStores( + ListDiagnosisStoresRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse> + handler); + + /** + * Lists the errors for a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Lists the logs for a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Query latest diagnosis result summaries. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request, + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisByHealthCheckKeyRequest, + QueryDiagnosisByHealthCheckKeyResponse> + handler); + + /** + * Query latest diagnosis result summaries. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future queryDiagnosisSummary( + QueryDiagnosisSummaryRequest request, + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisSummaryRequest, QueryDiagnosisSummaryResponse> + handler); + + /** + * Request a diagnosis to be analyzed. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future requestDiagnosis( + RequestDiagnosisRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a Diagnosis Store. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateDiagnosisStore( + UpdateDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDiagnosisStoreRequest, UpdateDiagnosisStoreResponse> + handler); +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsyncClient.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsyncClient.java new file mode 100644 index 00000000000..4bda03368fc --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsyncClient.java @@ -0,0 +1,717 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Diagnosis 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: 20260331") +public class DiagnosisAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements DiagnosisAsync { + /** Service instance for Diagnosis. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DiagnosisClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DiagnosisAsyncClient.class); + + DiagnosisAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "clusterhealth"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DiagnosisAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DiagnosisAsyncClient(this, authenticationDetailsProvider); + } + } + + @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("Diagnosis", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDiagnosisStoreCompartmentRequest, + ChangeDiagnosisStoreCompartmentResponse> + handler) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getChangeDiagnosisStoreCompartmentDetails(), + "changeDiagnosisStoreCompartmentDetails is required"); + + return clientCall(request, ChangeDiagnosisStoreCompartmentResponse::builder) + .logger(LOG, "changeDiagnosisStoreCompartment") + .serviceDetails("Diagnosis", "ChangeDiagnosisStoreCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDiagnosisStoreCompartmentRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDiagnosisStoreCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDiagnosisStoreCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createDiagnosisStore( + CreateDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDiagnosisStoreRequest, CreateDiagnosisStoreResponse> + handler) { + Objects.requireNonNull( + request.getCreateDiagnosisStoreDetails(), + "createDiagnosisStoreDetails is required"); + + return clientCall(request, CreateDiagnosisStoreResponse::builder) + .logger(LOG, "createDiagnosisStore") + .serviceDetails("Diagnosis", "CreateDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.class, + CreateDiagnosisStoreResponse.Builder::diagnosisStore) + .handleResponseHeaderString( + "location", CreateDiagnosisStoreResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateDiagnosisStoreResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateDiagnosisStoreResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDiagnosisStoreResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateDiagnosisStoreResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteDiagnosisStore( + DeleteDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDiagnosisStoreRequest, DeleteDiagnosisStoreResponse> + handler) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + + return clientCall(request, DeleteDiagnosisStoreResponse::builder) + .logger(LOG, "deleteDiagnosisStore") + .serviceDetails("Diagnosis", "DeleteDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDiagnosisStoreResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteDiagnosisStoreResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getDiagnosisStore( + GetDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse> + handler) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + + return clientCall(request, GetDiagnosisStoreResponse::builder) + .logger(LOG, "getDiagnosisStore") + .serviceDetails("Diagnosis", "GetDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.class, + GetDiagnosisStoreResponse.Builder::diagnosisStore) + .handleResponseHeaderString("etag", GetDiagnosisStoreResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDiagnosisStoreResponse.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("Diagnosis", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.clusterhealth.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listDiagnosisStores( + ListDiagnosisStoresRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse> + handler) { + + return clientCall(request, ListDiagnosisStoresResponse::builder) + .logger(LOG, "listDiagnosisStores") + .serviceDetails("Diagnosis", "ListDiagnosisStores", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDiagnosisStoresRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("diagnosisStoreId", request.getDiagnosisStoreId()) + .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.clusterhealth.model.DiagnosisStoreCollection.class, + ListDiagnosisStoresResponse.Builder::diagnosisStoreCollection) + .handleResponseHeaderString( + "opc-request-id", ListDiagnosisStoresResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDiagnosisStoresResponse.Builder::opcNextPage) + .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("Diagnosis", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.clusterhealth.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("Diagnosis", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.clusterhealth.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) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("Diagnosis", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisByHealthCheckKeyRequest, + QueryDiagnosisByHealthCheckKeyResponse> + handler) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getQueryDiagnosisByHealthCheckKeyDetails(), + "queryDiagnosisByHealthCheckKeyDetails is required"); + + return clientCall(request, QueryDiagnosisByHealthCheckKeyResponse::builder) + .logger(LOG, "queryDiagnosisByHealthCheckKey") + .serviceDetails("Diagnosis", "QueryDiagnosisByHealthCheckKey", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(QueryDiagnosisByHealthCheckKeyRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("queryDiagnosisByHealthCheckKey") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.RecommendationReport.class, + QueryDiagnosisByHealthCheckKeyResponse.Builder::recommendationReport) + .handleResponseHeaderString( + "etag", QueryDiagnosisByHealthCheckKeyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + QueryDiagnosisByHealthCheckKeyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future queryDiagnosisSummary( + QueryDiagnosisSummaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisSummaryRequest, QueryDiagnosisSummaryResponse> + handler) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getQueryDiagnosisSummaryDetails(), + "queryDiagnosisSummaryDetails is required"); + + return clientCall(request, QueryDiagnosisSummaryResponse::builder) + .logger(LOG, "queryDiagnosisSummary") + .serviceDetails("Diagnosis", "QueryDiagnosisSummary", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(QueryDiagnosisSummaryRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("queryDiagnosisSummary") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection.class, + QueryDiagnosisSummaryResponse.Builder::diagnosisSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", QueryDiagnosisSummaryResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", QueryDiagnosisSummaryResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future requestDiagnosis( + RequestDiagnosisRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RequestDiagnosisRequest, RequestDiagnosisResponse> + handler) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getRequestDiagnosisDetails(), "requestDiagnosisDetails is required"); + + return clientCall(request, RequestDiagnosisResponse::builder) + .logger(LOG, "requestDiagnosis") + .serviceDetails("Diagnosis", "RequestDiagnosis", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RequestDiagnosisRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("requestDiagnosis") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisResults.class, + RequestDiagnosisResponse.Builder::diagnosisResults) + .handleResponseHeaderString("etag", RequestDiagnosisResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RequestDiagnosisResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateDiagnosisStore( + UpdateDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDiagnosisStoreRequest, UpdateDiagnosisStoreResponse> + handler) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getUpdateDiagnosisStoreDetails(), + "updateDiagnosisStoreDetails is required"); + + return clientCall(request, UpdateDiagnosisStoreResponse::builder) + .logger(LOG, "updateDiagnosisStore") + .serviceDetails("Diagnosis", "UpdateDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDiagnosisStoreResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateDiagnosisStoreResponse.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 DiagnosisAsyncClient( + 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 DiagnosisAsyncClient( + 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 DiagnosisAsyncClient( + 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 DiagnosisAsyncClient( + 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 DiagnosisAsyncClient( + 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 DiagnosisAsyncClient( + 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 DiagnosisAsyncClient( + 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisClient.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisClient.java new file mode 100644 index 00000000000..3be4188c6ec --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisClient.java @@ -0,0 +1,758 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.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: 20260331") +public class DiagnosisClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements Diagnosis { + /** Service instance for Diagnosis. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DiagnosisClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DiagnosisClient.class); + + private final DiagnosisWaiters waiters; + + private final DiagnosisPaginators paginators; + + DiagnosisClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + 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("Diagnosis-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DiagnosisWaiters(executorService, this); + + this.paginators = new DiagnosisPaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "clusterhealth"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .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; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DiagnosisClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DiagnosisClient(this, authenticationDetailsProvider, executorService); + } + } + + @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("Diagnosis", "CancelWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(CancelWorkRequestRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", CancelWorkRequestResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeDiagnosisStoreCompartmentResponse changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getChangeDiagnosisStoreCompartmentDetails(), + "changeDiagnosisStoreCompartmentDetails is required"); + + return clientCall(request, ChangeDiagnosisStoreCompartmentResponse::builder) + .logger(LOG, "changeDiagnosisStoreCompartment") + .serviceDetails("Diagnosis", "ChangeDiagnosisStoreCompartment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeDiagnosisStoreCompartmentRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeDiagnosisStoreCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeDiagnosisStoreCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateDiagnosisStoreResponse createDiagnosisStore(CreateDiagnosisStoreRequest request) { + Objects.requireNonNull( + request.getCreateDiagnosisStoreDetails(), + "createDiagnosisStoreDetails is required"); + + return clientCall(request, CreateDiagnosisStoreResponse::builder) + .logger(LOG, "createDiagnosisStore") + .serviceDetails("Diagnosis", "CreateDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.class, + CreateDiagnosisStoreResponse.Builder::diagnosisStore) + .handleResponseHeaderString( + "location", CreateDiagnosisStoreResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateDiagnosisStoreResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateDiagnosisStoreResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateDiagnosisStoreResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateDiagnosisStoreResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteDiagnosisStoreResponse deleteDiagnosisStore(DeleteDiagnosisStoreRequest request) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + + return clientCall(request, DeleteDiagnosisStoreResponse::builder) + .logger(LOG, "deleteDiagnosisStore") + .serviceDetails("Diagnosis", "DeleteDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteDiagnosisStoreResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteDiagnosisStoreResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetDiagnosisStoreResponse getDiagnosisStore(GetDiagnosisStoreRequest request) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + + return clientCall(request, GetDiagnosisStoreResponse::builder) + .logger(LOG, "getDiagnosisStore") + .serviceDetails("Diagnosis", "GetDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.class, + GetDiagnosisStoreResponse.Builder::diagnosisStore) + .handleResponseHeaderString("etag", GetDiagnosisStoreResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDiagnosisStoreResponse.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("Diagnosis", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.clusterhealth.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public ListDiagnosisStoresResponse listDiagnosisStores(ListDiagnosisStoresRequest request) { + + return clientCall(request, ListDiagnosisStoresResponse::builder) + .logger(LOG, "listDiagnosisStores") + .serviceDetails("Diagnosis", "ListDiagnosisStores", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDiagnosisStoresRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("diagnosisStoreId", request.getDiagnosisStoreId()) + .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.clusterhealth.model.DiagnosisStoreCollection.class, + ListDiagnosisStoresResponse.Builder::diagnosisStoreCollection) + .handleResponseHeaderString( + "opc-request-id", ListDiagnosisStoresResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDiagnosisStoresResponse.Builder::opcNextPage) + .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("Diagnosis", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.clusterhealth.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("Diagnosis", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.clusterhealth.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) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("Diagnosis", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20260331") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public QueryDiagnosisByHealthCheckKeyResponse queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getQueryDiagnosisByHealthCheckKeyDetails(), + "queryDiagnosisByHealthCheckKeyDetails is required"); + + return clientCall(request, QueryDiagnosisByHealthCheckKeyResponse::builder) + .logger(LOG, "queryDiagnosisByHealthCheckKey") + .serviceDetails("Diagnosis", "QueryDiagnosisByHealthCheckKey", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(QueryDiagnosisByHealthCheckKeyRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("queryDiagnosisByHealthCheckKey") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.RecommendationReport.class, + QueryDiagnosisByHealthCheckKeyResponse.Builder::recommendationReport) + .handleResponseHeaderString( + "etag", QueryDiagnosisByHealthCheckKeyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + QueryDiagnosisByHealthCheckKeyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public QueryDiagnosisSummaryResponse queryDiagnosisSummary( + QueryDiagnosisSummaryRequest request) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getQueryDiagnosisSummaryDetails(), + "queryDiagnosisSummaryDetails is required"); + + return clientCall(request, QueryDiagnosisSummaryResponse::builder) + .logger(LOG, "queryDiagnosisSummary") + .serviceDetails("Diagnosis", "QueryDiagnosisSummary", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(QueryDiagnosisSummaryRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("queryDiagnosisSummary") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection.class, + QueryDiagnosisSummaryResponse.Builder::diagnosisSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", QueryDiagnosisSummaryResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", QueryDiagnosisSummaryResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public RequestDiagnosisResponse requestDiagnosis(RequestDiagnosisRequest request) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getRequestDiagnosisDetails(), "requestDiagnosisDetails is required"); + + return clientCall(request, RequestDiagnosisResponse::builder) + .logger(LOG, "requestDiagnosis") + .serviceDetails("Diagnosis", "RequestDiagnosis", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RequestDiagnosisRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .appendPathParam("actions") + .appendPathParam("requestDiagnosis") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.clusterhealth.model.DiagnosisResults.class, + RequestDiagnosisResponse.Builder::diagnosisResults) + .handleResponseHeaderString("etag", RequestDiagnosisResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", RequestDiagnosisResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateDiagnosisStoreResponse updateDiagnosisStore(UpdateDiagnosisStoreRequest request) { + + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Objects.requireNonNull( + request.getUpdateDiagnosisStoreDetails(), + "updateDiagnosisStoreDetails is required"); + + return clientCall(request, UpdateDiagnosisStoreResponse::builder) + .logger(LOG, "updateDiagnosisStore") + .serviceDetails("Diagnosis", "UpdateDiagnosisStore", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateDiagnosisStoreRequest::builder) + .basePath("/20260331") + .appendPathParam("diagnosisStores") + .appendPathParam(request.getDiagnosisStoreId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateDiagnosisStoreResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateDiagnosisStoreResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DiagnosisWaiters getWaiters() { + return waiters; + } + + @Override + public DiagnosisPaginators 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 DiagnosisClient( + 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 DiagnosisClient( + 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 DiagnosisClient( + 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 DiagnosisClient( + 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 DiagnosisClient( + 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 DiagnosisClient( + 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 DiagnosisClient( + 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 DiagnosisClient( + 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisPaginators.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisPaginators.java new file mode 100644 index 00000000000..d4595e9111a --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisPaginators.java @@ -0,0 +1,520 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Diagnosis where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

+ * + * 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: 20260331") +public class DiagnosisPaginators { + private final Diagnosis client; + + public DiagnosisPaginators(Diagnosis client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listDiagnosisStores 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 listDiagnosisStoresResponseIterator( + final ListDiagnosisStoresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDiagnosisStoresRequest.Builder, + ListDiagnosisStoresRequest, + ListDiagnosisStoresResponse>( + new java.util.function.Supplier() { + @Override + public ListDiagnosisStoresRequest.Builder get() { + return ListDiagnosisStoresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDiagnosisStoresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.Builder>, + ListDiagnosisStoresRequest>() { + @Override + public ListDiagnosisStoresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.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< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse>() { + @Override + public ListDiagnosisStoresResponse apply(ListDiagnosisStoresRequest request) { + return client.listDiagnosisStores(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary} objects contained in responses from + * the listDiagnosisStores 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.clusterhealth.model.DiagnosisStoreSummary} objects contained in responses + * received from the service. + */ + public Iterable + listDiagnosisStoresRecordIterator(final ListDiagnosisStoresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDiagnosisStoresRequest.Builder, + ListDiagnosisStoresRequest, + ListDiagnosisStoresResponse, + com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary>( + new java.util.function.Supplier() { + @Override + public ListDiagnosisStoresRequest.Builder get() { + return ListDiagnosisStoresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDiagnosisStoresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.Builder>, + ListDiagnosisStoresRequest>() { + @Override + public ListDiagnosisStoresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.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< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse>() { + @Override + public ListDiagnosisStoresResponse apply(ListDiagnosisStoresRequest request) { + return client.listDiagnosisStores(request); + } + }, + new java.util.function.Function< + ListDiagnosisStoresResponse, + java.util.List< + com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary>>() { + @Override + public java.util.List + apply(ListDiagnosisStoresResponse response) { + return response.getDiagnosisStoreCollection().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.clusterhealth.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.clusterhealth.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.clusterhealth.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestLogs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.clusterhealth.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.clusterhealth.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.clusterhealth.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequests operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.clusterhealth.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.clusterhealth.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.clusterhealth.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisWaiters.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisWaiters.java new file mode 100644 index 00000000000..beaa519cefd --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisWaiters.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.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Diagnosis. + * + *

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: 20260331") +public class DiagnosisWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Diagnosis client; + + public DiagnosisWaiters( + java.util.concurrent.ExecutorService executorService, Diagnosis client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forDiagnosisStore( + 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 + forDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forDiagnosisStore( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forDiagnosisStore( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DiagnosisStore. + private com.oracle.bmc.waiter.Waiter + forDiagnosisStore( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDiagnosisStoreRequest request, + final com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse>() { + @Override + public GetDiagnosisStoreResponse apply( + GetDiagnosisStoreRequest request) { + return client.getDiagnosisStore(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDiagnosisStoreResponse response) { + return targetStatesSet.contains( + response.getDiagnosisStore().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ActionType.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ActionType.java new file mode 100644 index 00000000000..3e6ab61b489 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ActionType.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.clusterhealth.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ChangeDiagnosisStoreCompartmentDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ChangeDiagnosisStoreCompartmentDetails.java new file mode 100644 index 00000000000..79394b9a232 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ChangeDiagnosisStoreCompartmentDetails.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.clusterhealth.model; + +/** + * The configuration details for the move operation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeDiagnosisStoreCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeDiagnosisStoreCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeDiagnosisStoreCompartmentDetails(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 Diagnosis 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 Diagnosis 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 ChangeDiagnosisStoreCompartmentDetails build() { + ChangeDiagnosisStoreCompartmentDetails model = + new ChangeDiagnosisStoreCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeDiagnosisStoreCompartmentDetails 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 Diagnosis 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 Diagnosis 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("ChangeDiagnosisStoreCompartmentDetails("); + 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 ChangeDiagnosisStoreCompartmentDetails)) { + return false; + } + + ChangeDiagnosisStoreCompartmentDetails other = (ChangeDiagnosisStoreCompartmentDetails) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/CreateDiagnosisStoreDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/CreateDiagnosisStoreDetails.java new file mode 100644 index 00000000000..c99076701eb --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/CreateDiagnosisStoreDetails.java @@ -0,0 +1,410 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * The data to create a Diagnosis.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDiagnosisStoreDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDiagnosisStoreDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "objectStoreNamespace", + "objectStoreBucket", + "compartmentId", + "freeformTags", + "definedTags" + }) + public CreateDiagnosisStoreDetails( + String displayName, + String objectStoreNamespace, + String objectStoreBucket, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param objectStoreNamespace the value to set + * @return this builder + */ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + 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("objectStoreBucket") + private String objectStoreBucket; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param objectStoreBucket the value to set + * @return this builder + */ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment to create the Diagnosis in. + */ + @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 create the Diagnosis in. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDiagnosisStoreDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDiagnosisStoreDetails)) { + return false; + } + + CreateDiagnosisStoreDetails other = (CreateDiagnosisStoreDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisResults.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisResults.java new file mode 100644 index 00000000000..64182d50a3f --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisResults.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.clusterhealth.model; + +/** + * the results of requestDiagnosis
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DiagnosisResults.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiagnosisResults + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"recommendationReports"}) + public DiagnosisResults(java.util.List recommendationReports) { + super(); + this.recommendationReports = recommendationReports; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** collection of recommendation reports generated for each requested test */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendationReports") + private java.util.List recommendationReports; + + /** + * collection of recommendation reports generated for each requested test + * + * @param recommendationReports the value to set + * @return this builder + */ + public Builder recommendationReports( + java.util.List recommendationReports) { + this.recommendationReports = recommendationReports; + this.__explicitlySet__.add("recommendationReports"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiagnosisResults build() { + DiagnosisResults model = new DiagnosisResults(this.recommendationReports); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisResults model) { + if (model.wasPropertyExplicitlySet("recommendationReports")) { + this.recommendationReports(model.getRecommendationReports()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** collection of recommendation reports generated for each requested test */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendationReports") + private final java.util.List recommendationReports; + + /** + * collection of recommendation reports generated for each requested test + * + * @return the value + */ + public java.util.List getRecommendationReports() { + return recommendationReports; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiagnosisResults("); + sb.append("super=").append(super.toString()); + sb.append("recommendationReports=").append(String.valueOf(this.recommendationReports)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiagnosisResults)) { + return false; + } + + DiagnosisResults other = (DiagnosisResults) o; + return java.util.Objects.equals(this.recommendationReports, other.recommendationReports) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.recommendationReports == null + ? 43 + : this.recommendationReports.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStore.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStore.java new file mode 100644 index 00000000000..702a7bb4694 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStore.java @@ -0,0 +1,821 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * A DiagnosisStore is a description of a DiagnosisStore. + * + *

To use any of the API operations, you must be authorized in an IAM policy. If you're not + * authorized, talk to an administrator. If you're an administrator who needs to write policies to + * give users access, see [Getting Started with + * Policies](https://docs.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DiagnosisStore.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiagnosisStore + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "lifecycleState", + "lifecycleDetails", + "objectStoreNamespace", + "objectStoreBucket", + "timeCreated", + "timeUpdated", + "lastAcceptedRequestToken", + "lastCompletedRequestToken", + "freeformTags", + "definedTags", + "systemTags" + }) + public DiagnosisStore( + String id, + String displayName, + String compartmentId, + LifecycleState lifecycleState, + String lifecycleDetails, + String objectStoreNamespace, + String objectStoreBucket, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lastAcceptedRequestToken, + String lastCompletedRequestToken, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lastAcceptedRequestToken = lastAcceptedRequestToken; + this.lastCompletedRequestToken = lastCompletedRequestToken; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DiagnosisStore. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DiagnosisStore. + * + * @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 it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @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. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The current state of the Diagnosis. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * + * @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 that describes the current state of the Diagnosis in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message that describes the current state of the Diagnosis in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The namespace of the object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * The namespace of the object store. + * + * @param objectStoreNamespace the value to set + * @return this builder + */ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + return this; + } + /** The name of the object store bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private String objectStoreBucket; + + /** + * The name of the object store bucket. + * + * @param objectStoreBucket the value to set + * @return this builder + */ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + return this; + } + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC + * 3339](https://tools.ietf .org/html/rfc3339). + * + *

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

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

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The last accepted request token. */ + @com.fasterxml.jackson.annotation.JsonProperty("lastAcceptedRequestToken") + private String lastAcceptedRequestToken; + + /** + * The last accepted request token. + * + * @param lastAcceptedRequestToken the value to set + * @return this builder + */ + public Builder lastAcceptedRequestToken(String lastAcceptedRequestToken) { + this.lastAcceptedRequestToken = lastAcceptedRequestToken; + this.__explicitlySet__.add("lastAcceptedRequestToken"); + return this; + } + /** The last completed request token. */ + @com.fasterxml.jackson.annotation.JsonProperty("lastCompletedRequestToken") + private String lastCompletedRequestToken; + + /** + * The last completed request token. + * + * @param lastCompletedRequestToken the value to set + * @return this builder + */ + public Builder lastCompletedRequestToken(String lastCompletedRequestToken) { + this.lastCompletedRequestToken = lastCompletedRequestToken; + this.__explicitlySet__.add("lastCompletedRequestToken"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiagnosisStore build() { + DiagnosisStore model = + new DiagnosisStore( + this.id, + this.displayName, + this.compartmentId, + this.lifecycleState, + this.lifecycleDetails, + this.objectStoreNamespace, + this.objectStoreBucket, + this.timeCreated, + this.timeUpdated, + this.lastAcceptedRequestToken, + this.lastCompletedRequestToken, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisStore 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("objectStoreNamespace")) { + this.objectStoreNamespace(model.getObjectStoreNamespace()); + } + if (model.wasPropertyExplicitlySet("objectStoreBucket")) { + this.objectStoreBucket(model.getObjectStoreBucket()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lastAcceptedRequestToken")) { + this.lastAcceptedRequestToken(model.getLastAcceptedRequestToken()); + } + if (model.wasPropertyExplicitlySet("lastCompletedRequestToken")) { + this.lastCompletedRequestToken(model.getLastCompletedRequestToken()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DiagnosisStore. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DiagnosisStore. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The current state of the Diagnosis. */ + public enum LifecycleState 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(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the Diagnosis. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message that describes the current state of the Diagnosis in more detail. For example, can + * be used to provide actionable information for a resource in the Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message that describes the current state of the Diagnosis in more detail. For example, can + * be used to provide actionable information for a resource in the Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The namespace of the object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private final String objectStoreNamespace; + + /** + * The namespace of the object store. + * + * @return the value + */ + public String getObjectStoreNamespace() { + return objectStoreNamespace; + } + + /** The name of the object store bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private final String objectStoreBucket; + + /** + * The name of the object store bucket. + * + * @return the value + */ + public String getObjectStoreBucket() { + return objectStoreBucket; + } + + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC + * 3339](https://tools.ietf .org/html/rfc3339). + * + *

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

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

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The last accepted request token. */ + @com.fasterxml.jackson.annotation.JsonProperty("lastAcceptedRequestToken") + private final String lastAcceptedRequestToken; + + /** + * The last accepted request token. + * + * @return the value + */ + public String getLastAcceptedRequestToken() { + return lastAcceptedRequestToken; + } + + /** The last completed request token. */ + @com.fasterxml.jackson.annotation.JsonProperty("lastCompletedRequestToken") + private final String lastCompletedRequestToken; + + /** + * The last completed request token. + * + * @return the value + */ + public String getLastCompletedRequestToken() { + return lastCompletedRequestToken; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiagnosisStore("); + 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(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lastAcceptedRequestToken=") + .append(String.valueOf(this.lastAcceptedRequestToken)); + sb.append(", lastCompletedRequestToken=") + .append(String.valueOf(this.lastCompletedRequestToken)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiagnosisStore)) { + return false; + } + + DiagnosisStore other = (DiagnosisStore) 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.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals( + this.lastAcceptedRequestToken, other.lastAcceptedRequestToken) + && java.util.Objects.equals( + this.lastCompletedRequestToken, other.lastCompletedRequestToken) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.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.lastAcceptedRequestToken == null + ? 43 + : this.lastAcceptedRequestToken.hashCode()); + result = + (result * PRIME) + + (this.lastCompletedRequestToken == null + ? 43 + : this.lastCompletedRequestToken.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreCollection.java new file mode 100644 index 00000000000..743ea485443 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreCollection.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.clusterhealth.model; + +/** + * Results of a diagnosis search. Contains both DiagnosisSummary items and other information, such + * as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiagnosisStoreCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiagnosisStoreCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DiagnosisStoreCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of diagnosiss. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of diagnosiss. + * + * @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 DiagnosisStoreCollection build() { + DiagnosisStoreCollection model = new DiagnosisStoreCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisStoreCollection 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 diagnosiss. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of diagnosiss. + * + * @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("DiagnosisStoreCollection("); + 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 DiagnosisStoreCollection)) { + return false; + } + + DiagnosisStoreCollection other = (DiagnosisStoreCollection) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreSummary.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreSummary.java new file mode 100644 index 00000000000..01428945695 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreSummary.java @@ -0,0 +1,630 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * Summary information about a Diagnosis Store.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiagnosisStoreSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiagnosisStoreSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "lifecycleState", + "objectStoreNamespace", + "objectStoreBucket", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public DiagnosisStoreSummary( + String id, + String displayName, + String compartmentId, + DiagnosisStore.LifecycleState lifecycleState, + String objectStoreNamespace, + String objectStoreBucket, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DiagnosisStore. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DiagnosisStore. + * + * @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 it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @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. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The current state of the Diagnosis. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DiagnosisStore.LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(DiagnosisStore.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The namespace of the object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * The namespace of the object store. + * + * @param objectStoreNamespace the value to set + * @return this builder + */ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + return this; + } + /** The name of the object store bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private String objectStoreBucket; + + /** + * The name of the object store bucket. + * + * @param objectStoreBucket the value to set + * @return this builder + */ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + return this; + } + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC + * 3339](https://tools.ietf .org/html/rfc3339). + * + *

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

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

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

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

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiagnosisStoreSummary build() { + DiagnosisStoreSummary model = + new DiagnosisStoreSummary( + this.id, + this.displayName, + this.compartmentId, + this.lifecycleState, + this.objectStoreNamespace, + this.objectStoreBucket, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisStoreSummary 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("objectStoreNamespace")) { + this.objectStoreNamespace(model.getObjectStoreNamespace()); + } + if (model.wasPropertyExplicitlySet("objectStoreBucket")) { + this.objectStoreBucket(model.getObjectStoreBucket()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + 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 + * DiagnosisStore. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DiagnosisStore. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name. Does not have to be unique, and it's changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The current state of the Diagnosis. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DiagnosisStore.LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * + * @return the value + */ + public DiagnosisStore.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The namespace of the object store. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private final String objectStoreNamespace; + + /** + * The namespace of the object store. + * + * @return the value + */ + public String getObjectStoreNamespace() { + return objectStoreNamespace; + } + + /** The name of the object store bucket. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private final String objectStoreBucket; + + /** + * The name of the object store bucket. + * + * @return the value + */ + public String getObjectStoreBucket() { + return objectStoreBucket; + } + + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC + * 3339](https://tools.ietf .org/html/rfc3339). + * + *

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

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

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

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiagnosisStoreSummary("); + 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(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiagnosisStoreSummary)) { + return false; + } + + DiagnosisStoreSummary other = (DiagnosisStoreSummary) 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.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && 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.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummary.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummary.java new file mode 100644 index 00000000000..e5ddfe2f3fe --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummary.java @@ -0,0 +1,499 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * Diagnosis summary of a host and tenancy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DiagnosisSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiagnosisSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "hostId", + "instanceId", + "healthCheckKey", + "timeTestRan", + "timeGenerated", + "failedTests", + "health", + "testType" + }) + public DiagnosisSummary( + String hostId, + String instanceId, + String healthCheckKey, + java.util.Date timeTestRan, + java.util.Date timeGenerated, + java.util.List failedTests, + Health health, + TestType testType) { + super(); + this.hostId = hostId; + this.instanceId = instanceId; + this.healthCheckKey = healthCheckKey; + this.timeTestRan = timeTestRan; + this.timeGenerated = timeGenerated; + this.failedTests = failedTests; + this.health = health; + this.testType = testType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** id of the host */ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private String hostId; + + /** + * id of the host + * + * @param hostId the value to set + * @return this builder + */ + public Builder hostId(String hostId) { + this.hostId = hostId; + this.__explicitlySet__.add("hostId"); + return this; + } + /** OCID of the instance associated with this summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private String instanceId; + + /** + * OCID of the instance associated with this summary. + * + * @param instanceId the value to set + * @return this builder + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + this.__explicitlySet__.add("instanceId"); + return this; + } + /** Identifier of the health check that produced this diagnosis summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private String healthCheckKey; + + /** + * Identifier of the health check that produced this diagnosis summary. + * + * @param healthCheckKey the value to set + * @return this builder + */ + public Builder healthCheckKey(String healthCheckKey) { + this.healthCheckKey = healthCheckKey; + this.__explicitlySet__.add("healthCheckKey"); + return this; + } + /** time the test was run */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRan") + private java.util.Date timeTestRan; + + /** + * time the test was run + * + * @param timeTestRan the value to set + * @return this builder + */ + public Builder timeTestRan(java.util.Date timeTestRan) { + this.timeTestRan = timeTestRan; + this.__explicitlySet__.add("timeTestRan"); + return this; + } + /** time the recommendation report was generated */ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private java.util.Date timeGenerated; + + /** + * time the recommendation report was generated + * + * @param timeGenerated the value to set + * @return this builder + */ + public Builder timeGenerated(java.util.Date timeGenerated) { + this.timeGenerated = timeGenerated; + this.__explicitlySet__.add("timeGenerated"); + return this; + } + /** Each summary contains no more than 50 failed tests */ + @com.fasterxml.jackson.annotation.JsonProperty("failedTests") + private java.util.List failedTests; + + /** + * Each summary contains no more than 50 failed tests + * + * @param failedTests the value to set + * @return this builder + */ + public Builder failedTests(java.util.List failedTests) { + this.failedTests = failedTests; + this.__explicitlySet__.add("failedTests"); + return this; + } + /** if the host is healthy */ + @com.fasterxml.jackson.annotation.JsonProperty("health") + private Health health; + + /** + * if the host is healthy + * + * @param health the value to set + * @return this builder + */ + public Builder health(Health health) { + this.health = health; + this.__explicitlySet__.add("health"); + return this; + } + /** Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). */ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private TestType testType; + + /** + * Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). + * + * @param testType the value to set + * @return this builder + */ + public Builder testType(TestType testType) { + this.testType = testType; + this.__explicitlySet__.add("testType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiagnosisSummary build() { + DiagnosisSummary model = + new DiagnosisSummary( + this.hostId, + this.instanceId, + this.healthCheckKey, + this.timeTestRan, + this.timeGenerated, + this.failedTests, + this.health, + this.testType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisSummary model) { + if (model.wasPropertyExplicitlySet("hostId")) { + this.hostId(model.getHostId()); + } + if (model.wasPropertyExplicitlySet("instanceId")) { + this.instanceId(model.getInstanceId()); + } + if (model.wasPropertyExplicitlySet("healthCheckKey")) { + this.healthCheckKey(model.getHealthCheckKey()); + } + if (model.wasPropertyExplicitlySet("timeTestRan")) { + this.timeTestRan(model.getTimeTestRan()); + } + if (model.wasPropertyExplicitlySet("timeGenerated")) { + this.timeGenerated(model.getTimeGenerated()); + } + if (model.wasPropertyExplicitlySet("failedTests")) { + this.failedTests(model.getFailedTests()); + } + if (model.wasPropertyExplicitlySet("health")) { + this.health(model.getHealth()); + } + if (model.wasPropertyExplicitlySet("testType")) { + this.testType(model.getTestType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** id of the host */ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private final String hostId; + + /** + * id of the host + * + * @return the value + */ + public String getHostId() { + return hostId; + } + + /** OCID of the instance associated with this summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private final String instanceId; + + /** + * OCID of the instance associated with this summary. + * + * @return the value + */ + public String getInstanceId() { + return instanceId; + } + + /** Identifier of the health check that produced this diagnosis summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private final String healthCheckKey; + + /** + * Identifier of the health check that produced this diagnosis summary. + * + * @return the value + */ + public String getHealthCheckKey() { + return healthCheckKey; + } + + /** time the test was run */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRan") + private final java.util.Date timeTestRan; + + /** + * time the test was run + * + * @return the value + */ + public java.util.Date getTimeTestRan() { + return timeTestRan; + } + + /** time the recommendation report was generated */ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private final java.util.Date timeGenerated; + + /** + * time the recommendation report was generated + * + * @return the value + */ + public java.util.Date getTimeGenerated() { + return timeGenerated; + } + + /** Each summary contains no more than 50 failed tests */ + @com.fasterxml.jackson.annotation.JsonProperty("failedTests") + private final java.util.List failedTests; + + /** + * Each summary contains no more than 50 failed tests + * + * @return the value + */ + public java.util.List getFailedTests() { + return failedTests; + } + + /** if the host is healthy */ + public enum Health implements com.oracle.bmc.http.internal.BmcEnum { + Healthy("HEALTHY"), + Unhealthy("UNHEALTHY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Health.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Health v : Health.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Health(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Health create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Health', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** if the host is healthy */ + @com.fasterxml.jackson.annotation.JsonProperty("health") + private final Health health; + + /** + * if the host is healthy + * + * @return the value + */ + public Health getHealth() { + return health; + } + + /** Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). */ + public enum TestType implements com.oracle.bmc.http.internal.BmcEnum { + Passive("PASSIVE"), + Active("ACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TestType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestType v : TestType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TestType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). */ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private final TestType testType; + + /** + * Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). + * + * @return the value + */ + public TestType getTestType() { + return testType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiagnosisSummary("); + sb.append("super=").append(super.toString()); + sb.append("hostId=").append(String.valueOf(this.hostId)); + sb.append(", instanceId=").append(String.valueOf(this.instanceId)); + sb.append(", healthCheckKey=").append(String.valueOf(this.healthCheckKey)); + sb.append(", timeTestRan=").append(String.valueOf(this.timeTestRan)); + sb.append(", timeGenerated=").append(String.valueOf(this.timeGenerated)); + sb.append(", failedTests=").append(String.valueOf(this.failedTests)); + sb.append(", health=").append(String.valueOf(this.health)); + sb.append(", testType=").append(String.valueOf(this.testType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiagnosisSummary)) { + return false; + } + + DiagnosisSummary other = (DiagnosisSummary) o; + return java.util.Objects.equals(this.hostId, other.hostId) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals(this.healthCheckKey, other.healthCheckKey) + && java.util.Objects.equals(this.timeTestRan, other.timeTestRan) + && java.util.Objects.equals(this.timeGenerated, other.timeGenerated) + && java.util.Objects.equals(this.failedTests, other.failedTests) + && java.util.Objects.equals(this.health, other.health) + && java.util.Objects.equals(this.testType, other.testType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostId == null ? 43 : this.hostId.hashCode()); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = + (result * PRIME) + + (this.healthCheckKey == null ? 43 : this.healthCheckKey.hashCode()); + result = (result * PRIME) + (this.timeTestRan == null ? 43 : this.timeTestRan.hashCode()); + result = + (result * PRIME) + + (this.timeGenerated == null ? 43 : this.timeGenerated.hashCode()); + result = (result * PRIME) + (this.failedTests == null ? 43 : this.failedTests.hashCode()); + result = (result * PRIME) + (this.health == null ? 43 : this.health.hashCode()); + result = (result * PRIME) + (this.testType == null ? 43 : this.testType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummaryCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummaryCollection.java new file mode 100644 index 00000000000..bc4401cbf8b --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummaryCollection.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.clusterhealth.model; + +/** + * a list of Diagnosis Summaries.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiagnosisSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiagnosisSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DiagnosisSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of diagnosis summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of diagnosis summaries. + * + * @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 DiagnosisSummaryCollection build() { + DiagnosisSummaryCollection model = new DiagnosisSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisSummaryCollection 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 diagnosis summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of diagnosis summaries. + * + * @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("DiagnosisSummaryCollection("); + 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 DiagnosisSummaryCollection)) { + return false; + } + + DiagnosisSummaryCollection other = (DiagnosisSummaryCollection) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/FailedTest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/FailedTest.java new file mode 100644 index 00000000000..3c87f80e51f --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/FailedTest.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.clusterhealth.model; + +/** + * summary of a failed test
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FailedTest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FailedTest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"testName", "recommendedAction"}) + public FailedTest(String testName, String recommendedAction) { + super(); + this.testName = testName; + this.recommendedAction = recommendedAction; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** name of the test */ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private String testName; + + /** + * name of the test + * + * @param testName the value to set + * @return this builder + */ + public Builder testName(String testName) { + this.testName = testName; + this.__explicitlySet__.add("testName"); + return this; + } + /** recommended action */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedAction") + private String recommendedAction; + + /** + * recommended action + * + * @param recommendedAction the value to set + * @return this builder + */ + public Builder recommendedAction(String recommendedAction) { + this.recommendedAction = recommendedAction; + this.__explicitlySet__.add("recommendedAction"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FailedTest build() { + FailedTest model = new FailedTest(this.testName, this.recommendedAction); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FailedTest model) { + if (model.wasPropertyExplicitlySet("testName")) { + this.testName(model.getTestName()); + } + if (model.wasPropertyExplicitlySet("recommendedAction")) { + this.recommendedAction(model.getRecommendedAction()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** name of the test */ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private final String testName; + + /** + * name of the test + * + * @return the value + */ + public String getTestName() { + return testName; + } + + /** recommended action */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedAction") + private final String recommendedAction; + + /** + * recommended action + * + * @return the value + */ + public String getRecommendedAction() { + return recommendedAction; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FailedTest("); + sb.append("super=").append(super.toString()); + sb.append("testName=").append(String.valueOf(this.testName)); + sb.append(", recommendedAction=").append(String.valueOf(this.recommendedAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FailedTest)) { + return false; + } + + FailedTest other = (FailedTest) o; + return java.util.Objects.equals(this.testName, other.testName) + && java.util.Objects.equals(this.recommendedAction, other.recommendedAction) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.testName == null ? 43 : this.testName.hashCode()); + result = + (result * PRIME) + + (this.recommendedAction == null ? 43 : this.recommendedAction.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Metadata.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Metadata.java new file mode 100644 index 00000000000..1d740fbe4c5 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Metadata.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.clusterhealth.model; + +/** + * Metadata associated with the diagnosis recommendation 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: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Metadata.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Metadata extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "hostId", + "healthCheckKey", + "instanceId", + "shape", + "testType" + }) + public Metadata( + String hostId, + String healthCheckKey, + String instanceId, + String shape, + TestType testType) { + super(); + this.hostId = hostId; + this.healthCheckKey = healthCheckKey; + this.instanceId = instanceId; + this.shape = shape; + this.testType = testType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the host that ran the test. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private String hostId; + + /** + * OCID of the host that ran the test. + * + * @param hostId the value to set + * @return this builder + */ + public Builder hostId(String hostId) { + this.hostId = hostId; + this.__explicitlySet__.add("hostId"); + return this; + } + /** Identifier of the health check run. */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private String healthCheckKey; + + /** + * Identifier of the health check run. + * + * @param healthCheckKey the value to set + * @return this builder + */ + public Builder healthCheckKey(String healthCheckKey) { + this.healthCheckKey = healthCheckKey; + this.__explicitlySet__.add("healthCheckKey"); + return this; + } + /** OCID of the instance related to the test. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private String instanceId; + + /** + * OCID of the instance related to the test. + * + * @param instanceId the value to set + * @return this builder + */ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + this.__explicitlySet__.add("instanceId"); + return this; + } + /** Shape of the instance under test. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * Shape of the instance under test. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** Test type provided by the diagnosis payload. */ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private TestType testType; + + /** + * Test type provided by the diagnosis payload. + * + * @param testType the value to set + * @return this builder + */ + public Builder testType(TestType testType) { + this.testType = testType; + this.__explicitlySet__.add("testType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Metadata build() { + Metadata model = + new Metadata( + this.hostId, + this.healthCheckKey, + this.instanceId, + this.shape, + this.testType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Metadata model) { + if (model.wasPropertyExplicitlySet("hostId")) { + this.hostId(model.getHostId()); + } + if (model.wasPropertyExplicitlySet("healthCheckKey")) { + this.healthCheckKey(model.getHealthCheckKey()); + } + if (model.wasPropertyExplicitlySet("instanceId")) { + this.instanceId(model.getInstanceId()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("testType")) { + this.testType(model.getTestType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the host that ran the test. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private final String hostId; + + /** + * OCID of the host that ran the test. + * + * @return the value + */ + public String getHostId() { + return hostId; + } + + /** Identifier of the health check run. */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private final String healthCheckKey; + + /** + * Identifier of the health check run. + * + * @return the value + */ + public String getHealthCheckKey() { + return healthCheckKey; + } + + /** OCID of the instance related to the test. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private final String instanceId; + + /** + * OCID of the instance related to the test. + * + * @return the value + */ + public String getInstanceId() { + return instanceId; + } + + /** Shape of the instance under test. */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * Shape of the instance under test. + * + * @return the value + */ + public String getShape() { + return shape; + } + + /** Test type provided by the diagnosis payload. */ + public enum TestType implements com.oracle.bmc.http.internal.BmcEnum { + Passive("PASSIVE"), + Active("ACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TestType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestType v : TestType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TestType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Test type provided by the diagnosis payload. */ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private final TestType testType; + + /** + * Test type provided by the diagnosis payload. + * + * @return the value + */ + public TestType getTestType() { + return testType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Metadata("); + sb.append("super=").append(super.toString()); + sb.append("hostId=").append(String.valueOf(this.hostId)); + sb.append(", healthCheckKey=").append(String.valueOf(this.healthCheckKey)); + sb.append(", instanceId=").append(String.valueOf(this.instanceId)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", testType=").append(String.valueOf(this.testType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Metadata)) { + return false; + } + + Metadata other = (Metadata) o; + return java.util.Objects.equals(this.hostId, other.hostId) + && java.util.Objects.equals(this.healthCheckKey, other.healthCheckKey) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.testType, other.testType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostId == null ? 43 : this.hostId.hashCode()); + result = + (result * PRIME) + + (this.healthCheckKey == null ? 43 : this.healthCheckKey.hashCode()); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.testType == null ? 43 : this.testType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationStatus.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationStatus.java new file mode 100644 index 00000000000..b33371f5cdd --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationStatus.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.clusterhealth.model; + +/** The status of the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationType.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationType.java new file mode 100644 index 00000000000..cb8e2109c46 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationType.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.clusterhealth.model; + +/** The asynchronous operation tracked by the work request. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateDiagnosisStore("CREATE_DIAGNOSIS_STORE"), + UpdateDiagnosisStore("UPDATE_DIAGNOSIS_STORE"), + DeleteDiagnosisStore("DELETE_DIAGNOSIS_STORE"), + MoveDiagnosisStore("MOVE_DIAGNOSIS_STORE"), + RequestDiagnosis("REQUEST_DIAGNOSIS"), + + /** + * This value is used if a service returns a value for this 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisByHealthCheckKeyDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisByHealthCheckKeyDetails.java new file mode 100644 index 00000000000..94e364d5ac9 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisByHealthCheckKeyDetails.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.clusterhealth.model; + +/** + * the query parameters for recommendations
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = QueryDiagnosisByHealthCheckKeyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class QueryDiagnosisByHealthCheckKeyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"healthCheckKey"}) + public QueryDiagnosisByHealthCheckKeyDetails(String healthCheckKey) { + super(); + this.healthCheckKey = healthCheckKey; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Identifier of the health check */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private String healthCheckKey; + + /** + * Identifier of the health check + * + * @param healthCheckKey the value to set + * @return this builder + */ + public Builder healthCheckKey(String healthCheckKey) { + this.healthCheckKey = healthCheckKey; + this.__explicitlySet__.add("healthCheckKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public QueryDiagnosisByHealthCheckKeyDetails build() { + QueryDiagnosisByHealthCheckKeyDetails model = + new QueryDiagnosisByHealthCheckKeyDetails(this.healthCheckKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QueryDiagnosisByHealthCheckKeyDetails model) { + if (model.wasPropertyExplicitlySet("healthCheckKey")) { + this.healthCheckKey(model.getHealthCheckKey()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Identifier of the health check */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private final String healthCheckKey; + + /** + * Identifier of the health check + * + * @return the value + */ + public String getHealthCheckKey() { + return healthCheckKey; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("QueryDiagnosisByHealthCheckKeyDetails("); + sb.append("super=").append(super.toString()); + sb.append("healthCheckKey=").append(String.valueOf(this.healthCheckKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisByHealthCheckKeyDetails)) { + return false; + } + + QueryDiagnosisByHealthCheckKeyDetails other = (QueryDiagnosisByHealthCheckKeyDetails) o; + return java.util.Objects.equals(this.healthCheckKey, other.healthCheckKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.healthCheckKey == null ? 43 : this.healthCheckKey.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisSummaryDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisSummaryDetails.java new file mode 100644 index 00000000000..20dcbcf791f --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisSummaryDetails.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.clusterhealth.model; + +/** + * Query filters for retrieving diagnosis summaries.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = QueryDiagnosisSummaryDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class QueryDiagnosisSummaryDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceIds", + "testType", + "timeTestRunIntervalStart", + "timeTestRunIntervalEnd" + }) + public QueryDiagnosisSummaryDetails( + java.util.List instanceIds, + TestType testType, + java.util.Date timeTestRunIntervalStart, + java.util.Date timeTestRunIntervalEnd) { + super(); + this.instanceIds = instanceIds; + this.testType = testType; + this.timeTestRunIntervalStart = timeTestRunIntervalStart; + this.timeTestRunIntervalEnd = timeTestRunIntervalEnd; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of instance OCIDs to match. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceIds") + private java.util.List instanceIds; + + /** + * A list of instance OCIDs to match. + * + * @param instanceIds the value to set + * @return this builder + */ + public Builder instanceIds(java.util.List instanceIds) { + this.instanceIds = instanceIds; + this.__explicitlySet__.add("instanceIds"); + return this; + } + /** The test type, PASSIVE or ACTIVE */ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private TestType testType; + + /** + * The test type, PASSIVE or ACTIVE + * + * @param testType the value to set + * @return this builder + */ + public Builder testType(TestType testType) { + this.testType = testType; + this.__explicitlySet__.add("testType"); + return this; + } + /** Start of the time range for tests run, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalStart") + private java.util.Date timeTestRunIntervalStart; + + /** + * Start of the time range for tests run, in RFC 3339 format. + * + * @param timeTestRunIntervalStart the value to set + * @return this builder + */ + public Builder timeTestRunIntervalStart(java.util.Date timeTestRunIntervalStart) { + this.timeTestRunIntervalStart = timeTestRunIntervalStart; + this.__explicitlySet__.add("timeTestRunIntervalStart"); + return this; + } + /** End of the time range for tests run, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalEnd") + private java.util.Date timeTestRunIntervalEnd; + + /** + * End of the time range for tests run, in RFC 3339 format. + * + * @param timeTestRunIntervalEnd the value to set + * @return this builder + */ + public Builder timeTestRunIntervalEnd(java.util.Date timeTestRunIntervalEnd) { + this.timeTestRunIntervalEnd = timeTestRunIntervalEnd; + this.__explicitlySet__.add("timeTestRunIntervalEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public QueryDiagnosisSummaryDetails build() { + QueryDiagnosisSummaryDetails model = + new QueryDiagnosisSummaryDetails( + this.instanceIds, + this.testType, + this.timeTestRunIntervalStart, + this.timeTestRunIntervalEnd); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QueryDiagnosisSummaryDetails model) { + if (model.wasPropertyExplicitlySet("instanceIds")) { + this.instanceIds(model.getInstanceIds()); + } + if (model.wasPropertyExplicitlySet("testType")) { + this.testType(model.getTestType()); + } + if (model.wasPropertyExplicitlySet("timeTestRunIntervalStart")) { + this.timeTestRunIntervalStart(model.getTimeTestRunIntervalStart()); + } + if (model.wasPropertyExplicitlySet("timeTestRunIntervalEnd")) { + this.timeTestRunIntervalEnd(model.getTimeTestRunIntervalEnd()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of instance OCIDs to match. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceIds") + private final java.util.List instanceIds; + + /** + * A list of instance OCIDs to match. + * + * @return the value + */ + public java.util.List getInstanceIds() { + return instanceIds; + } + + /** The test type, PASSIVE or ACTIVE */ + public enum TestType implements com.oracle.bmc.http.internal.BmcEnum { + Passive("PASSIVE"), + Active("ACTIVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestType v : TestType.values()) { + map.put(v.getValue(), v); + } + } + + TestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TestType: " + key); + } + }; + /** The test type, PASSIVE or ACTIVE */ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private final TestType testType; + + /** + * The test type, PASSIVE or ACTIVE + * + * @return the value + */ + public TestType getTestType() { + return testType; + } + + /** Start of the time range for tests run, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalStart") + private final java.util.Date timeTestRunIntervalStart; + + /** + * Start of the time range for tests run, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeTestRunIntervalStart() { + return timeTestRunIntervalStart; + } + + /** End of the time range for tests run, in RFC 3339 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalEnd") + private final java.util.Date timeTestRunIntervalEnd; + + /** + * End of the time range for tests run, in RFC 3339 format. + * + * @return the value + */ + public java.util.Date getTimeTestRunIntervalEnd() { + return timeTestRunIntervalEnd; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("QueryDiagnosisSummaryDetails("); + sb.append("super=").append(super.toString()); + sb.append("instanceIds=").append(String.valueOf(this.instanceIds)); + sb.append(", testType=").append(String.valueOf(this.testType)); + sb.append(", timeTestRunIntervalStart=") + .append(String.valueOf(this.timeTestRunIntervalStart)); + sb.append(", timeTestRunIntervalEnd=").append(String.valueOf(this.timeTestRunIntervalEnd)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisSummaryDetails)) { + return false; + } + + QueryDiagnosisSummaryDetails other = (QueryDiagnosisSummaryDetails) o; + return java.util.Objects.equals(this.instanceIds, other.instanceIds) + && java.util.Objects.equals(this.testType, other.testType) + && java.util.Objects.equals( + this.timeTestRunIntervalStart, other.timeTestRunIntervalStart) + && java.util.Objects.equals( + this.timeTestRunIntervalEnd, other.timeTestRunIntervalEnd) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.instanceIds == null ? 43 : this.instanceIds.hashCode()); + result = (result * PRIME) + (this.testType == null ? 43 : this.testType.hashCode()); + result = + (result * PRIME) + + (this.timeTestRunIntervalStart == null + ? 43 + : this.timeTestRunIntervalStart.hashCode()); + result = + (result * PRIME) + + (this.timeTestRunIntervalEnd == null + ? 43 + : this.timeTestRunIntervalEnd.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Recommendation.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Recommendation.java new file mode 100644 index 00000000000..17b20726464 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Recommendation.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * recommendation
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Recommendation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Recommendation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "type", + "testName", + "faultCode", + "issue", + "suggestion", + "action" + }) + public Recommendation( + Type type, + String testName, + String faultCode, + String issue, + String suggestion, + String action) { + super(); + this.type = type; + this.testName = testName; + this.faultCode = faultCode; + this.issue = issue; + this.suggestion = suggestion; + this.action = action; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Severity of the recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Severity of the recommendation. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** name of the test */ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private String testName; + + /** + * name of the test + * + * @param testName the value to set + * @return this builder + */ + public Builder testName(String testName) { + this.testName = testName; + this.__explicitlySet__.add("testName"); + return this; + } + /** Optional fault code identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("faultCode") + private String faultCode; + + /** + * Optional fault code identifier. + * + * @param faultCode the value to set + * @return this builder + */ + public Builder faultCode(String faultCode) { + this.faultCode = faultCode; + this.__explicitlySet__.add("faultCode"); + return this; + } + /** description of the issue */ + @com.fasterxml.jackson.annotation.JsonProperty("issue") + private String issue; + + /** + * description of the issue + * + * @param issue the value to set + * @return this builder + */ + public Builder issue(String issue) { + this.issue = issue; + this.__explicitlySet__.add("issue"); + return this; + } + /** suggested actions */ + @com.fasterxml.jackson.annotation.JsonProperty("suggestion") + private String suggestion; + + /** + * suggested actions + * + * @param suggestion the value to set + * @return this builder + */ + public Builder suggestion(String suggestion) { + this.suggestion = suggestion; + this.__explicitlySet__.add("suggestion"); + return this; + } + /** Optional action to take (empty string when no action is required). */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private String action; + + /** + * Optional action to take (empty string when no action is required). + * + * @param action the value to set + * @return this builder + */ + 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 Recommendation build() { + Recommendation model = + new Recommendation( + this.type, + this.testName, + this.faultCode, + this.issue, + this.suggestion, + this.action); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Recommendation model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("testName")) { + this.testName(model.getTestName()); + } + if (model.wasPropertyExplicitlySet("faultCode")) { + this.faultCode(model.getFaultCode()); + } + if (model.wasPropertyExplicitlySet("issue")) { + this.issue(model.getIssue()); + } + if (model.wasPropertyExplicitlySet("suggestion")) { + this.suggestion(model.getSuggestion()); + } + 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); + } + + /** Severity of the recommendation. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Critical("CRITICAL"), + Warning("WARNING"), + Info("INFO"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** Severity of the recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Severity of the recommendation. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** name of the test */ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private final String testName; + + /** + * name of the test + * + * @return the value + */ + public String getTestName() { + return testName; + } + + /** Optional fault code identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("faultCode") + private final String faultCode; + + /** + * Optional fault code identifier. + * + * @return the value + */ + public String getFaultCode() { + return faultCode; + } + + /** description of the issue */ + @com.fasterxml.jackson.annotation.JsonProperty("issue") + private final String issue; + + /** + * description of the issue + * + * @return the value + */ + public String getIssue() { + return issue; + } + + /** suggested actions */ + @com.fasterxml.jackson.annotation.JsonProperty("suggestion") + private final String suggestion; + + /** + * suggested actions + * + * @return the value + */ + public String getSuggestion() { + return suggestion; + } + + /** Optional action to take (empty string when no action is required). */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final String action; + + /** + * Optional action to take (empty string when no action is required). + * + * @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("Recommendation("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", testName=").append(String.valueOf(this.testName)); + sb.append(", faultCode=").append(String.valueOf(this.faultCode)); + sb.append(", issue=").append(String.valueOf(this.issue)); + sb.append(", suggestion=").append(String.valueOf(this.suggestion)); + 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 Recommendation)) { + return false; + } + + Recommendation other = (Recommendation) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.testName, other.testName) + && java.util.Objects.equals(this.faultCode, other.faultCode) + && java.util.Objects.equals(this.issue, other.issue) + && java.util.Objects.equals(this.suggestion, other.suggestion) + && 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.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.testName == null ? 43 : this.testName.hashCode()); + result = (result * PRIME) + (this.faultCode == null ? 43 : this.faultCode.hashCode()); + result = (result * PRIME) + (this.issue == null ? 43 : this.issue.hashCode()); + result = (result * PRIME) + (this.suggestion == null ? 43 : this.suggestion.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RecommendationReport.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RecommendationReport.java new file mode 100644 index 00000000000..4b3183ad0df --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RecommendationReport.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * A recommendation 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: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RecommendationReport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RecommendationReport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "summary", + "totalIssues", + "criticalIssues", + "warningIssues", + "infoIssues", + "recommendations", + "metadata", + "timeGenerated" + }) + public RecommendationReport( + String summary, + Integer totalIssues, + Integer criticalIssues, + Integer warningIssues, + Integer infoIssues, + java.util.List recommendations, + Metadata metadata, + java.util.Date timeGenerated) { + super(); + this.summary = summary; + this.totalIssues = totalIssues; + this.criticalIssues = criticalIssues; + this.warningIssues = warningIssues; + this.infoIssues = infoIssues; + this.recommendations = recommendations; + this.metadata = metadata; + this.timeGenerated = timeGenerated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** summary */ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private String summary; + + /** + * summary + * + * @param summary the value to set + * @return this builder + */ + public Builder summary(String summary) { + this.summary = summary; + this.__explicitlySet__.add("summary"); + return this; + } + /** total issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("totalIssues") + private Integer totalIssues; + + /** + * total issue count + * + * @param totalIssues the value to set + * @return this builder + */ + public Builder totalIssues(Integer totalIssues) { + this.totalIssues = totalIssues; + this.__explicitlySet__.add("totalIssues"); + return this; + } + /** critical issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("criticalIssues") + private Integer criticalIssues; + + /** + * critical issue count + * + * @param criticalIssues the value to set + * @return this builder + */ + public Builder criticalIssues(Integer criticalIssues) { + this.criticalIssues = criticalIssues; + this.__explicitlySet__.add("criticalIssues"); + return this; + } + /** warning issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("warningIssues") + private Integer warningIssues; + + /** + * warning issue count + * + * @param warningIssues the value to set + * @return this builder + */ + public Builder warningIssues(Integer warningIssues) { + this.warningIssues = warningIssues; + this.__explicitlySet__.add("warningIssues"); + return this; + } + /** info issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("infoIssues") + private Integer infoIssues; + + /** + * info issue count + * + * @param infoIssues the value to set + * @return this builder + */ + public Builder infoIssues(Integer infoIssues) { + this.infoIssues = infoIssues; + this.__explicitlySet__.add("infoIssues"); + return this; + } + /** recommendations */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendations") + private java.util.List recommendations; + + /** + * recommendations + * + * @param recommendations the value to set + * @return this builder + */ + public Builder recommendations(java.util.List recommendations) { + this.recommendations = recommendations; + this.__explicitlySet__.add("recommendations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private Metadata metadata; + + public Builder metadata(Metadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** time generated */ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private java.util.Date timeGenerated; + + /** + * time generated + * + * @param timeGenerated the value to set + * @return this builder + */ + public Builder timeGenerated(java.util.Date timeGenerated) { + this.timeGenerated = timeGenerated; + this.__explicitlySet__.add("timeGenerated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RecommendationReport build() { + RecommendationReport model = + new RecommendationReport( + this.summary, + this.totalIssues, + this.criticalIssues, + this.warningIssues, + this.infoIssues, + this.recommendations, + this.metadata, + this.timeGenerated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecommendationReport model) { + if (model.wasPropertyExplicitlySet("summary")) { + this.summary(model.getSummary()); + } + if (model.wasPropertyExplicitlySet("totalIssues")) { + this.totalIssues(model.getTotalIssues()); + } + if (model.wasPropertyExplicitlySet("criticalIssues")) { + this.criticalIssues(model.getCriticalIssues()); + } + if (model.wasPropertyExplicitlySet("warningIssues")) { + this.warningIssues(model.getWarningIssues()); + } + if (model.wasPropertyExplicitlySet("infoIssues")) { + this.infoIssues(model.getInfoIssues()); + } + if (model.wasPropertyExplicitlySet("recommendations")) { + this.recommendations(model.getRecommendations()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("timeGenerated")) { + this.timeGenerated(model.getTimeGenerated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** summary */ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private final String summary; + + /** + * summary + * + * @return the value + */ + public String getSummary() { + return summary; + } + + /** total issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("totalIssues") + private final Integer totalIssues; + + /** + * total issue count + * + * @return the value + */ + public Integer getTotalIssues() { + return totalIssues; + } + + /** critical issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("criticalIssues") + private final Integer criticalIssues; + + /** + * critical issue count + * + * @return the value + */ + public Integer getCriticalIssues() { + return criticalIssues; + } + + /** warning issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("warningIssues") + private final Integer warningIssues; + + /** + * warning issue count + * + * @return the value + */ + public Integer getWarningIssues() { + return warningIssues; + } + + /** info issue count */ + @com.fasterxml.jackson.annotation.JsonProperty("infoIssues") + private final Integer infoIssues; + + /** + * info issue count + * + * @return the value + */ + public Integer getInfoIssues() { + return infoIssues; + } + + /** recommendations */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendations") + private final java.util.List recommendations; + + /** + * recommendations + * + * @return the value + */ + public java.util.List getRecommendations() { + return recommendations; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final Metadata metadata; + + public Metadata getMetadata() { + return metadata; + } + + /** time generated */ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private final java.util.Date timeGenerated; + + /** + * time generated + * + * @return the value + */ + public java.util.Date getTimeGenerated() { + return timeGenerated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RecommendationReport("); + sb.append("super=").append(super.toString()); + sb.append("summary=").append(String.valueOf(this.summary)); + sb.append(", totalIssues=").append(String.valueOf(this.totalIssues)); + sb.append(", criticalIssues=").append(String.valueOf(this.criticalIssues)); + sb.append(", warningIssues=").append(String.valueOf(this.warningIssues)); + sb.append(", infoIssues=").append(String.valueOf(this.infoIssues)); + sb.append(", recommendations=").append(String.valueOf(this.recommendations)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", timeGenerated=").append(String.valueOf(this.timeGenerated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RecommendationReport)) { + return false; + } + + RecommendationReport other = (RecommendationReport) o; + return java.util.Objects.equals(this.summary, other.summary) + && java.util.Objects.equals(this.totalIssues, other.totalIssues) + && java.util.Objects.equals(this.criticalIssues, other.criticalIssues) + && java.util.Objects.equals(this.warningIssues, other.warningIssues) + && java.util.Objects.equals(this.infoIssues, other.infoIssues) + && java.util.Objects.equals(this.recommendations, other.recommendations) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.timeGenerated, other.timeGenerated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.summary == null ? 43 : this.summary.hashCode()); + result = (result * PRIME) + (this.totalIssues == null ? 43 : this.totalIssues.hashCode()); + result = + (result * PRIME) + + (this.criticalIssues == null ? 43 : this.criticalIssues.hashCode()); + result = + (result * PRIME) + + (this.warningIssues == null ? 43 : this.warningIssues.hashCode()); + result = (result * PRIME) + (this.infoIssues == null ? 43 : this.infoIssues.hashCode()); + result = + (result * PRIME) + + (this.recommendations == null ? 43 : this.recommendations.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.timeGenerated == null ? 43 : this.timeGenerated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RequestDiagnosisDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RequestDiagnosisDetails.java new file mode 100644 index 00000000000..97d85a913e8 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RequestDiagnosisDetails.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.clusterhealth.model; + +/** + * The details of the diagnosis analysis request operation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RequestDiagnosisDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RequestDiagnosisDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"healthCheckKeys"}) + public RequestDiagnosisDetails(java.util.List healthCheckKeys) { + super(); + this.healthCheckKeys = healthCheckKeys; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of health check IDs. */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKeys") + private java.util.List healthCheckKeys; + + /** + * A list of health check IDs. + * + * @param healthCheckKeys the value to set + * @return this builder + */ + public Builder healthCheckKeys(java.util.List healthCheckKeys) { + this.healthCheckKeys = healthCheckKeys; + this.__explicitlySet__.add("healthCheckKeys"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RequestDiagnosisDetails build() { + RequestDiagnosisDetails model = new RequestDiagnosisDetails(this.healthCheckKeys); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RequestDiagnosisDetails model) { + if (model.wasPropertyExplicitlySet("healthCheckKeys")) { + this.healthCheckKeys(model.getHealthCheckKeys()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of health check IDs. */ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKeys") + private final java.util.List healthCheckKeys; + + /** + * A list of health check IDs. + * + * @return the value + */ + public java.util.List getHealthCheckKeys() { + return healthCheckKeys; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RequestDiagnosisDetails("); + sb.append("super=").append(super.toString()); + sb.append("healthCheckKeys=").append(String.valueOf(this.healthCheckKeys)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestDiagnosisDetails)) { + return false; + } + + RequestDiagnosisDetails other = (RequestDiagnosisDetails) o; + return java.util.Objects.equals(this.healthCheckKeys, other.healthCheckKeys) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.healthCheckKeys == null ? 43 : this.healthCheckKeys.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/SortOrder.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/SortOrder.java new file mode 100644 index 00000000000..d4f0e4bf0f1 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/SortOrder.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The {@code + * displayName} sort order is case sensitive. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/UpdateDiagnosisStoreDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/UpdateDiagnosisStoreDetails.java new file mode 100644 index 00000000000..4df7367f791 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/UpdateDiagnosisStoreDetails.java @@ -0,0 +1,362 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * The data to update a Diagnosis.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDiagnosisStoreDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDiagnosisStoreDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "objectStoreNamespace", + "objectStoreBucket", + "freeformTags", + "definedTags" + }) + public UpdateDiagnosisStoreDetails( + String displayName, + String objectStoreNamespace, + String objectStoreBucket, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param objectStoreNamespace the value to set + * @return this builder + */ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + 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("objectStoreBucket") + private String objectStoreBucket; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param objectStoreBucket the value to set + * @return this builder + */ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDiagnosisStoreDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDiagnosisStoreDetails)) { + return false; + } + + UpdateDiagnosisStoreDetails other = (UpdateDiagnosisStoreDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequest.java new file mode 100644 index 00000000000..7c94c322c69 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequest.java @@ -0,0 +1,544 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * An asynchronous work request. Work requests help you monitor long-running operations. When you + * start a long-running operation, the service creates a work request. A work request is an activity + * log that lets you track each step in the operation's progress. Each work request has an OCID that + * lets you interact with it programmatically and use it for automation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@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({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources that are affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are affected by the work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/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 [RFC + * 3339](https://tools.ietf.org/html/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 was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/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 was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources that are affected by the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by the work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/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 [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @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("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", 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 WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && 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.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestError.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestError.java new file mode 100644 index 00000000000..308ca7584c6 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestError.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.clusterhealth.model; + +/** + * An error encountered while performing an operation that is tracked by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@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 occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** A human-readable error message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable error message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see [API + * Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @return the value + */ + public String getCode() { + return code; + } + + /** A human-readable error message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable error message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestErrorCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..0836bdb3067 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestErrorCollection.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.clusterhealth.model; + +/** + * A list of work request errors. Can contain both errors and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@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 { + /** A list of work request errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request errors. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of work request errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request errors. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntry.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..7b22024e704 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntry.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * A log message from performing an operation that is tracked by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@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 { + /** A human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable log message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable log message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the log message was written, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntryCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..cd4b00d6fc6 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/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.clusterhealth.model; + +/** + * A list of work request logs. Can contain both logs and other information, such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@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 { + /** A list of work request log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request log entries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of work request log entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request log entries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResource.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResource.java new file mode 100644 index 00000000000..8630bb7c80c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResource.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.clusterhealth.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: 20260331") +@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 that the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type that the work request affects. + * + * @param entityType the value to set + * @return this builder + */ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until work + * is complete for that resource, at which point it transitions to CREATED, UPDATED, or + * DELETED, respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until work + * is complete for that resource, at which point it transitions to CREATED, UPDATED, or + * DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + * + * @param identifier the value to set + * @return this builder + */ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** The URI path that you can use for a GET request to access the resource metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata. + * + * @param entityUri the value to set + * @return this builder + */ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information that helps to explain 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 that the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type that the work request affects. + * + * @return the value + */ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the operation tracked in the work request. A + * resource being created, updated, or deleted remains in the IN_PROGRESS state until work is + * complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, + * respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. A + * resource being created, updated, or deleted remains in the IN_PROGRESS state until work is + * complete for that resource, at which point it transitions to CREATED, UPDATED, or DELETED, + * respectively. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other + * unique identifier for the resource. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** The URI path that you can use for a GET request to access the resource metadata. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata. + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information that helps to explain 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResourceMetadataKey.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResourceMetadataKey.java new file mode 100644 index 00000000000..25fe5257f9a --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResourceMetadataKey.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.clusterhealth.model; + +/** Possible metadata keys for work request resource metadata. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { + IsDryRun("IS_DRY_RUN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestResourceMetadataKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkRequestResourceMetadataKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkRequestResourceMetadataKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummary.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummary.java new file mode 100644 index 00000000000..545c4f1897e --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummary.java @@ -0,0 +1,543 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * Summary information about 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: 20260331") +@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({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequestSummary( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources that are affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are 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; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the + * total work that must be performed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/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 [RFC + * 3339](https://tools.ietf.org/html/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 was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/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 was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The asynchronous operation tracked by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** The status of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment that contains the work request. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources that are affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total + * work that must be performed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the work request was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/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 [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @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("WorkRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", 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 WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && 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.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummaryCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..fbeeaf7bdd9 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummaryCollection.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.clusterhealth.model; + +/** + * A list of work requests. Can contain both work requests and other information, such as metadata. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of work requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work requests. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of work requests. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work requests. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CancelWorkRequestRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CancelWorkRequestRequest.java new file mode 100644 index 00000000000..87b0e3ecd29 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CancelWorkRequestRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CancelWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelWorkRequestRequest, 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 + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + 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.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CancelWorkRequestRequest(workRequestId, 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() + .workRequestId(workRequestId) + .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(",workRequestId=").append(String.valueOf(this.workRequestId)); + 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 CancelWorkRequestRequest)) { + return false; + } + + CancelWorkRequestRequest other = (CancelWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && 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.workRequestId == null ? 43 : this.workRequestId.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ChangeDiagnosisStoreCompartmentRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ChangeDiagnosisStoreCompartmentRequest.java new file mode 100644 index 00000000000..df95b608a90 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ChangeDiagnosisStoreCompartmentRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use + * ChangeDiagnosisStoreCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ChangeDiagnosisStoreCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** The information to be updated. */ + private com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + changeDiagnosisStoreCompartmentDetails; + + /** The information to be updated. */ + public com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + getChangeDiagnosisStoreCompartmentDetails() { + return changeDiagnosisStoreCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails getBody$() { + return changeDiagnosisStoreCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDiagnosisStoreCompartmentRequest, + com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails> { + 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 + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + changeDiagnosisStoreCompartmentDetails = null; + + /** + * The information to be updated. + * + * @param changeDiagnosisStoreCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDiagnosisStoreCompartmentDetails( + com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + changeDiagnosisStoreCompartmentDetails) { + this.changeDiagnosisStoreCompartmentDetails = changeDiagnosisStoreCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ChangeDiagnosisStoreCompartmentRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + changeDiagnosisStoreCompartmentDetails(o.getChangeDiagnosisStoreCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDiagnosisStoreCompartmentRequest 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 ChangeDiagnosisStoreCompartmentRequest + */ + public ChangeDiagnosisStoreCompartmentRequest build() { + ChangeDiagnosisStoreCompartmentRequest 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.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails body) { + changeDiagnosisStoreCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDiagnosisStoreCompartmentRequest 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 ChangeDiagnosisStoreCompartmentRequest + */ + public ChangeDiagnosisStoreCompartmentRequest buildWithoutInvocationCallback() { + ChangeDiagnosisStoreCompartmentRequest request = + new ChangeDiagnosisStoreCompartmentRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.changeDiagnosisStoreCompartmentDetails = changeDiagnosisStoreCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeDiagnosisStoreCompartmentRequest(diagnosisStoreId, + // changeDiagnosisStoreCompartmentDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .changeDiagnosisStoreCompartmentDetails(changeDiagnosisStoreCompartmentDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",changeDiagnosisStoreCompartmentDetails=") + .append(String.valueOf(this.changeDiagnosisStoreCompartmentDetails)); + 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 ChangeDiagnosisStoreCompartmentRequest)) { + return false; + } + + ChangeDiagnosisStoreCompartmentRequest other = (ChangeDiagnosisStoreCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.changeDiagnosisStoreCompartmentDetails, + other.changeDiagnosisStoreCompartmentDetails) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.changeDiagnosisStoreCompartmentDetails == null + ? 43 + : this.changeDiagnosisStoreCompartmentDetails.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CreateDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CreateDiagnosisStoreRequest.java new file mode 100644 index 00000000000..a984dbf1746 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CreateDiagnosisStoreRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use CreateDiagnosisStoreRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CreateDiagnosisStoreRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails> { + + /** Details for the new Diagnosis Store. */ + private com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + createDiagnosisStoreDetails; + + /** Details for the new Diagnosis Store. */ + public com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + getCreateDiagnosisStoreDetails() { + return createDiagnosisStoreDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails getBody$() { + return createDiagnosisStoreDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDiagnosisStoreRequest, + com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Diagnosis Store. */ + private com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + createDiagnosisStoreDetails = null; + + /** + * Details for the new Diagnosis Store. + * + * @param createDiagnosisStoreDetails the value to set + * @return this builder instance + */ + public Builder createDiagnosisStoreDetails( + com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + createDiagnosisStoreDetails) { + this.createDiagnosisStoreDetails = createDiagnosisStoreDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(CreateDiagnosisStoreRequest o) { + createDiagnosisStoreDetails(o.getCreateDiagnosisStoreDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDiagnosisStoreRequest 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 CreateDiagnosisStoreRequest + */ + public CreateDiagnosisStoreRequest build() { + CreateDiagnosisStoreRequest 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.clusterhealth.model.CreateDiagnosisStoreDetails body) { + createDiagnosisStoreDetails(body); + return this; + } + + /** + * Build the instance of CreateDiagnosisStoreRequest 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 CreateDiagnosisStoreRequest + */ + public CreateDiagnosisStoreRequest buildWithoutInvocationCallback() { + CreateDiagnosisStoreRequest request = new CreateDiagnosisStoreRequest(); + request.createDiagnosisStoreDetails = createDiagnosisStoreDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDiagnosisStoreRequest(createDiagnosisStoreDetails, 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() + .createDiagnosisStoreDetails(createDiagnosisStoreDetails) + .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(",createDiagnosisStoreDetails=") + .append(String.valueOf(this.createDiagnosisStoreDetails)); + 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 CreateDiagnosisStoreRequest)) { + return false; + } + + CreateDiagnosisStoreRequest other = (CreateDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDiagnosisStoreDetails, other.createDiagnosisStoreDetails) + && 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.createDiagnosisStoreDetails == null + ? 43 + : this.createDiagnosisStoreDetails.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/DeleteDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/DeleteDiagnosisStoreRequest.java new file mode 100644 index 00000000000..34795b800df --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/DeleteDiagnosisStoreRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use DeleteDiagnosisStoreRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DeleteDiagnosisStoreRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDiagnosisStoreRequest, 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 + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(DeleteDiagnosisStoreRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDiagnosisStoreRequest 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 DeleteDiagnosisStoreRequest + */ + public DeleteDiagnosisStoreRequest build() { + DeleteDiagnosisStoreRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDiagnosisStoreRequest 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 DeleteDiagnosisStoreRequest + */ + public DeleteDiagnosisStoreRequest buildWithoutInvocationCallback() { + DeleteDiagnosisStoreRequest request = new DeleteDiagnosisStoreRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDiagnosisStoreRequest(diagnosisStoreId, 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() + .diagnosisStoreId(diagnosisStoreId) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + 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 DeleteDiagnosisStoreRequest)) { + return false; + } + + DeleteDiagnosisStoreRequest other = (DeleteDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetDiagnosisStoreRequest.java new file mode 100644 index 00000000000..017de78aea1 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetDiagnosisStoreRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use GetDiagnosisStoreRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetDiagnosisStoreRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDiagnosisStoreRequest, 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 + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(GetDiagnosisStoreRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDiagnosisStoreRequest 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 GetDiagnosisStoreRequest + */ + public GetDiagnosisStoreRequest build() { + GetDiagnosisStoreRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDiagnosisStoreRequest 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 GetDiagnosisStoreRequest + */ + public GetDiagnosisStoreRequest buildWithoutInvocationCallback() { + GetDiagnosisStoreRequest request = new GetDiagnosisStoreRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.opcRequestId = opcRequestId; + return request; + // new GetDiagnosisStoreRequest(diagnosisStoreId, 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().diagnosisStoreId(diagnosisStoreId).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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + 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 GetDiagnosisStoreRequest)) { + return false; + } + + GetDiagnosisStoreRequest other = (GetDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetWorkRequestRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..c22d97f07f9 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetWorkRequestRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, 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 + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListDiagnosisStoresRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListDiagnosisStoresRequest.java new file mode 100644 index 00000000000..5373f152ce7 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListDiagnosisStoresRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ListDiagnosisStoresRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListDiagnosisStoresRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only resources that match the given lifecycle state. The state value is + * case-insensitive. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state. The state value is + * case-insensitive. + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the given display name exactly. */ + private String displayName; + + /** A filter to return only resources that match the given display name exactly. */ + public String getDisplayName() { + return displayName; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.clusterhealth.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + public enum SortBy 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. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDiagnosisStoresRequest, 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 that match the given lifecycle state. The state value + * is case-insensitive. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state. The state value + * is case-insensitive. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the given display name exactly. */ + private String displayName = null; + + /** + * A filter to return only resources that match the given display name exactly. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code + * timeCreated} is descending. Default order for {@code displayName} is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ListDiagnosisStoresRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + diagnosisStoreId(o.getDiagnosisStoreId()); + 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 ListDiagnosisStoresRequest 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 ListDiagnosisStoresRequest + */ + public ListDiagnosisStoresRequest build() { + ListDiagnosisStoresRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDiagnosisStoresRequest 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 ListDiagnosisStoresRequest + */ + public ListDiagnosisStoresRequest buildWithoutInvocationCallback() { + ListDiagnosisStoresRequest request = new ListDiagnosisStoresRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.diagnosisStoreId = diagnosisStoreId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDiagnosisStoresRequest(compartmentId, lifecycleState, displayName, + // diagnosisStoreId, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .diagnosisStoreId(diagnosisStoreId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + 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 ListDiagnosisStoresRequest)) { + return false; + } + + ListDiagnosisStoresRequest other = (ListDiagnosisStoresRequest) 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.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestErrorsRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..1f70cd80f98 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestErrorsRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.clusterhealth.model.SortOrder getSortOrder() { + return sortOrder; + } + + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.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(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + 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.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof 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.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.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.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestLogsRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..7bae0a855eb --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.clusterhealth.model.SortOrder getSortOrder() { + return sortOrder; + } + + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timestamp} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.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(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + 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.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof 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.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.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.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestsRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..a86ffe097d4 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestsRequest.java @@ -0,0 +1,504 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestsRequest 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; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** A filter to return only the resources that match the given lifecycle state. */ + private com.oracle.bmc.clusterhealth.model.OperationStatus status; + + /** A filter to return only the resources that match the given lifecycle state. */ + public com.oracle.bmc.clusterhealth.model.OperationStatus getStatus() { + return status; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + private String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + public String getResourceId() { + return resourceId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.clusterhealth.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeAccepted("timeAccepted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + 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 [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; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** A filter to return only the resources that match the given lifecycle state. */ + private com.oracle.bmc.clusterhealth.model.OperationStatus status = null; + + /** + * A filter to return only the resources that match the given lifecycle state. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.clusterhealth.model.OperationStatus status) { + this.status = status; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + */ + private String resourceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource affected by the work request. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code + * timeAccepted} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request 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()); + workRequestId(o.getWorkRequestId()); + status(o.getStatus()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + 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.workRequestId = workRequestId; + request.status = status; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, + // opcRequestId, page, limit, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .workRequestId(workRequestId) + .status(status) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + 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.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @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.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisByHealthCheckKeyRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisByHealthCheckKeyRequest.java new file mode 100644 index 00000000000..8ded6c5f1a6 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisByHealthCheckKeyRequest.java @@ -0,0 +1,287 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use + * QueryDiagnosisByHealthCheckKeyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisByHealthCheckKeyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** Parameters for filtering diagnosis summaries. */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + queryDiagnosisByHealthCheckKeyDetails; + + /** Parameters for filtering diagnosis summaries. */ + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + getQueryDiagnosisByHealthCheckKeyDetails() { + return queryDiagnosisByHealthCheckKeyDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails getBody$() { + return queryDiagnosisByHealthCheckKeyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + QueryDiagnosisByHealthCheckKeyRequest, + com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails> { + 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 + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** Parameters for filtering diagnosis summaries. */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + queryDiagnosisByHealthCheckKeyDetails = null; + + /** + * Parameters for filtering diagnosis summaries. + * + * @param queryDiagnosisByHealthCheckKeyDetails the value to set + * @return this builder instance + */ + public Builder queryDiagnosisByHealthCheckKeyDetails( + com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + queryDiagnosisByHealthCheckKeyDetails) { + this.queryDiagnosisByHealthCheckKeyDetails = queryDiagnosisByHealthCheckKeyDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(QueryDiagnosisByHealthCheckKeyRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + queryDiagnosisByHealthCheckKeyDetails(o.getQueryDiagnosisByHealthCheckKeyDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of QueryDiagnosisByHealthCheckKeyRequest 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 QueryDiagnosisByHealthCheckKeyRequest + */ + public QueryDiagnosisByHealthCheckKeyRequest build() { + QueryDiagnosisByHealthCheckKeyRequest 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.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails body) { + queryDiagnosisByHealthCheckKeyDetails(body); + return this; + } + + /** + * Build the instance of QueryDiagnosisByHealthCheckKeyRequest 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 QueryDiagnosisByHealthCheckKeyRequest + */ + public QueryDiagnosisByHealthCheckKeyRequest buildWithoutInvocationCallback() { + QueryDiagnosisByHealthCheckKeyRequest request = + new QueryDiagnosisByHealthCheckKeyRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.queryDiagnosisByHealthCheckKeyDetails = queryDiagnosisByHealthCheckKeyDetails; + request.opcRequestId = opcRequestId; + return request; + // new QueryDiagnosisByHealthCheckKeyRequest(diagnosisStoreId, + // queryDiagnosisByHealthCheckKeyDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .queryDiagnosisByHealthCheckKeyDetails(queryDiagnosisByHealthCheckKeyDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",queryDiagnosisByHealthCheckKeyDetails=") + .append(String.valueOf(this.queryDiagnosisByHealthCheckKeyDetails)); + 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 QueryDiagnosisByHealthCheckKeyRequest)) { + return false; + } + + QueryDiagnosisByHealthCheckKeyRequest other = (QueryDiagnosisByHealthCheckKeyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.queryDiagnosisByHealthCheckKeyDetails, + other.queryDiagnosisByHealthCheckKeyDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.queryDiagnosisByHealthCheckKeyDetails == null + ? 43 + : this.queryDiagnosisByHealthCheckKeyDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisSummaryRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisSummaryRequest.java new file mode 100644 index 00000000000..1cc97114695 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisSummaryRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use + * QueryDiagnosisSummaryRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisSummaryRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** Parameters for filtering diagnosis summaries. */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + queryDiagnosisSummaryDetails; + + /** Parameters for filtering diagnosis summaries. */ + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + getQueryDiagnosisSummaryDetails() { + return queryDiagnosisSummaryDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails getBody$() { + return queryDiagnosisSummaryDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + QueryDiagnosisSummaryRequest, + com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails> { + 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 + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** Parameters for filtering diagnosis summaries. */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + queryDiagnosisSummaryDetails = null; + + /** + * Parameters for filtering diagnosis summaries. + * + * @param queryDiagnosisSummaryDetails the value to set + * @return this builder instance + */ + public Builder queryDiagnosisSummaryDetails( + com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + queryDiagnosisSummaryDetails) { + this.queryDiagnosisSummaryDetails = queryDiagnosisSummaryDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request 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(QueryDiagnosisSummaryRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + queryDiagnosisSummaryDetails(o.getQueryDiagnosisSummaryDetails()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of QueryDiagnosisSummaryRequest 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 QueryDiagnosisSummaryRequest + */ + public QueryDiagnosisSummaryRequest build() { + QueryDiagnosisSummaryRequest 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.clusterhealth.model.QueryDiagnosisSummaryDetails body) { + queryDiagnosisSummaryDetails(body); + return this; + } + + /** + * Build the instance of QueryDiagnosisSummaryRequest 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 QueryDiagnosisSummaryRequest + */ + public QueryDiagnosisSummaryRequest buildWithoutInvocationCallback() { + QueryDiagnosisSummaryRequest request = new QueryDiagnosisSummaryRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.queryDiagnosisSummaryDetails = queryDiagnosisSummaryDetails; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new QueryDiagnosisSummaryRequest(diagnosisStoreId, queryDiagnosisSummaryDetails, + // opcRequestId, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .diagnosisStoreId(diagnosisStoreId) + .queryDiagnosisSummaryDetails(queryDiagnosisSummaryDetails) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",queryDiagnosisSummaryDetails=") + .append(String.valueOf(this.queryDiagnosisSummaryDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisSummaryRequest)) { + return false; + } + + QueryDiagnosisSummaryRequest other = (QueryDiagnosisSummaryRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.queryDiagnosisSummaryDetails, other.queryDiagnosisSummaryDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.queryDiagnosisSummaryDetails == null + ? 43 + : this.queryDiagnosisSummaryDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/RequestDiagnosisRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/RequestDiagnosisRequest.java new file mode 100644 index 00000000000..88d9b50a4e8 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/RequestDiagnosisRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use RequestDiagnosisRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class RequestDiagnosisRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** At least one healthCheck ID. */ + private com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails requestDiagnosisDetails; + + /** At least one healthCheck ID. */ + public com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails getRequestDiagnosisDetails() { + return requestDiagnosisDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails getBody$() { + return requestDiagnosisDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RequestDiagnosisRequest, + com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails> { + 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 + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** At least one healthCheck ID. */ + private com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails requestDiagnosisDetails = + null; + + /** + * At least one healthCheck ID. + * + * @param requestDiagnosisDetails the value to set + * @return this builder instance + */ + public Builder requestDiagnosisDetails( + com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails + requestDiagnosisDetails) { + this.requestDiagnosisDetails = requestDiagnosisDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(RequestDiagnosisRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + requestDiagnosisDetails(o.getRequestDiagnosisDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RequestDiagnosisRequest 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 RequestDiagnosisRequest + */ + public RequestDiagnosisRequest build() { + RequestDiagnosisRequest 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.clusterhealth.model.RequestDiagnosisDetails body) { + requestDiagnosisDetails(body); + return this; + } + + /** + * Build the instance of RequestDiagnosisRequest 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 RequestDiagnosisRequest + */ + public RequestDiagnosisRequest buildWithoutInvocationCallback() { + RequestDiagnosisRequest request = new RequestDiagnosisRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.requestDiagnosisDetails = requestDiagnosisDetails; + request.opcRequestId = opcRequestId; + return request; + // new RequestDiagnosisRequest(diagnosisStoreId, requestDiagnosisDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .requestDiagnosisDetails(requestDiagnosisDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",requestDiagnosisDetails=").append(String.valueOf(this.requestDiagnosisDetails)); + 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 RequestDiagnosisRequest)) { + return false; + } + + RequestDiagnosisRequest other = (RequestDiagnosisRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.requestDiagnosisDetails, other.requestDiagnosisDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.requestDiagnosisDetails == null + ? 43 + : this.requestDiagnosisDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/UpdateDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/UpdateDiagnosisStoreRequest.java new file mode 100644 index 00000000000..44f69d103ef --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/UpdateDiagnosisStoreRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use UpdateDiagnosisStoreRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class UpdateDiagnosisStoreRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** The information to be updated. */ + private com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + updateDiagnosisStoreDetails; + + /** The information to be updated. */ + public com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + getUpdateDiagnosisStoreDetails() { + return updateDiagnosisStoreDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails getBody$() { + return updateDiagnosisStoreDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDiagnosisStoreRequest, + com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails> { + 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 + * Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Diagnosis. + * + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + updateDiagnosisStoreDetails = null; + + /** + * The information to be updated. + * + * @param updateDiagnosisStoreDetails the value to set + * @return this builder instance + */ + public Builder updateDiagnosisStoreDetails( + com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + updateDiagnosisStoreDetails) { + this.updateDiagnosisStoreDetails = updateDiagnosisStoreDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(UpdateDiagnosisStoreRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + updateDiagnosisStoreDetails(o.getUpdateDiagnosisStoreDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDiagnosisStoreRequest 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 UpdateDiagnosisStoreRequest + */ + public UpdateDiagnosisStoreRequest build() { + UpdateDiagnosisStoreRequest 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.clusterhealth.model.UpdateDiagnosisStoreDetails body) { + updateDiagnosisStoreDetails(body); + return this; + } + + /** + * Build the instance of UpdateDiagnosisStoreRequest 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 UpdateDiagnosisStoreRequest + */ + public UpdateDiagnosisStoreRequest buildWithoutInvocationCallback() { + UpdateDiagnosisStoreRequest request = new UpdateDiagnosisStoreRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.updateDiagnosisStoreDetails = updateDiagnosisStoreDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateDiagnosisStoreRequest(diagnosisStoreId, updateDiagnosisStoreDetails, + // 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() + .diagnosisStoreId(diagnosisStoreId) + .updateDiagnosisStoreDetails(updateDiagnosisStoreDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",updateDiagnosisStoreDetails=") + .append(String.valueOf(this.updateDiagnosisStoreDetails)); + 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 UpdateDiagnosisStoreRequest)) { + return false; + } + + UpdateDiagnosisStoreRequest other = (UpdateDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.updateDiagnosisStoreDetails, other.updateDiagnosisStoreDetails) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.updateDiagnosisStoreDetails == null + ? 43 + : this.updateDiagnosisStoreDetails.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CancelWorkRequestResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CancelWorkRequestResponse.java new file mode 100644 index 00000000000..73ac1da1bae --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ChangeDiagnosisStoreCompartmentResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ChangeDiagnosisStoreCompartmentResponse.java new file mode 100644 index 00000000000..29ea20717a5 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ChangeDiagnosisStoreCompartmentResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ChangeDiagnosisStoreCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ChangeDiagnosisStoreCompartmentResponse( + 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< + ChangeDiagnosisStoreCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(ChangeDiagnosisStoreCompartmentResponse 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 ChangeDiagnosisStoreCompartmentResponse build() { + return new ChangeDiagnosisStoreCompartmentResponse( + __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 ChangeDiagnosisStoreCompartmentResponse)) { + return false; + } + + ChangeDiagnosisStoreCompartmentResponse other = (ChangeDiagnosisStoreCompartmentResponse) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CreateDiagnosisStoreResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CreateDiagnosisStoreResponse.java new file mode 100644 index 00000000000..498ef242c6c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CreateDiagnosisStoreResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CreateDiagnosisStoreResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is sent. + */ + private String location; + + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DiagnosisStore} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned {@code DiagnosisStore} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStore getDiagnosisStore() { + return diagnosisStore; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "diagnosisStore" + }) + private CreateDiagnosisStoreResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.diagnosisStore = diagnosisStore; + } + + 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; + } + + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is + * sent. + */ + private String location; + + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is + * sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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 DiagnosisStore} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned {@code DiagnosisStore} instance. + * + * @param diagnosisStore the value to set + * @return this builder + */ + public Builder diagnosisStore( + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + this.diagnosisStore = diagnosisStore; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateDiagnosisStoreResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + diagnosisStore(o.getDiagnosisStore()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateDiagnosisStoreResponse build() { + return new CreateDiagnosisStoreResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + diagnosisStore); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",diagnosisStore=").append(String.valueOf(diagnosisStore)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDiagnosisStoreResponse)) { + return false; + } + + CreateDiagnosisStoreResponse other = (CreateDiagnosisStoreResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && 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.diagnosisStore, other.diagnosisStore); + } + + @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.contentLocation == null ? 43 : this.contentLocation.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.diagnosisStore == null ? 43 : this.diagnosisStore.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/DeleteDiagnosisStoreResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/DeleteDiagnosisStoreResponse.java new file mode 100644 index 00000000000..b1e677d0a74 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/DeleteDiagnosisStoreResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DeleteDiagnosisStoreResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteDiagnosisStoreResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(DeleteDiagnosisStoreResponse 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 DeleteDiagnosisStoreResponse build() { + return new DeleteDiagnosisStoreResponse( + __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 DeleteDiagnosisStoreResponse)) { + return false; + } + + DeleteDiagnosisStoreResponse other = (DeleteDiagnosisStoreResponse) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetDiagnosisStoreResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetDiagnosisStoreResponse.java new file mode 100644 index 00000000000..177b00d9c2d --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetDiagnosisStoreResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetDiagnosisStoreResponse 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 DiagnosisStore} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned {@code DiagnosisStore} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStore getDiagnosisStore() { + return diagnosisStore; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "diagnosisStore" + }) + private GetDiagnosisStoreResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.diagnosisStore = diagnosisStore; + } + + 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 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 DiagnosisStore} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned {@code DiagnosisStore} instance. + * + * @param diagnosisStore the value to set + * @return this builder + */ + public Builder diagnosisStore( + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + this.diagnosisStore = diagnosisStore; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDiagnosisStoreResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + diagnosisStore(o.getDiagnosisStore()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDiagnosisStoreResponse build() { + return new GetDiagnosisStoreResponse( + __httpStatusCode__, headers, etag, opcRequestId, diagnosisStore); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",diagnosisStore=").append(String.valueOf(diagnosisStore)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDiagnosisStoreResponse)) { + return false; + } + + GetDiagnosisStoreResponse other = (GetDiagnosisStoreResponse) 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.diagnosisStore, other.diagnosisStore); + } + + @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.diagnosisStore == null ? 43 : this.diagnosisStore.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetWorkRequestResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..3b162c67f26 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetWorkRequestResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.clusterhealth.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.clusterhealth.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + 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; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.clusterhealth.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.clusterhealth.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()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, 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(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + 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.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListDiagnosisStoresResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListDiagnosisStoresResponse.java new file mode 100644 index 00000000000..1e537801e4f --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListDiagnosisStoresResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListDiagnosisStoresResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DiagnosisStoreCollection} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection diagnosisStoreCollection; + + /** + * The returned {@code DiagnosisStoreCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection + getDiagnosisStoreCollection() { + return diagnosisStoreCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "diagnosisStoreCollection" + }) + private ListDiagnosisStoresResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection diagnosisStoreCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.diagnosisStoreCollection = diagnosisStoreCollection; + } + + 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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DiagnosisStoreCollection} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection + diagnosisStoreCollection; + + /** + * The returned {@code DiagnosisStoreCollection} instance. + * + * @param diagnosisStoreCollection the value to set + * @return this builder + */ + public Builder diagnosisStoreCollection( + com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection + diagnosisStoreCollection) { + this.diagnosisStoreCollection = diagnosisStoreCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDiagnosisStoresResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + diagnosisStoreCollection(o.getDiagnosisStoreCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDiagnosisStoresResponse build() { + return new ListDiagnosisStoresResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + diagnosisStoreCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",diagnosisStoreCollection=").append(String.valueOf(diagnosisStoreCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDiagnosisStoresResponse)) { + return false; + } + + ListDiagnosisStoresResponse other = (ListDiagnosisStoresResponse) 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.diagnosisStoreCollection, other.diagnosisStoreCollection); + } + + @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.diagnosisStoreCollection == null + ? 43 + : this.diagnosisStoreCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestErrorsResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..0c712da0610 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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.clusterhealth.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.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.clusterhealth.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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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.clusterhealth.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.clusterhealth.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestLogsResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..34c1e50eaae --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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.clusterhealth.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.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.clusterhealth.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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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.clusterhealth.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.clusterhealth.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestsResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..79bc23f51d8 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestsResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +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 list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + 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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + 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()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @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.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisByHealthCheckKeyResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisByHealthCheckKeyResponse.java new file mode 100644 index 00000000000..66991e02bfb --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisByHealthCheckKeyResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisByHealthCheckKeyResponse 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 RecommendationReport} instance. */ + private com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport; + + /** + * The returned {@code RecommendationReport} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.RecommendationReport getRecommendationReport() { + return recommendationReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "recommendationReport" + }) + private QueryDiagnosisByHealthCheckKeyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.recommendationReport = recommendationReport; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + QueryDiagnosisByHealthCheckKeyResponse> { + 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 RecommendationReport} instance. */ + private com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport; + + /** + * The returned {@code RecommendationReport} instance. + * + * @param recommendationReport the value to set + * @return this builder + */ + public Builder recommendationReport( + com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport) { + this.recommendationReport = recommendationReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(QueryDiagnosisByHealthCheckKeyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + recommendationReport(o.getRecommendationReport()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public QueryDiagnosisByHealthCheckKeyResponse build() { + return new QueryDiagnosisByHealthCheckKeyResponse( + __httpStatusCode__, headers, etag, opcRequestId, recommendationReport); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",recommendationReport=").append(String.valueOf(recommendationReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisByHealthCheckKeyResponse)) { + return false; + } + + QueryDiagnosisByHealthCheckKeyResponse other = (QueryDiagnosisByHealthCheckKeyResponse) 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.recommendationReport, other.recommendationReport); + } + + @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.recommendationReport == null + ? 43 + : this.recommendationReport.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisSummaryResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisSummaryResponse.java new file mode 100644 index 00000000000..75961fb9b94 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisSummaryResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisSummaryResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DiagnosisSummaryCollection} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection; + + /** + * The returned {@code DiagnosisSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + getDiagnosisSummaryCollection() { + return diagnosisSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "diagnosisSummaryCollection" + }) + private QueryDiagnosisSummaryResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.diagnosisSummaryCollection = diagnosisSummaryCollection; + } + + 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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DiagnosisSummaryCollection} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection; + + /** + * The returned {@code DiagnosisSummaryCollection} instance. + * + * @param diagnosisSummaryCollection the value to set + * @return this builder + */ + public Builder diagnosisSummaryCollection( + com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection) { + this.diagnosisSummaryCollection = diagnosisSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(QueryDiagnosisSummaryResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + diagnosisSummaryCollection(o.getDiagnosisSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public QueryDiagnosisSummaryResponse build() { + return new QueryDiagnosisSummaryResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + diagnosisSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",diagnosisSummaryCollection=") + .append(String.valueOf(diagnosisSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisSummaryResponse)) { + return false; + } + + QueryDiagnosisSummaryResponse other = (QueryDiagnosisSummaryResponse) 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.diagnosisSummaryCollection, other.diagnosisSummaryCollection); + } + + @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.diagnosisSummaryCollection == null + ? 43 + : this.diagnosisSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/RequestDiagnosisResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/RequestDiagnosisResponse.java new file mode 100644 index 00000000000..a1b30e4e585 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/RequestDiagnosisResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class RequestDiagnosisResponse 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 DiagnosisResults} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults; + + /** + * The returned {@code DiagnosisResults} instance. + * + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisResults getDiagnosisResults() { + return diagnosisResults; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "diagnosisResults" + }) + private RequestDiagnosisResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.diagnosisResults = diagnosisResults; + } + + 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 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 DiagnosisResults} instance. */ + private com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults; + + /** + * The returned {@code DiagnosisResults} instance. + * + * @param diagnosisResults the value to set + * @return this builder + */ + public Builder diagnosisResults( + com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults) { + this.diagnosisResults = diagnosisResults; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RequestDiagnosisResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + diagnosisResults(o.getDiagnosisResults()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RequestDiagnosisResponse build() { + return new RequestDiagnosisResponse( + __httpStatusCode__, headers, etag, opcRequestId, diagnosisResults); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",diagnosisResults=").append(String.valueOf(diagnosisResults)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestDiagnosisResponse)) { + return false; + } + + RequestDiagnosisResponse other = (RequestDiagnosisResponse) 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.diagnosisResults, other.diagnosisResults); + } + + @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.diagnosisResults == null ? 43 : this.diagnosisResults.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/UpdateDiagnosisStoreResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/UpdateDiagnosisStoreResponse.java new file mode 100644 index 00000000000..e280a14bd6b --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/UpdateDiagnosisStoreResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class UpdateDiagnosisStoreResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 UpdateDiagnosisStoreResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(UpdateDiagnosisStoreResponse 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 UpdateDiagnosisStoreResponse build() { + return new UpdateDiagnosisStoreResponse( + __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 UpdateDiagnosisStoreResponse)) { + return false; + } + + UpdateDiagnosisStoreResponse other = (UpdateDiagnosisStoreResponse) 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-clusterhealth/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-clusterhealth/reflect-config.json b/bmc-clusterhealth/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-clusterhealth/reflect-config.json new file mode 100644 index 00000000000..1a2e613a424 --- /dev/null +++ b/bmc-clusterhealth/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-clusterhealth/reflect-config.json @@ -0,0 +1,404 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisResults", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisResults$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisStore", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisStore$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisStore$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisSummary$Health", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisSummary$TestType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.FailedTest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.FailedTest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.Metadata", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.Metadata$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.Metadata$TestType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails$TestType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.Recommendation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.Recommendation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.Recommendation$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.RecommendationReport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.RecommendationReport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestResourceMetadataKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-clusterhealth/src/main/resources/com/oracle/bmc/clusterhealth/client.properties b/bmc-clusterhealth/src/main/resources/com/oracle/bmc/clusterhealth/client.properties new file mode 100644 index 00000000000..e0e4bfc1725 --- /dev/null +++ b/bmc-clusterhealth/src/main/resources/com/oracle/bmc/clusterhealth/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.170 +java.minimum.client.codegen.version.from.client = 2.170 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 6d62649d660..9b5b6976219 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ 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 3404c0adb18..3987c349ef5 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.95.0 + 3.95.1 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.95.0 + 3.95.1 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.0 + 3.95.1 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index dfc9033a84b..192784802be 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.95.0 + 3.95.1 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.95.0 + 3.95.1 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.0 + 3.95.1 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 47905b80f00..7866f5cf217 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.95.0 + 3.95.1 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 4f056528679..42af5a98e43 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.95.0 + 3.95.1 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index ef29faa7b9b..76aa17bc17c 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.0 + 3.95.1 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index ff3b67c9a6f..61e814fc6f7 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index b7bf642c0cb..acdbab52076 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index c4cd93a0a8e..0982f8629c6 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index f80fc544985..e4f12dd753a 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index 65daf06abbe..d01ed720fe1 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 813879bdf01..33396e842e3 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.0 + 3.95.1 diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index 2d99a60cad0..8487c3f3f40 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index ad3c6c7145f..2d4dddc5213 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index f264d4c7748..e1cd60a115f 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.0 + 3.95.1 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 84d2f8856a2..1869de4350c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -1684,6 +1684,22 @@ CreateExternalNonContainerDatabaseResponse createExternalNonContainerDatabase( CreateExternalPluggableDatabaseResponse createExternalPluggableDatabase( CreateExternalPluggableDatabaseRequest request); + /** + * Creates a new Grid Infrastructure Home in the specified database system based on the request + * parameters you provide. + * + * @param request The request 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 CreateGiHome API. + */ + CreateGiHomeResponse createGiHome(CreateGiHomeRequest request); + /** * Creates a Key Store. * @@ -2367,6 +2383,21 @@ DeleteExternalNonContainerDatabaseResponse deleteExternalNonContainerDatabase( DeleteExternalPluggableDatabaseResponse deleteExternalPluggableDatabase( DeleteExternalPluggableDatabaseRequest request); + /** + * Deletes a Grid Infrastructure Home. + * + * @param request The request 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 DeleteGiHome API. + */ + DeleteGiHomeResponse deleteGiHome(DeleteGiHomeRequest request); + /** * Deletes a key store. * @@ -4381,6 +4412,21 @@ GetExternalNonContainerDatabaseResponse getExternalNonContainerDatabase( GetExternalPluggableDatabaseResponse getExternalPluggableDatabase( GetExternalPluggableDatabaseRequest request); + /** + * Gets information about the specified Grid Infrastructure Home. + * + * @param request The request 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 GetGiHome API. + */ + GetGiHomeResponse getGiHome(GetGiHomeRequest request); + /** * Gets details of the Exadata Infrastructure target system software versions that can be * applied to the specified infrastructure resource for maintenance updates. Applies to Exadata @@ -5152,6 +5198,24 @@ ListAutonomousVmClusterAcdResourceUsageResponse listAutonomousVmClusterAcdResour ListAutonomousVmClustersResponse listAutonomousVmClusters( ListAutonomousVmClustersRequest request); + /** + * Retrieves the list of available maintenance window options for the specified Autonomous AI + * Database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListAvailableMaintenanceWindows API. + */ + ListAvailableMaintenanceWindowsResponse listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request); + /** * Gets a list of backup destinations in the specified compartment. * @@ -5980,6 +6044,21 @@ ListExternalPluggableDatabasesResponse listExternalPluggableDatabases( */ ListFlexComponentsResponse listFlexComponents(ListFlexComponentsRequest request); + /** + * Lists the Grid Infrastructure Homes. + * + * @param request The request 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 ListGiHomes API. + */ + ListGiHomesResponse listGiHomes(ListGiHomesRequest request); + /** * Gets a list of supported Oracle Grid Infrastructure minor versions for the given major * version and shape family. @@ -8266,6 +8345,21 @@ UpdateExternalNonContainerDatabaseResponse updateExternalNonContainerDatabase( UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( UpdateExternalPluggableDatabaseRequest request); + /** + * Updates the tags and display name of a specified Grid Infrastructure Home. + * + * @param request The request 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 UpdateGiHome API. + */ + UpdateGiHomeResponse updateGiHome(UpdateGiHomeRequest request); + /** * Edit the key store. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index 74214f1975b..1dbfc37c50d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -1715,6 +1715,22 @@ java.util.concurrent.Future createExternalBacku CreateExternalPluggableDatabaseResponse> handler); + /** + * Creates a new Grid Infrastructure Home in the specified database system based on the request + * parameters you provide. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createGiHome( + CreateGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Creates a Key Store. * @@ -2407,6 +2423,21 @@ java.util.concurrent.Future deleteExecutionWindow DeleteExternalPluggableDatabaseResponse> handler); + /** + * Deletes a Grid Infrastructure Home. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteGiHome( + DeleteGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Deletes a key store. * @@ -4431,6 +4462,20 @@ java.util.concurrent.Future getExternalPlu GetExternalPluggableDatabaseResponse> handler); + /** + * Gets information about the specified Grid Infrastructure Home. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getGiHome( + GetGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Gets details of the Exadata Infrastructure target system software versions that can be * applied to the specified infrastructure resource for maintenance updates. Applies to Exadata @@ -5218,6 +5263,25 @@ java.util.concurrent.Future listAutonomousVmCl ListAutonomousVmClustersRequest, ListAutonomousVmClustersResponse> handler); + /** + * Retrieves the list of available maintenance window options for the specified Autonomous AI + * Database. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse> + handler); + /** * Gets a list of backup destinations in the specified compartment. * @@ -6053,6 +6117,20 @@ java.util.concurrent.Future listFlexComponents( ListFlexComponentsRequest, ListFlexComponentsResponse> handler); + /** + * Lists the Grid Infrastructure Homes. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listGiHomes( + ListGiHomesRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Gets a list of supported Oracle Grid Infrastructure minor versions for the given major * version and shape family. @@ -8367,6 +8445,21 @@ java.util.concurrent.Future updateExecutionWindow UpdateExternalPluggableDatabaseResponse> handler); + /** + * Updates the tags and display name of a specified Grid Infrastructure Home. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateGiHome( + UpdateGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Edit the key store. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index 4b0188be5e2..0679ae52982 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -3729,6 +3729,35 @@ public java.util.concurrent.Future createExtern .callAsync(handler); } + @Override + public java.util.concurrent.Future createGiHome( + CreateGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCreateGiHomeDetails(), "createGiHomeDetails is required"); + + return clientCall(request, CreateGiHomeResponse::builder) + .logger(LOG, "createGiHome") + .serviceDetails("Database", "CreateGiHome", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.GiHome.class, + CreateGiHomeResponse.Builder::giHome) + .handleResponseHeaderString( + "opc-work-request-id", CreateGiHomeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateGiHomeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateGiHomeResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createKeyStore( CreateKeyStoreRequest request, @@ -5050,6 +5079,35 @@ public java.util.concurrent.Future deleteExecutio .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteGiHome( + DeleteGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + + return clientCall(request, DeleteGiHomeResponse::builder) + .logger(LOG, "deleteGiHome") + .serviceDetails( + "Database", + "DeleteGiHome", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/DeleteGiHome") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendPathParam(request.getGiHomeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteGiHomeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteGiHomeResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteKeyStore( DeleteKeyStoreRequest request, @@ -9358,6 +9416,36 @@ public java.util.concurrent.Future getExternalBack .callAsync(handler); } + @Override + public java.util.concurrent.Future getGiHome( + GetGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + + return clientCall(request, GetGiHomeResponse::builder) + .logger(LOG, "getGiHome") + .serviceDetails( + "Database", + "GetGiHome", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/GetGiHome") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendPathParam(request.getGiHomeId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.GiHome.class, + GetGiHomeResponse.Builder::giHome) + .handleResponseHeaderString("etag", GetGiHomeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetGiHomeResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getInfrastructureTargetVersions( @@ -11024,6 +11112,48 @@ public java.util.concurrent.Future listAutonom .callAsync(handler); } + @Override + public java.util.concurrent.Future + listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse> + handler) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + + return clientCall(request, ListAvailableMaintenanceWindowsResponse::builder) + .logger(LOG, "listAvailableMaintenanceWindows") + .serviceDetails( + "Database", + "ListAvailableMaintenanceWindows", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ListAvailableMaintenanceWindows") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAvailableMaintenanceWindowsRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("availableMaintenanceWindows") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + .class, + ListAvailableMaintenanceWindowsResponse.Builder + ::autonomousDatabaseMaintenanceWindowCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAvailableMaintenanceWindowsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAvailableMaintenanceWindowsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listBackupDestination( ListBackupDestinationRequest request, @@ -12911,6 +13041,44 @@ public java.util.concurrent.Future listFlexComponent .callAsync(handler); } + @Override + public java.util.concurrent.Future listGiHomes( + ListGiHomesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListGiHomesResponse::builder) + .logger(LOG, "listGiHomes") + .serviceDetails( + "Database", + "ListGiHomes", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/ListGiHomes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListGiHomesRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("dbSystemId", request.getDbSystemId()) + .appendQueryParam("giVersion", request.getGiVersion()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.GiHomeCollection.class, + ListGiHomesResponse.Builder::giHomeCollection) + .handleResponseHeaderString( + "opc-request-id", ListGiHomesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListGiHomesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listGiVersionMinorVersions( @@ -18239,6 +18407,39 @@ public java.util.concurrent.Future updateExecutio .callAsync(handler); } + @Override + public java.util.concurrent.Future updateGiHome( + UpdateGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + Objects.requireNonNull(request.getUpdateGiHomeDetails(), "updateGiHomeDetails is required"); + + return clientCall(request, UpdateGiHomeResponse::builder) + .logger(LOG, "updateGiHome") + .serviceDetails( + "Database", + "UpdateGiHome", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/UpdateGiHome") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendPathParam(request.getGiHomeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.GiHome.class, + UpdateGiHomeResponse.Builder::giHome) + .handleResponseHeaderString("etag", UpdateGiHomeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateGiHomeResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateKeyStore( UpdateKeyStoreRequest request, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index 6da70926373..7f4edf0f330 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -3380,6 +3380,32 @@ public CreateExternalPluggableDatabaseResponse createExternalPluggableDatabase( .callSync(); } + @Override + public CreateGiHomeResponse createGiHome(CreateGiHomeRequest request) { + Objects.requireNonNull(request.getCreateGiHomeDetails(), "createGiHomeDetails is required"); + + return clientCall(request, CreateGiHomeResponse::builder) + .logger(LOG, "createGiHome") + .serviceDetails("Database", "CreateGiHome", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.GiHome.class, + CreateGiHomeResponse.Builder::giHome) + .handleResponseHeaderString( + "opc-work-request-id", CreateGiHomeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString("etag", CreateGiHomeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateGiHomeResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateKeyStoreResponse createKeyStore(CreateKeyStoreRequest request) { Objects.requireNonNull( @@ -4547,6 +4573,32 @@ public DeleteExternalPluggableDatabaseResponse deleteExternalPluggableDatabase( .callSync(); } + @Override + public DeleteGiHomeResponse deleteGiHome(DeleteGiHomeRequest request) { + + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + + return clientCall(request, DeleteGiHomeResponse::builder) + .logger(LOG, "deleteGiHome") + .serviceDetails( + "Database", + "DeleteGiHome", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/DeleteGiHome") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendPathParam(request.getGiHomeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteGiHomeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteGiHomeResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteKeyStoreResponse deleteKeyStore(DeleteKeyStoreRequest request) { @@ -8387,6 +8439,33 @@ public GetExternalPluggableDatabaseResponse getExternalPluggableDatabase( .callSync(); } + @Override + public GetGiHomeResponse getGiHome(GetGiHomeRequest request) { + + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + + return clientCall(request, GetGiHomeResponse::builder) + .logger(LOG, "getGiHome") + .serviceDetails( + "Database", + "GetGiHome", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/GetGiHome") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendPathParam(request.getGiHomeId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.GiHome.class, + GetGiHomeResponse.Builder::giHome) + .handleResponseHeaderString("etag", GetGiHomeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetGiHomeResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetInfrastructureTargetVersionsResponse getInfrastructureTargetVersions( GetInfrastructureTargetVersionsRequest request) { @@ -9865,6 +9944,43 @@ public ListAutonomousVmClustersResponse listAutonomousVmClusters( .callSync(); } + @Override + public ListAvailableMaintenanceWindowsResponse listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request) { + + Validate.notBlank( + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); + + return clientCall(request, ListAvailableMaintenanceWindowsResponse::builder) + .logger(LOG, "listAvailableMaintenanceWindows") + .serviceDetails( + "Database", + "ListAvailableMaintenanceWindows", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ListAvailableMaintenanceWindows") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAvailableMaintenanceWindowsRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousDatabases") + .appendPathParam(request.getAutonomousDatabaseId()) + .appendPathParam("availableMaintenanceWindows") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + .class, + ListAvailableMaintenanceWindowsResponse.Builder + ::autonomousDatabaseMaintenanceWindowCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAvailableMaintenanceWindowsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAvailableMaintenanceWindowsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListBackupDestinationResponse listBackupDestination( ListBackupDestinationRequest request) { @@ -11552,6 +11668,41 @@ public ListFlexComponentsResponse listFlexComponents(ListFlexComponentsRequest r .callSync(); } + @Override + public ListGiHomesResponse listGiHomes(ListGiHomesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListGiHomesResponse::builder) + .logger(LOG, "listGiHomes") + .serviceDetails( + "Database", + "ListGiHomes", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/ListGiHomes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListGiHomesRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("dbSystemId", request.getDbSystemId()) + .appendQueryParam("giVersion", request.getGiVersion()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.GiHomeCollection.class, + ListGiHomesResponse.Builder::giHomeCollection) + .handleResponseHeaderString( + "opc-request-id", ListGiHomesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListGiHomesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListGiVersionMinorVersionsResponse listGiVersionMinorVersions( ListGiVersionMinorVersionsRequest request) { @@ -16342,6 +16493,36 @@ public UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( .callSync(); } + @Override + public UpdateGiHomeResponse updateGiHome(UpdateGiHomeRequest request) { + + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + Objects.requireNonNull(request.getUpdateGiHomeDetails(), "updateGiHomeDetails is required"); + + return clientCall(request, UpdateGiHomeResponse::builder) + .logger(LOG, "updateGiHome") + .serviceDetails( + "Database", + "UpdateGiHome", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/UpdateGiHome") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateGiHomeRequest::builder) + .basePath("/20160918") + .appendPathParam("giHomes") + .appendPathParam(request.getGiHomeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.database.model.GiHome.class, + UpdateGiHomeResponse.Builder::giHome) + .handleResponseHeaderString("etag", UpdateGiHomeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateGiHomeResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateKeyStoreResponse updateKeyStore(UpdateKeyStoreRequest request) { diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java index 9ffbde37949..d7fab4da586 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java @@ -2817,6 +2817,137 @@ public ListAutonomousVmClustersResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listAvailableMaintenanceWindows 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 + listAvailableMaintenanceWindowsResponseIterator( + final ListAvailableMaintenanceWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAvailableMaintenanceWindowsRequest.Builder, + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse>( + new java.util.function.Supplier() { + @Override + public ListAvailableMaintenanceWindowsRequest.Builder get() { + return ListAvailableMaintenanceWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAvailableMaintenanceWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.Builder>, + ListAvailableMaintenanceWindowsRequest>() { + @Override + public ListAvailableMaintenanceWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.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< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse>() { + @Override + public ListAvailableMaintenanceWindowsResponse apply( + ListAvailableMaintenanceWindowsRequest request) { + return client.listAvailableMaintenanceWindows(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowSummary} objects contained + * in responses from the listAvailableMaintenanceWindows operation. This iterable will fetch + * more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAvailableMaintenanceWindowsRecordIterator( + final ListAvailableMaintenanceWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAvailableMaintenanceWindowsRequest.Builder, + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse, + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowSummary>( + new java.util.function.Supplier() { + @Override + public ListAvailableMaintenanceWindowsRequest.Builder get() { + return ListAvailableMaintenanceWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAvailableMaintenanceWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.Builder>, + ListAvailableMaintenanceWindowsRequest>() { + @Override + public ListAvailableMaintenanceWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.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< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse>() { + @Override + public ListAvailableMaintenanceWindowsResponse apply( + ListAvailableMaintenanceWindowsRequest request) { + return client.listAvailableMaintenanceWindows(request); + } + }, + new java.util.function.Function< + ListAvailableMaintenanceWindowsResponse, + java.util.List< + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowSummary> + apply(ListAvailableMaintenanceWindowsResponse response) { + return response.getAutonomousDatabaseMaintenanceWindowCollection() + .getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listBackupDestination operation. This iterable will fetch more data from the server as @@ -8368,6 +8499,120 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listGiHomes + * 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 listGiHomesResponseIterator( + final ListGiHomesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListGiHomesRequest.Builder, ListGiHomesRequest, ListGiHomesResponse>( + new java.util.function.Supplier() { + @Override + public ListGiHomesRequest.Builder get() { + return ListGiHomesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListGiHomesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.Builder>, + ListGiHomesRequest>() { + @Override + public ListGiHomesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.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 ListGiHomesResponse apply(ListGiHomesRequest request) { + return client.listGiHomes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.GiHomeSummary} objects contained in responses from the + * listGiHomes operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.GiHomeSummary} objects contained in responses received from + * the service. + */ + public Iterable listGiHomesRecordIterator( + final ListGiHomesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListGiHomesRequest.Builder, + ListGiHomesRequest, + ListGiHomesResponse, + com.oracle.bmc.database.model.GiHomeSummary>( + new java.util.function.Supplier() { + @Override + public ListGiHomesRequest.Builder get() { + return ListGiHomesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListGiHomesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.Builder>, + ListGiHomesRequest>() { + @Override + public ListGiHomesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.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 ListGiHomesResponse apply(ListGiHomesRequest request) { + return client.listGiHomes(request); + } + }, + new java.util.function.Function< + ListGiHomesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListGiHomesResponse response) { + return response.getGiHomeCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listGiVersionMinorVersions operation. This iterable will fetch more data from the server as diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java index 6533dcf7ce0..a264d717c8d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java @@ -5570,6 +5570,65 @@ public CreateExternalPluggableDatabaseResponse 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 forCreateGiHome( + CreateGiHomeRequest request) { + return forCreateGiHome( + 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 forCreateGiHome( + CreateGiHomeRequest 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 CreateGiHomeResponse call() throws Exception { + final CreateGiHomeResponse response = client.createGiHome(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. * @@ -7745,6 +7804,65 @@ public DeleteExternalPluggableDatabaseResponse 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 forDeleteGiHome( + DeleteGiHomeRequest request) { + return forDeleteGiHome( + 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 forDeleteGiHome( + DeleteGiHomeRequest 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 DeleteGiHomeResponse call() throws Exception { + final DeleteGiHomeResponse response = client.deleteGiHome(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. * @@ -15734,6 +15852,105 @@ public boolean test(GetExternalPluggableDatabaseResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forGiHome( + GetGiHomeRequest request, + com.oracle.bmc.database.model.GiHome.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forGiHome( + 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 forGiHome( + GetGiHomeRequest request, + com.oracle.bmc.database.model.GiHome.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forGiHome( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forGiHome( + GetGiHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.GiHome.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forGiHome( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for GiHome. + private com.oracle.bmc.waiter.Waiter forGiHome( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetGiHomeRequest request, + final com.oracle.bmc.database.model.GiHome.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function() { + @Override + public GetGiHomeResponse apply(GetGiHomeRequest request) { + return client.getGiHome(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetGiHomeResponse response) { + return targetStatesSet.contains( + response.getGiHome().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.GiHome.LifecycleState.Terminated)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index 1b2bbcf4899..b450ee7c44b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -145,6 +145,8 @@ public final class AutonomousDatabase "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "scheduledOperations", "isAutoScalingForStorageEnabled", "allocatedStorageSizeInTBs", @@ -291,6 +293,8 @@ public AutonomousDatabase( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, java.util.List scheduledOperations, Boolean isAutoScalingForStorageEnabled, Double allocatedStorageSizeInTBs, @@ -436,6 +440,8 @@ public AutonomousDatabase( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.scheduledOperations = scheduledOperations; this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.allocatedStorageSizeInTBs = allocatedStorageSizeInTBs; @@ -3036,6 +3042,36 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + * + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + */ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** * The list of scheduled operations. Consists of values such as dayOfWeek, * scheduledStartTime, scheduledStopTime. @@ -3612,6 +3648,8 @@ public AutonomousDatabase build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.scheduledOperations, this.isAutoScalingForStorageEnabled, this.allocatedStorageSizeInTBs, @@ -4013,6 +4051,13 @@ public Builder copy(AutonomousDatabase model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("scheduledOperations")) { this.scheduledOperations(model.getScheduledOperations()); } @@ -7171,6 +7216,28 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * + * @return the value + */ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, * scheduledStopTime. @@ -7930,6 +7997,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", scheduledOperations=").append(String.valueOf(this.scheduledOperations)); sb.append(", isAutoScalingForStorageEnabled=") .append(String.valueOf(this.isAutoScalingForStorageEnabled)); @@ -8149,6 +8220,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals(this.scheduledOperations, other.scheduledOperations) && java.util.Objects.equals( this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) @@ -8621,6 +8697,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.scheduledOperations == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowCollection.java new file mode 100644 index 00000000000..34f281c4133 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowCollection.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.database.model; + +/** + * Collection of available maintenance windows for an Autonomous AI 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousDatabaseMaintenanceWindowCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousDatabaseMaintenanceWindowCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AutonomousDatabaseMaintenanceWindowCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of Autonomous AI Database maintenance windows. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of Autonomous AI Database maintenance windows. + * + * @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 AutonomousDatabaseMaintenanceWindowCollection build() { + AutonomousDatabaseMaintenanceWindowCollection model = + new AutonomousDatabaseMaintenanceWindowCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousDatabaseMaintenanceWindowCollection 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 Autonomous AI Database maintenance windows. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of Autonomous AI Database maintenance windows. + * + * @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("AutonomousDatabaseMaintenanceWindowCollection("); + 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 AutonomousDatabaseMaintenanceWindowCollection)) { + return false; + } + + AutonomousDatabaseMaintenanceWindowCollection other = + (AutonomousDatabaseMaintenanceWindowCollection) 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-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java index bd6b30870cd..a78533b3ac5 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java @@ -26,13 +26,25 @@ public final class AutonomousDatabaseMaintenanceWindowSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"dayOfWeek", "maintenanceStartTime", "maintenanceEndTime"}) + @java.beans.ConstructorProperties({ + "dayOfWeek", + "maintenanceStartTime", + "maintenanceEndTime", + "availabilityDomain", + "isMaintenanceWindowChangeScheduled" + }) public AutonomousDatabaseMaintenanceWindowSummary( - DayOfWeek dayOfWeek, String maintenanceStartTime, String maintenanceEndTime) { + DayOfWeek dayOfWeek, + String maintenanceStartTime, + String maintenanceEndTime, + String availabilityDomain, + Boolean isMaintenanceWindowChangeScheduled) { super(); this.dayOfWeek = dayOfWeek; this.maintenanceStartTime = maintenanceStartTime; this.maintenanceEndTime = maintenanceEndTime; + this.availabilityDomain = availabilityDomain; + this.isMaintenanceWindowChangeScheduled = isMaintenanceWindowChangeScheduled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -76,6 +88,41 @@ public Builder maintenanceEndTime(String maintenanceEndTime) { this.__explicitlySet__.add("maintenanceEndTime"); return this; } + /** The AD in which the maintenance will occur. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The AD in which the maintenance will occur. + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI + * Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceWindowChangeScheduled") + private Boolean isMaintenanceWindowChangeScheduled; + + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI + * Database. + * + * @param isMaintenanceWindowChangeScheduled the value to set + * @return this builder + */ + public Builder isMaintenanceWindowChangeScheduled( + Boolean isMaintenanceWindowChangeScheduled) { + this.isMaintenanceWindowChangeScheduled = isMaintenanceWindowChangeScheduled; + this.__explicitlySet__.add("isMaintenanceWindowChangeScheduled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -83,7 +130,11 @@ public Builder maintenanceEndTime(String maintenanceEndTime) { public AutonomousDatabaseMaintenanceWindowSummary build() { AutonomousDatabaseMaintenanceWindowSummary model = new AutonomousDatabaseMaintenanceWindowSummary( - this.dayOfWeek, this.maintenanceStartTime, this.maintenanceEndTime); + this.dayOfWeek, + this.maintenanceStartTime, + this.maintenanceEndTime, + this.availabilityDomain, + this.isMaintenanceWindowChangeScheduled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -101,6 +152,13 @@ public Builder copy(AutonomousDatabaseMaintenanceWindowSummary model) { if (model.wasPropertyExplicitlySet("maintenanceEndTime")) { this.maintenanceEndTime(model.getMaintenanceEndTime()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("isMaintenanceWindowChangeScheduled")) { + this.isMaintenanceWindowChangeScheduled( + model.getIsMaintenanceWindowChangeScheduled()); + } return this; } } @@ -147,6 +205,36 @@ public String getMaintenanceEndTime() { return maintenanceEndTime; } + /** The AD in which the maintenance will occur. */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The AD in which the maintenance will occur. + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI + * Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceWindowChangeScheduled") + private final Boolean isMaintenanceWindowChangeScheduled; + + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI + * Database. + * + * @return the value + */ + public Boolean getIsMaintenanceWindowChangeScheduled() { + return isMaintenanceWindowChangeScheduled; + } + @Override public String toString() { return this.toString(true); @@ -165,6 +253,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("dayOfWeek=").append(String.valueOf(this.dayOfWeek)); sb.append(", maintenanceStartTime=").append(String.valueOf(this.maintenanceStartTime)); sb.append(", maintenanceEndTime=").append(String.valueOf(this.maintenanceEndTime)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", isMaintenanceWindowChangeScheduled=") + .append(String.valueOf(this.isMaintenanceWindowChangeScheduled)); sb.append(")"); return sb.toString(); } @@ -183,6 +274,10 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && java.util.Objects.equals(this.maintenanceStartTime, other.maintenanceStartTime) && java.util.Objects.equals(this.maintenanceEndTime, other.maintenanceEndTime) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.isMaintenanceWindowChangeScheduled, + other.isMaintenanceWindowChangeScheduled) && super.equals(other); } @@ -201,6 +296,16 @@ public int hashCode() { + (this.maintenanceEndTime == null ? 43 : this.maintenanceEndTime.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.isMaintenanceWindowChangeScheduled == null + ? 43 + : this.isMaintenanceWindowChangeScheduled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index d75216f69d8..ee33dfaad3d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -147,6 +147,8 @@ public final class AutonomousDatabaseSummary "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "scheduledOperations", "isAutoScalingForStorageEnabled", "allocatedStorageSizeInTBs", @@ -292,6 +294,8 @@ public AutonomousDatabaseSummary( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, java.util.List scheduledOperations, Boolean isAutoScalingForStorageEnabled, Double allocatedStorageSizeInTBs, @@ -436,6 +440,8 @@ public AutonomousDatabaseSummary( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.scheduledOperations = scheduledOperations; this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.allocatedStorageSizeInTBs = allocatedStorageSizeInTBs; @@ -3017,6 +3023,36 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + * + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + */ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** * The list of scheduled operations. Consists of values such as dayOfWeek, * scheduledStartTime, scheduledStopTime. @@ -3592,6 +3628,8 @@ public AutonomousDatabaseSummary build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.scheduledOperations, this.isAutoScalingForStorageEnabled, this.allocatedStorageSizeInTBs, @@ -3990,6 +4028,13 @@ public Builder copy(AutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("scheduledOperations")) { this.scheduledOperations(model.getScheduledOperations()); } @@ -7131,6 +7176,28 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * + * @return the value + */ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, * scheduledStopTime. @@ -7889,6 +7956,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", scheduledOperations=").append(String.valueOf(this.scheduledOperations)); sb.append(", isAutoScalingForStorageEnabled=") .append(String.valueOf(this.isAutoScalingForStorageEnabled)); @@ -8107,6 +8178,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals(this.scheduledOperations, other.scheduledOperations) && java.util.Objects.equals( this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) @@ -8574,6 +8650,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.scheduledOperations == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java index f7cc4c51021..ef1dece6333 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java @@ -144,6 +144,8 @@ public final class AutonomousDwDatabase "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "scheduledOperations", "isAutoScalingForStorageEnabled", "allocatedStorageSizeInTBs", @@ -289,6 +291,8 @@ public AutonomousDwDatabase( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, java.util.List scheduledOperations, Boolean isAutoScalingForStorageEnabled, Double allocatedStorageSizeInTBs, @@ -433,6 +437,8 @@ public AutonomousDwDatabase( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.scheduledOperations = scheduledOperations; this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.allocatedStorageSizeInTBs = allocatedStorageSizeInTBs; @@ -3014,6 +3020,36 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + * + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + */ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** * The list of scheduled operations. Consists of values such as dayOfWeek, * scheduledStartTime, scheduledStopTime. @@ -3589,6 +3625,8 @@ public AutonomousDwDatabase build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.scheduledOperations, this.isAutoScalingForStorageEnabled, this.allocatedStorageSizeInTBs, @@ -3987,6 +4025,13 @@ public Builder copy(AutonomousDwDatabase model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("scheduledOperations")) { this.scheduledOperations(model.getScheduledOperations()); } @@ -6935,6 +6980,28 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * + * @return the value + */ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, * scheduledStopTime. @@ -7641,6 +7708,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", scheduledOperations=").append(String.valueOf(this.scheduledOperations)); sb.append(", isAutoScalingForStorageEnabled=") .append(String.valueOf(this.isAutoScalingForStorageEnabled)); @@ -7859,6 +7930,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals(this.scheduledOperations, other.scheduledOperations) && java.util.Objects.equals( this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) @@ -8326,6 +8402,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.scheduledOperations == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java index cf7b33d2243..0e94a4fbb47 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java @@ -37,7 +37,8 @@ public final class CreateDatabaseSoftwareImageDetails "lsInventory", "freeformTags", "definedTags", - "sourceDbHomeId" + "sourceDbHomeId", + "sourceGiHomeId" }) public CreateDatabaseSoftwareImageDetails( String compartmentId, @@ -50,7 +51,8 @@ public CreateDatabaseSoftwareImageDetails( String lsInventory, java.util.Map freeformTags, java.util.Map> definedTags, - String sourceDbHomeId) { + String sourceDbHomeId, + String sourceGiHomeId) { super(); this.compartmentId = compartmentId; this.databaseVersion = databaseVersion; @@ -63,6 +65,7 @@ public CreateDatabaseSoftwareImageDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.sourceDbHomeId = sourceDbHomeId; + this.sourceGiHomeId = sourceGiHomeId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -266,6 +269,25 @@ public Builder sourceDbHomeId(String sourceDbHomeId) { this.__explicitlySet__.add("sourceDbHomeId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceGiHomeId") + private String sourceGiHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. + * + * @param sourceGiHomeId the value to set + * @return this builder + */ + public Builder sourceGiHomeId(String sourceGiHomeId) { + this.sourceGiHomeId = sourceGiHomeId; + this.__explicitlySet__.add("sourceGiHomeId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -283,7 +305,8 @@ public CreateDatabaseSoftwareImageDetails build() { this.lsInventory, this.freeformTags, this.definedTags, - this.sourceDbHomeId); + this.sourceDbHomeId, + this.sourceGiHomeId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -326,6 +349,9 @@ public Builder copy(CreateDatabaseSoftwareImageDetails model) { if (model.wasPropertyExplicitlySet("sourceDbHomeId")) { this.sourceDbHomeId(model.getSourceDbHomeId()); } + if (model.wasPropertyExplicitlySet("sourceGiHomeId")) { + this.sourceGiHomeId(model.getSourceGiHomeId()); + } return this; } } @@ -581,6 +607,23 @@ public String getSourceDbHomeId() { return sourceDbHomeId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceGiHomeId") + private final String sourceGiHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. + * + * @return the value + */ + public String getSourceGiHomeId() { + return sourceGiHomeId; + } + @Override public String toString() { return this.toString(true); @@ -608,6 +651,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", sourceDbHomeId=").append(String.valueOf(this.sourceDbHomeId)); + sb.append(", sourceGiHomeId=").append(String.valueOf(this.sourceGiHomeId)); sb.append(")"); return sb.toString(); } @@ -635,6 +679,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.sourceDbHomeId, other.sourceDbHomeId) + && java.util.Objects.equals(this.sourceGiHomeId, other.sourceGiHomeId) && super.equals(other); } @@ -665,6 +710,9 @@ public int hashCode() { result = (result * PRIME) + (this.sourceDbHomeId == null ? 43 : this.sourceDbHomeId.hashCode()); + result = + (result * PRIME) + + (this.sourceGiHomeId == null ? 43 : this.sourceGiHomeId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateGiHomeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateGiHomeDetails.java new file mode 100644 index 00000000000..2a0b5328748 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateGiHomeDetails.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating a Grid Infrastructure Home. **Warning:** Oracle recommends that you avoid + * using any confidential information when you supply string values using the API.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateGiHomeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateGiHomeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "giImageId", + "dbSystemId", + "freeformTags", + "definedTags" + }) + public CreateGiHomeDetails( + String displayName, + String giImageId, + String dbSystemId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.giImageId = giImageId; + this.dbSystemId = dbSystemId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private String giImageId; + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * + * @param giImageId the value to set + * @return this builder + */ + public Builder giImageId(String giImageId) { + this.giImageId = giImageId; + this.__explicitlySet__.add("giImageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DB system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DB system. + * + * @param dbSystemId the value to set + * @return this builder + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateGiHomeDetails build() { + CreateGiHomeDetails model = + new CreateGiHomeDetails( + this.displayName, + this.giImageId, + this.dbSystemId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGiHomeDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("giImageId")) { + this.giImageId(model.getGiImageId()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private final String giImageId; + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * + * @return the value + */ + public String getGiImageId() { + return giImageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB + * system. + * + * @return the value + */ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateGiHomeDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", giImageId=").append(String.valueOf(this.giImageId)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGiHomeDetails)) { + return false; + } + + CreateGiHomeDetails other = (CreateGiHomeDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.giImageId, other.giImageId) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.giImageId == null ? 43 : this.giImageId.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java index 7001f7bc7d4..5aa8954bfcb 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java @@ -1809,6 +1809,7 @@ public String getGridImageId() { public enum GridImageType implements com.oracle.bmc.http.internal.BmcEnum { ReleaseUpdate("RELEASE_UPDATE"), CustomImage("CUSTOM_IMAGE"), + GridHome("GRID_HOME"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java index bf74ddcd68d..5403689bfd8 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java @@ -1787,6 +1787,7 @@ public String getGridImageId() { public enum GridImageType implements com.oracle.bmc.http.internal.BmcEnum { ReleaseUpdate("RELEASE_UPDATE"), CustomImage("CUSTOM_IMAGE"), + GridHome("GRID_HOME"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHome.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHome.java new file mode 100644 index 00000000000..73ff2131875 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHome.java @@ -0,0 +1,789 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of the Grid Infrastructure Home.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = GiHome.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GiHome extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "isDefaultCreated", + "lifecycleState", + "timeCreated", + "homePath", + "giVersion", + "giImageId", + "timeUpdated", + "dbSystemId", + "definedTags", + "freeformTags", + "systemTags" + }) + public GiHome( + String id, + String compartmentId, + String displayName, + Boolean isDefaultCreated, + LifecycleState lifecycleState, + java.util.Date timeCreated, + String homePath, + String giVersion, + String giImageId, + java.util.Date timeUpdated, + String dbSystemId, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.isDefaultCreated = isDefaultCreated; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.homePath = homePath; + this.giVersion = giVersion; + this.giImageId = giImageId; + this.timeUpdated = timeUpdated; + this.dbSystemId = dbSystemId; + 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 + * Grid Infrastructure Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. + * + * @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. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Indicates whether the grid infrastructure home is created by default. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * + * @param isDefaultCreated the value to set + * @return this builder + */ + public Builder isDefaultCreated(Boolean isDefaultCreated) { + this.isDefaultCreated = isDefaultCreated; + this.__explicitlySet__.add("isDefaultCreated"); + return this; + } + /** The current state of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was created + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was created + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The path of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private String homePath; + + /** + * The path of the Grid Infrastructure Home. + * + * @param homePath the value to set + * @return this builder + */ + public Builder homePath(String homePath) { + this.homePath = homePath; + this.__explicitlySet__.add("homePath"); + return this; + } + /** A valid Oracle Grid Infrastructure (GI) software version. */ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * + * @param giVersion the value to set + * @return this builder + */ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + this.__explicitlySet__.add("giVersion"); + return this; + } + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private String giImageId; + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * + * @param giImageId the value to set + * @return this builder + */ + public Builder giImageId(String giImageId) { + this.giImageId = giImageId; + this.__explicitlySet__.add("giImageId"); + return this; + } + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was updated + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was updated + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DB system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DB system. + * + * @param dbSystemId the value to set + * @return this builder + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @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 GiHome build() { + GiHome model = + new GiHome( + this.id, + this.compartmentId, + this.displayName, + this.isDefaultCreated, + this.lifecycleState, + this.timeCreated, + this.homePath, + this.giVersion, + this.giImageId, + this.timeUpdated, + this.dbSystemId, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GiHome 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("isDefaultCreated")) { + this.isDefaultCreated(model.getIsDefaultCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("homePath")) { + this.homePath(model.getHomePath()); + } + if (model.wasPropertyExplicitlySet("giVersion")) { + this.giVersion(model.getGiVersion()); + } + if (model.wasPropertyExplicitlySet("giImageId")) { + this.giImageId(model.getGiImageId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + 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 Grid + * Infrastructure Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Indicates whether the grid infrastructure home is created by default. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private final Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * + * @return the value + */ + public Boolean getIsDefaultCreated() { + return isDefaultCreated; + } + + /** The current state of the Grid Infrastructure Home. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was created + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was created + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The path of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private final String homePath; + + /** + * The path of the Grid Infrastructure Home. + * + * @return the value + */ + public String getHomePath() { + return homePath; + } + + /** A valid Oracle Grid Infrastructure (GI) software version. */ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private final String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * + * @return the value + */ + public String getGiVersion() { + return giVersion; + } + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private final String giImageId; + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * + * @return the value + */ + public String getGiImageId() { + return giImageId; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was updated + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was updated + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB + * system. + * + * @return the value + */ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @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("GiHome("); + 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(", isDefaultCreated=").append(String.valueOf(this.isDefaultCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", homePath=").append(String.valueOf(this.homePath)); + sb.append(", giVersion=").append(String.valueOf(this.giVersion)); + sb.append(", giImageId=").append(String.valueOf(this.giImageId)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + 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 GiHome)) { + return false; + } + + GiHome other = (GiHome) 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.isDefaultCreated, other.isDefaultCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.homePath, other.homePath) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.giImageId, other.giImageId) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && 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.isDefaultCreated == null ? 43 : this.isDefaultCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.homePath == null ? 43 : this.homePath.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = (result * PRIME) + (this.giImageId == null ? 43 : this.giImageId.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.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-database/src/main/java/com/oracle/bmc/database/model/GiHomeCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeCollection.java new file mode 100644 index 00000000000..66d1f23d7ac --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeCollection.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Results of Grid Infrastructure Home list. Contains GiHomeSummary 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: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GiHomeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GiHomeCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public GiHomeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of GiHome resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of GiHome resources. + * + * @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 GiHomeCollection build() { + GiHomeCollection model = new GiHomeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GiHomeCollection 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 GiHome resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of GiHome resources. + * + * @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("GiHomeCollection("); + 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 GiHomeCollection)) { + return false; + } + + GiHomeCollection other = (GiHomeCollection) 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-database/src/main/java/com/oracle/bmc/database/model/GiHomeSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeSummary.java new file mode 100644 index 00000000000..fd481fd81f1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeSummary.java @@ -0,0 +1,797 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * A Grid Infrastructure Home summary. + * + *

To use any of the API operations, you must be authorized in an IAM policy. If you're not + * authorized, talk to an administrator. If you're an administrator who needs to write policies to + * give users access, see [Getting Started with + * Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). + * + *

*Warning:** Oracle recommends that you avoid using any confidential information when you + * supply string values using the API.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = GiHomeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GiHomeSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "isDefaultCreated", + "lifecycleState", + "timeCreated", + "homePath", + "giVersion", + "giImageId", + "timeUpdated", + "dbSystemId", + "definedTags", + "freeformTags", + "systemTags" + }) + public GiHomeSummary( + String id, + String compartmentId, + String displayName, + Boolean isDefaultCreated, + LifecycleState lifecycleState, + java.util.Date timeCreated, + String homePath, + String giVersion, + String giImageId, + java.util.Date timeUpdated, + String dbSystemId, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.isDefaultCreated = isDefaultCreated; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.homePath = homePath; + this.giVersion = giVersion; + this.giImageId = giImageId; + this.timeUpdated = timeUpdated; + this.dbSystemId = dbSystemId; + 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 + * Grid Infrastructure Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. + * + * @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. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Indicates whether the grid infrastructure home is created by default. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * + * @param isDefaultCreated the value to set + * @return this builder + */ + public Builder isDefaultCreated(Boolean isDefaultCreated) { + this.isDefaultCreated = isDefaultCreated; + this.__explicitlySet__.add("isDefaultCreated"); + return this; + } + /** The current state of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was created + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was created + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The path of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private String homePath; + + /** + * The path of the Grid Infrastructure Home. + * + * @param homePath the value to set + * @return this builder + */ + public Builder homePath(String homePath) { + this.homePath = homePath; + this.__explicitlySet__.add("homePath"); + return this; + } + /** A valid Oracle Grid Infrastructure (GI) software version. */ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * + * @param giVersion the value to set + * @return this builder + */ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + this.__explicitlySet__.add("giVersion"); + return this; + } + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private String giImageId; + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * + * @param giImageId the value to set + * @return this builder + */ + public Builder giImageId(String giImageId) { + this.giImageId = giImageId; + this.__explicitlySet__.add("giImageId"); + return this; + } + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was updated + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when + * the grid infrastructure home was updated + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DB system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * DB system. + * + * @param dbSystemId the value to set + * @return this builder + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @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 GiHomeSummary build() { + GiHomeSummary model = + new GiHomeSummary( + this.id, + this.compartmentId, + this.displayName, + this.isDefaultCreated, + this.lifecycleState, + this.timeCreated, + this.homePath, + this.giVersion, + this.giImageId, + this.timeUpdated, + this.dbSystemId, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GiHomeSummary 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("isDefaultCreated")) { + this.isDefaultCreated(model.getIsDefaultCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("homePath")) { + this.homePath(model.getHomePath()); + } + if (model.wasPropertyExplicitlySet("giVersion")) { + this.giVersion(model.getGiVersion()); + } + if (model.wasPropertyExplicitlySet("giImageId")) { + this.giImageId(model.getGiImageId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + 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 Grid + * Infrastructure Home. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Indicates whether the grid infrastructure home is created by default. */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private final Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * + * @return the value + */ + public Boolean getIsDefaultCreated() { + return isDefaultCreated; + } + + /** The current state of the Grid Infrastructure Home. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was created + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was created + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The path of the Grid Infrastructure Home. */ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private final String homePath; + + /** + * The path of the Grid Infrastructure Home. + * + * @return the value + */ + public String getHomePath() { + return homePath; + } + + /** A valid Oracle Grid Infrastructure (GI) software version. */ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private final String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * + * @return the value + */ + public String getGiVersion() { + return giVersion; + } + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private final String giImageId; + + /** + * The grid infrastructure home image + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * + * @return the value + */ + public String getGiImageId() { + return giImageId; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was updated + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the + * grid infrastructure home was updated + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB + * system. + * + * @return the value + */ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @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("GiHomeSummary("); + 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(", isDefaultCreated=").append(String.valueOf(this.isDefaultCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", homePath=").append(String.valueOf(this.homePath)); + sb.append(", giVersion=").append(String.valueOf(this.giVersion)); + sb.append(", giImageId=").append(String.valueOf(this.giImageId)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + 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 GiHomeSummary)) { + return false; + } + + GiHomeSummary other = (GiHomeSummary) 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.isDefaultCreated, other.isDefaultCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.homePath, other.homePath) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.giImageId, other.giImageId) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && 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.isDefaultCreated == null ? 43 : this.isDefaultCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.homePath == null ? 43 : this.homePath.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = (result * PRIME) + (this.giImageId == null ? 43 : this.giImageId.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.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-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java index 0f0152722ed..a50fa07f411 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java @@ -84,6 +84,8 @@ public final class UpdateAutonomousDatabaseDetails "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "isBackupRetentionLocked", "timeScheduledDbVersionUpgrade", "isDisableDbVersionUpgradeSchedule", @@ -152,6 +154,8 @@ public UpdateAutonomousDatabaseDetails( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, Boolean isBackupRetentionLocked, java.util.Date timeScheduledDbVersionUpgrade, Boolean isDisableDbVersionUpgradeSchedule, @@ -219,6 +223,8 @@ public UpdateAutonomousDatabaseDetails( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.isBackupRetentionLocked = isBackupRetentionLocked; this.timeScheduledDbVersionUpgrade = timeScheduledDbVersionUpgrade; this.isDisableDbVersionUpgradeSchedule = isDisableDbVersionUpgradeSchedule; @@ -1763,6 +1769,36 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take + * place. + * + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + */ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** True if the Autonomous AI Database is backup retention locked. */ @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") private Boolean isBackupRetentionLocked; @@ -2111,6 +2147,8 @@ public UpdateAutonomousDatabaseDetails build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.isBackupRetentionLocked, this.timeScheduledDbVersionUpgrade, this.isDisableDbVersionUpgradeSchedule, @@ -2292,6 +2330,13 @@ public Builder copy(UpdateAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); } @@ -4017,6 +4062,28 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * + * @return the value + */ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** True if the Autonomous AI Database is backup retention locked. */ @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") private final Boolean isBackupRetentionLocked; @@ -4350,6 +4417,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", isBackupRetentionLocked=") .append(String.valueOf(this.isBackupRetentionLocked)); sb.append(", timeScheduledDbVersionUpgrade=") @@ -4454,6 +4525,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals( this.isBackupRetentionLocked, other.isBackupRetentionLocked) && java.util.Objects.equals( @@ -4663,6 +4739,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.isBackupRetentionLocked == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java index 2c6515d3027..d10d1b22a22 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java @@ -25,17 +25,20 @@ public final class UpdateDetails extends com.oracle.bmc.http.client.internal.Exp @Deprecated @java.beans.ConstructorProperties({ "updateId", + "giHomeId", "updateAction", "updateMode", "giSoftwareImageId" }) public UpdateDetails( String updateId, + String giHomeId, UpdateAction updateAction, UpdateMode updateMode, String giSoftwareImageId) { super(); this.updateId = updateId; + this.giHomeId = giHomeId; this.updateAction = updateAction; this.updateMode = updateMode; this.giSoftwareImageId = giSoftwareImageId; @@ -62,6 +65,31 @@ public Builder updateId(String updateId) { this.__explicitlySet__.add("updateId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. Specify this field for out of place Grid Infrastructure Home + * patching and upgrade of the Cloud VM Cluster. This is mutually exclusive option to {@code + * updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade + * using Oracle supplied and custom images respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. Specify this field for out of place Grid Infrastructure Home + * patching and upgrade of the Cloud VM Cluster. This is mutually exclusive option to {@code + * updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade + * using Oracle supplied and custom images respectively. + * + * @param giHomeId the value to set + * @return this builder + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + this.__explicitlySet__.add("giHomeId"); + return this; + } /** The update action. */ @com.fasterxml.jackson.annotation.JsonProperty("updateAction") private UpdateAction updateAction; @@ -121,6 +149,7 @@ public UpdateDetails build() { UpdateDetails model = new UpdateDetails( this.updateId, + this.giHomeId, this.updateAction, this.updateMode, this.giSoftwareImageId); @@ -135,6 +164,9 @@ public Builder copy(UpdateDetails model) { if (model.wasPropertyExplicitlySet("updateId")) { this.updateId(model.getUpdateId()); } + if (model.wasPropertyExplicitlySet("giHomeId")) { + this.giHomeId(model.getGiHomeId()); + } if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } @@ -174,6 +206,29 @@ public String getUpdateId() { return updateId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. Specify this field for out of place Grid Infrastructure Home patching + * and upgrade of the Cloud VM Cluster. This is mutually exclusive option to {@code updateId} + * and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle + * supplied and custom images respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private final String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. Specify this field for out of place Grid Infrastructure Home patching + * and upgrade of the Cloud VM Cluster. This is mutually exclusive option to {@code updateId} + * and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle + * supplied and custom images respectively. + * + * @return the value + */ + public String getGiHomeId() { + return giHomeId; + } + /** The update action. */ public enum UpdateAction implements com.oracle.bmc.http.internal.BmcEnum { RollingApply("ROLLING_APPLY"), @@ -306,6 +361,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateDetails("); sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); + sb.append(", giHomeId=").append(String.valueOf(this.giHomeId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); @@ -324,6 +380,7 @@ public boolean equals(Object o) { UpdateDetails other = (UpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) && java.util.Objects.equals(this.updateAction, other.updateAction) && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) @@ -335,6 +392,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.giHomeId == null ? 43 : this.giHomeId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateGiHomeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateGiHomeDetails.java new file mode 100644 index 00000000000..e9d58e1de29 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateGiHomeDetails.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.database.model; + +/** + * Details for updating a Grid Infrastructure Home. **Warning:** Oracle recommends that you avoid + * using any confidential information when you supply string values using the API.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = UpdateGiHomeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateGiHomeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + public UpdateGiHomeDetails( + String displayName, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be + * unique and gets dynamically generated if null. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateGiHomeDetails build() { + UpdateGiHomeDetails model = + new UpdateGiHomeDetails(this.displayName, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateGiHomeDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique + * and gets dynamically generated if null. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateGiHomeDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateGiHomeDetails)) { + return false; + } + + UpdateGiHomeDetails other = (UpdateGiHomeDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java index 5f7cb02dd64..1911f7a4540 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java @@ -26,17 +26,20 @@ public final class VmClusterUpdateDetails @Deprecated @java.beans.ConstructorProperties({ "updateId", + "giHomeId", "updateMode", "updateAction", "giSoftwareImageId" }) public VmClusterUpdateDetails( String updateId, + String giHomeId, UpdateMode updateMode, UpdateAction updateAction, String giSoftwareImageId) { super(); this.updateId = updateId; + this.giHomeId = giHomeId; this.updateMode = updateMode; this.updateAction = updateAction; this.giSoftwareImageId = giSoftwareImageId; @@ -63,6 +66,31 @@ public Builder updateId(String updateId) { this.__explicitlySet__.add("updateId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. Specify this field for out of place Grid Infrastructure Home + * patching and upgrade of the VM Cluster. This is mutually exclusive option to {@code + * updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade + * using Oracle supplied and custom images respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * Grid Infrastructure Home. Specify this field for out of place Grid Infrastructure Home + * patching and upgrade of the VM Cluster. This is mutually exclusive option to {@code + * updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade + * using Oracle supplied and custom images respectively. + * + * @param giHomeId the value to set + * @return this builder + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + this.__explicitlySet__.add("giHomeId"); + return this; + } /** The update mode to perform for OS Update. */ @com.fasterxml.jackson.annotation.JsonProperty("updateMode") private UpdateMode updateMode; @@ -122,6 +150,7 @@ public VmClusterUpdateDetails build() { VmClusterUpdateDetails model = new VmClusterUpdateDetails( this.updateId, + this.giHomeId, this.updateMode, this.updateAction, this.giSoftwareImageId); @@ -136,6 +165,9 @@ public Builder copy(VmClusterUpdateDetails model) { if (model.wasPropertyExplicitlySet("updateId")) { this.updateId(model.getUpdateId()); } + if (model.wasPropertyExplicitlySet("giHomeId")) { + this.giHomeId(model.getGiHomeId()); + } if (model.wasPropertyExplicitlySet("updateMode")) { this.updateMode(model.getUpdateMode()); } @@ -175,6 +207,29 @@ public String getUpdateId() { return updateId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. Specify this field for out of place Grid Infrastructure Home patching + * and upgrade of the VM Cluster. This is mutually exclusive option to {@code updateId} and + * {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle + * supplied and custom images respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private final String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid + * Infrastructure Home. Specify this field for out of place Grid Infrastructure Home patching + * and upgrade of the VM Cluster. This is mutually exclusive option to {@code updateId} and + * {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle + * supplied and custom images respectively. + * + * @return the value + */ + public String getGiHomeId() { + return giHomeId; + } + /** The update mode to perform for OS Update. */ public enum UpdateMode implements com.oracle.bmc.http.internal.BmcEnum { OnlineHighcvss("ONLINE_HIGHCVSS"), @@ -306,6 +361,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("VmClusterUpdateDetails("); sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); + sb.append(", giHomeId=").append(String.valueOf(this.giHomeId)); sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); @@ -324,6 +380,7 @@ public boolean equals(Object o) { VmClusterUpdateDetails other = (VmClusterUpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.updateAction, other.updateAction) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) @@ -335,6 +392,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.giHomeId == null ? 43 : this.giHomeId.hashCode()); result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); result = diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateGiHomeRequest.java new file mode 100644 index 00000000000..c7ad7e0658d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateGiHomeRequest.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateGiHomeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateGiHomeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateGiHomeDetails> { + + /** Request to create a new Grid Infrastructure Home. */ + private com.oracle.bmc.database.model.CreateGiHomeDetails createGiHomeDetails; + + /** Request to create a new Grid Infrastructure Home. */ + public com.oracle.bmc.database.model.CreateGiHomeDetails getCreateGiHomeDetails() { + return createGiHomeDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due 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; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateGiHomeDetails getBody$() { + return createGiHomeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateGiHomeRequest, com.oracle.bmc.database.model.CreateGiHomeDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Request to create a new Grid Infrastructure Home. */ + private com.oracle.bmc.database.model.CreateGiHomeDetails createGiHomeDetails = null; + + /** + * Request to create a new Grid Infrastructure Home. + * + * @param createGiHomeDetails the value to set + * @return this builder instance + */ + public Builder createGiHomeDetails( + com.oracle.bmc.database.model.CreateGiHomeDetails createGiHomeDetails) { + this.createGiHomeDetails = createGiHomeDetails; + 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; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateGiHomeRequest o) { + createGiHomeDetails(o.getCreateGiHomeDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateGiHomeRequest 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 CreateGiHomeRequest + */ + public CreateGiHomeRequest build() { + CreateGiHomeRequest 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.database.model.CreateGiHomeDetails body) { + createGiHomeDetails(body); + return this; + } + + /** + * Build the instance of CreateGiHomeRequest 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 CreateGiHomeRequest + */ + public CreateGiHomeRequest buildWithoutInvocationCallback() { + CreateGiHomeRequest request = new CreateGiHomeRequest(); + request.createGiHomeDetails = createGiHomeDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateGiHomeRequest(createGiHomeDetails, 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() + .createGiHomeDetails(createGiHomeDetails) + .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(",createGiHomeDetails=").append(String.valueOf(this.createGiHomeDetails)); + 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 CreateGiHomeRequest)) { + return false; + } + + CreateGiHomeRequest other = (CreateGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createGiHomeDetails, other.createGiHomeDetails) + && 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.createGiHomeDetails == null + ? 43 + : this.createGiHomeDetails.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-database/src/main/java/com/oracle/bmc/database/requests/DeleteGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteGiHomeRequest.java new file mode 100644 index 00000000000..0303e06fd39 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteGiHomeRequest.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteGiHomeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteGiHomeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getGiHomeId() { + return giHomeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteGiHomeRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId = null; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param giHomeId the value to set + * @return this builder instance + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteGiHomeRequest o) { + giHomeId(o.getGiHomeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteGiHomeRequest 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 DeleteGiHomeRequest + */ + public DeleteGiHomeRequest build() { + DeleteGiHomeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteGiHomeRequest 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 DeleteGiHomeRequest + */ + public DeleteGiHomeRequest buildWithoutInvocationCallback() { + DeleteGiHomeRequest request = new DeleteGiHomeRequest(); + request.giHomeId = giHomeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteGiHomeRequest(giHomeId, 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().giHomeId(giHomeId).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(",giHomeId=").append(String.valueOf(this.giHomeId)); + 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 DeleteGiHomeRequest)) { + return false; + } + + DeleteGiHomeRequest other = (DeleteGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) + && 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.giHomeId == null ? 43 : this.giHomeId.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-database/src/main/java/com/oracle/bmc/database/requests/GetGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetGiHomeRequest.java new file mode 100644 index 00000000000..8a89b3276e2 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetGiHomeRequest.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetGiHomeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetGiHomeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getGiHomeId() { + return giHomeId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetGiHomeRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId = null; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param giHomeId the value to set + * @return this builder instance + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetGiHomeRequest o) { + giHomeId(o.getGiHomeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetGiHomeRequest 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 GetGiHomeRequest + */ + public GetGiHomeRequest build() { + GetGiHomeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetGiHomeRequest 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 GetGiHomeRequest + */ + public GetGiHomeRequest buildWithoutInvocationCallback() { + GetGiHomeRequest request = new GetGiHomeRequest(); + request.giHomeId = giHomeId; + request.opcRequestId = opcRequestId; + return request; + // new GetGiHomeRequest(giHomeId, 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().giHomeId(giHomeId).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(",giHomeId=").append(String.valueOf(this.giHomeId)); + 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 GetGiHomeRequest)) { + return false; + } + + GetGiHomeRequest other = (GetGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.giHomeId == null ? 43 : this.giHomeId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAvailableMaintenanceWindowsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAvailableMaintenanceWindowsRequest.java new file mode 100644 index 00000000000..4046a6c010c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAvailableMaintenanceWindowsRequest.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ListAvailableMaintenanceWindowsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAvailableMaintenanceWindowsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousDatabaseId; + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getAutonomousDatabaseId() { + return autonomousDatabaseId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAvailableMaintenanceWindowsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The database + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousDatabaseId = null; + + /** + * The database + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param autonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder autonomousDatabaseId(String autonomousDatabaseId) { + this.autonomousDatabaseId = autonomousDatabaseId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ListAvailableMaintenanceWindowsRequest o) { + autonomousDatabaseId(o.getAutonomousDatabaseId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAvailableMaintenanceWindowsRequest 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 ListAvailableMaintenanceWindowsRequest + */ + public ListAvailableMaintenanceWindowsRequest build() { + ListAvailableMaintenanceWindowsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAvailableMaintenanceWindowsRequest 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 ListAvailableMaintenanceWindowsRequest + */ + public ListAvailableMaintenanceWindowsRequest buildWithoutInvocationCallback() { + ListAvailableMaintenanceWindowsRequest request = + new ListAvailableMaintenanceWindowsRequest(); + request.autonomousDatabaseId = autonomousDatabaseId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListAvailableMaintenanceWindowsRequest(autonomousDatabaseId, opcRequestId, limit, + // page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .autonomousDatabaseId(autonomousDatabaseId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAvailableMaintenanceWindowsRequest)) { + return false; + } + + ListAvailableMaintenanceWindowsRequest other = (ListAvailableMaintenanceWindowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseId == null + ? 43 + : this.autonomousDatabaseId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiHomesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiHomesRequest.java new file mode 100644 index 00000000000..7e45fa256d3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiHomesRequest.java @@ -0,0 +1,546 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListGiHomesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListGiHomesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * If provided, filters the results to the set of database versions which are supported for the + * DB system. + */ + private String dbSystemId; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * If provided, filters the results to the set of database versions which are supported for the + * DB system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided grid + * infrastructure version. + */ + private String giVersion; + + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided grid + * infrastructure version. + */ + public String getGiVersion() { + return giVersion; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * timeCreated is descending. Default order for displayName is ascending. The displayName sort + * order is case sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for + * timeCreated is descending. Default order for displayName is ascending. The displayName sort + * order is case sensitive. + */ + 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. You can provide one sort order ({@code sortOrder}). Default order for + * timeCreated is descending. Default order for displayName is ascending. The displayName sort + * order is case sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.GiHomeSummary.LifecycleState lifecycleState; + + /** A filter to return only resources that match the given lifecycle state exactly. */ + public com.oracle.bmc.database.model.GiHomeSummary.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not + * case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListGiHomesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If + * provided, filters the results to the set of database versions which are supported for the + * DB system. + */ + private String dbSystemId = null; + + /** + * The DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If + * provided, filters the results to the set of database versions which are supported for the + * DB system. + * + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided + * grid infrastructure version. + */ + private String giVersion = null; + + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided + * grid infrastructure version. + * + * @param giVersion the value to set + * @return this builder instance + */ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for timeCreated is descending. Default order for displayName is ascending. The + * displayName sort order is case sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order + * for timeCreated is descending. Default order for displayName is ascending. The + * displayName sort order is case sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** A filter to return only resources that match the given lifecycle state exactly. */ + private com.oracle.bmc.database.model.GiHomeSummary.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.GiHomeSummary.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. The match is + * not case sensitive. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListGiHomesRequest o) { + compartmentId(o.getCompartmentId()); + dbSystemId(o.getDbSystemId()); + giVersion(o.getGiVersion()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListGiHomesRequest 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 ListGiHomesRequest + */ + public ListGiHomesRequest build() { + ListGiHomesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListGiHomesRequest 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 ListGiHomesRequest + */ + public ListGiHomesRequest buildWithoutInvocationCallback() { + ListGiHomesRequest request = new ListGiHomesRequest(); + request.compartmentId = compartmentId; + request.dbSystemId = dbSystemId; + request.giVersion = giVersion; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListGiHomesRequest(compartmentId, dbSystemId, giVersion, limit, page, sortBy, + // sortOrder, lifecycleState, 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) + .dbSystemId(dbSystemId) + .giVersion(giVersion) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .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(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",giVersion=").append(String.valueOf(this.giVersion)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 ListGiHomesRequest)) { + return false; + } + + ListGiHomesRequest other = (ListGiHomesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.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-database/src/main/java/com/oracle/bmc/database/requests/UpdateGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateGiHomeRequest.java new file mode 100644 index 00000000000..8ecdb583578 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateGiHomeRequest.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UpdateGiHomeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateGiHomeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateGiHomeDetails> { + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getGiHomeId() { + return giHomeId; + } + /** Request to update the properties of a Grid Infrastructure Home. */ + private com.oracle.bmc.database.model.UpdateGiHomeDetails updateGiHomeDetails; + + /** Request to update the properties of a Grid Infrastructure Home. */ + public com.oracle.bmc.database.model.UpdateGiHomeDetails getUpdateGiHomeDetails() { + return updateGiHomeDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateGiHomeDetails getBody$() { + return updateGiHomeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateGiHomeRequest, com.oracle.bmc.database.model.UpdateGiHomeDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId = null; + + /** + * The Grid Infrastructure Home + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param giHomeId the value to set + * @return this builder instance + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + return this; + } + + /** Request to update the properties of a Grid Infrastructure Home. */ + private com.oracle.bmc.database.model.UpdateGiHomeDetails updateGiHomeDetails = null; + + /** + * Request to update the properties of a Grid Infrastructure Home. + * + * @param updateGiHomeDetails the value to set + * @return this builder instance + */ + public Builder updateGiHomeDetails( + com.oracle.bmc.database.model.UpdateGiHomeDetails updateGiHomeDetails) { + this.updateGiHomeDetails = updateGiHomeDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateGiHomeRequest o) { + giHomeId(o.getGiHomeId()); + updateGiHomeDetails(o.getUpdateGiHomeDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateGiHomeRequest 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 UpdateGiHomeRequest + */ + public UpdateGiHomeRequest build() { + UpdateGiHomeRequest 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.database.model.UpdateGiHomeDetails body) { + updateGiHomeDetails(body); + return this; + } + + /** + * Build the instance of UpdateGiHomeRequest 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 UpdateGiHomeRequest + */ + public UpdateGiHomeRequest buildWithoutInvocationCallback() { + UpdateGiHomeRequest request = new UpdateGiHomeRequest(); + request.giHomeId = giHomeId; + request.updateGiHomeDetails = updateGiHomeDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateGiHomeRequest(giHomeId, updateGiHomeDetails, 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() + .giHomeId(giHomeId) + .updateGiHomeDetails(updateGiHomeDetails) + .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(",giHomeId=").append(String.valueOf(this.giHomeId)); + sb.append(",updateGiHomeDetails=").append(String.valueOf(this.updateGiHomeDetails)); + 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 UpdateGiHomeRequest)) { + return false; + } + + UpdateGiHomeRequest other = (UpdateGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) + && java.util.Objects.equals(this.updateGiHomeDetails, other.updateGiHomeDetails) + && 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.giHomeId == null ? 43 : this.giHomeId.hashCode()); + result = + (result * PRIME) + + (this.updateGiHomeDetails == null + ? 43 + : this.updateGiHomeDetails.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-database/src/main/java/com/oracle/bmc/database/responses/CreateGiHomeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateGiHomeResponse.java new file mode 100644 index 00000000000..b7f60f29a7e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateGiHomeResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateGiHomeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID 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. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** 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 GiHome} instance. */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned {@code GiHome} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.GiHome getGiHome() { + return giHome; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "giHome" + }) + private CreateGiHomeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.GiHome giHome) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.giHome = giHome; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID 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. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** 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 GiHome} instance. */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned {@code GiHome} instance. + * + * @param giHome the value to set + * @return this builder + */ + public Builder giHome(com.oracle.bmc.database.model.GiHome giHome) { + this.giHome = giHome; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateGiHomeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + giHome(o.getGiHome()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateGiHomeResponse build() { + return new CreateGiHomeResponse( + __httpStatusCode__, headers, opcWorkRequestId, etag, opcRequestId, giHome); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",giHome=").append(String.valueOf(giHome)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGiHomeResponse)) { + return false; + } + + CreateGiHomeResponse other = (CreateGiHomeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.giHome, other.giHome); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.giHome == null ? 43 : this.giHome.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteGiHomeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteGiHomeResponse.java new file mode 100644 index 00000000000..7dd0738f5c9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteGiHomeResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteGiHomeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID 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. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteGiHomeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID 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. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteGiHomeResponse 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 DeleteGiHomeResponse build() { + return new DeleteGiHomeResponse( + __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 DeleteGiHomeResponse)) { + return false; + } + + DeleteGiHomeResponse other = (DeleteGiHomeResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/GetGiHomeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetGiHomeResponse.java new file mode 100644 index 00000000000..b6fd8003aa7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetGiHomeResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetGiHomeResponse 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 GiHome} instance. */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned {@code GiHome} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.GiHome getGiHome() { + return giHome; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "giHome" + }) + private GetGiHomeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.GiHome giHome) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.giHome = giHome; + } + + 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 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 GiHome} instance. */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned {@code GiHome} instance. + * + * @param giHome the value to set + * @return this builder + */ + public Builder giHome(com.oracle.bmc.database.model.GiHome giHome) { + this.giHome = giHome; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetGiHomeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + giHome(o.getGiHome()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetGiHomeResponse build() { + return new GetGiHomeResponse(__httpStatusCode__, headers, etag, opcRequestId, giHome); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",giHome=").append(String.valueOf(giHome)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetGiHomeResponse)) { + return false; + } + + GetGiHomeResponse other = (GetGiHomeResponse) 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.giHome, other.giHome); + } + + @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.giHome == null ? 43 : this.giHome.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAvailableMaintenanceWindowsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAvailableMaintenanceWindowsResponse.java new file mode 100644 index 00000000000..a17970fb747 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAvailableMaintenanceWindowsResponse.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAvailableMaintenanceWindowsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code AutonomousDatabaseMaintenanceWindowCollection} instance. */ + private com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection; + + /** + * The returned {@code AutonomousDatabaseMaintenanceWindowCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + getAutonomousDatabaseMaintenanceWindowCollection() { + return autonomousDatabaseMaintenanceWindowCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "autonomousDatabaseMaintenanceWindowCollection" + }) + private ListAvailableMaintenanceWindowsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.autonomousDatabaseMaintenanceWindowCollection = + autonomousDatabaseMaintenanceWindowCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListAvailableMaintenanceWindowsResponse> { + 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 there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code AutonomousDatabaseMaintenanceWindowCollection} instance. */ + private com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection; + + /** + * The returned {@code AutonomousDatabaseMaintenanceWindowCollection} instance. + * + * @param autonomousDatabaseMaintenanceWindowCollection the value to set + * @return this builder + */ + public Builder autonomousDatabaseMaintenanceWindowCollection( + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection) { + this.autonomousDatabaseMaintenanceWindowCollection = + autonomousDatabaseMaintenanceWindowCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAvailableMaintenanceWindowsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + autonomousDatabaseMaintenanceWindowCollection( + o.getAutonomousDatabaseMaintenanceWindowCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAvailableMaintenanceWindowsResponse build() { + return new ListAvailableMaintenanceWindowsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + autonomousDatabaseMaintenanceWindowCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",autonomousDatabaseMaintenanceWindowCollection=") + .append(String.valueOf(autonomousDatabaseMaintenanceWindowCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAvailableMaintenanceWindowsResponse)) { + return false; + } + + ListAvailableMaintenanceWindowsResponse other = (ListAvailableMaintenanceWindowsResponse) 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.autonomousDatabaseMaintenanceWindowCollection, + other.autonomousDatabaseMaintenanceWindowCollection); + } + + @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.autonomousDatabaseMaintenanceWindowCollection == null + ? 43 + : this.autonomousDatabaseMaintenanceWindowCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListGiHomesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListGiHomesResponse.java new file mode 100644 index 00000000000..9bf0e8550c8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListGiHomesResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListGiHomesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code GiHomeCollection} instance. */ + private com.oracle.bmc.database.model.GiHomeCollection giHomeCollection; + + /** + * The returned {@code GiHomeCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.GiHomeCollection getGiHomeCollection() { + return giHomeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "giHomeCollection" + }) + private ListGiHomesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.GiHomeCollection giHomeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.giHomeCollection = giHomeCollection; + } + + 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 there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code GiHomeCollection} instance. */ + private com.oracle.bmc.database.model.GiHomeCollection giHomeCollection; + + /** + * The returned {@code GiHomeCollection} instance. + * + * @param giHomeCollection the value to set + * @return this builder + */ + public Builder giHomeCollection( + com.oracle.bmc.database.model.GiHomeCollection giHomeCollection) { + this.giHomeCollection = giHomeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListGiHomesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + giHomeCollection(o.getGiHomeCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListGiHomesResponse build() { + return new ListGiHomesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, giHomeCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",giHomeCollection=").append(String.valueOf(giHomeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListGiHomesResponse)) { + return false; + } + + ListGiHomesResponse other = (ListGiHomesResponse) 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.giHomeCollection, other.giHomeCollection); + } + + @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.giHomeCollection == null ? 43 : this.giHomeCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateGiHomeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateGiHomeResponse.java new file mode 100644 index 00000000000..5e051ed5ba7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateGiHomeResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateGiHomeResponse 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 GiHome} instance. */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned {@code GiHome} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.GiHome getGiHome() { + return giHome; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "giHome" + }) + private UpdateGiHomeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.GiHome giHome) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.giHome = giHome; + } + + 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 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 GiHome} instance. */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned {@code GiHome} instance. + * + * @param giHome the value to set + * @return this builder + */ + public Builder giHome(com.oracle.bmc.database.model.GiHome giHome) { + this.giHome = giHome; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateGiHomeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + giHome(o.getGiHome()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateGiHomeResponse build() { + return new UpdateGiHomeResponse( + __httpStatusCode__, headers, etag, opcRequestId, giHome); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",giHome=").append(String.valueOf(giHome)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateGiHomeResponse)) { + return false; + } + + UpdateGiHomeResponse other = (UpdateGiHomeResponse) 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.giHome, other.giHome); + } + + @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.giHome == null ? 43 : this.giHome.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json index f68153ca0fe..5f3b9c4e4da 100644 --- a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json +++ b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json @@ -1148,6 +1148,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowSummary", @@ -4684,6 +4698,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateGiHomeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateGiHomeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CreateKeyStoreDetails", @@ -8084,6 +8112,60 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHome", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHome$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHome$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHomeCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHomeCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHomeSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHomeSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.GiHomeSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.GiMinorVersionSummary", @@ -11421,6 +11503,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateGiHomeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateGiHomeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.UpdateHistoryEntry", diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 154ba3a8520..f78f845b5e4 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index c8b2d57371d..edc4f051a97 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 6360f8e9a63..3a20898920f 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 6e9e8eaddae..bedaeae154e 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index f701eb77a4a..c985f70102f 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index 92d933bd2a4..a06b946708b 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index dfd7e35dc3a..6b5df2e23b5 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 9a07c5d378e..ad131aca405 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index bb0de2f4bb1..b7c164cf9e1 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index a24fe0b636c..a05fafb3716 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 18d2a8c5128..f23f5274913 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 86a3163ba11..a426c17b0fc 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index 712793dcf12..eb9c30c7641 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 73f3bf8976b..6d6142e40f0 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml index 57bf29b8f29..e8c688e2b9d 100644 --- a/bmc-ddfs/pom.xml +++ b/bmc-ddfs/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-ddfs @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index dcd2cbc8b57..4bee23c1359 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 88fd5f9b652..20fc15b9f07 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index ac9ba62d59a..9474cc9c221 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index eb73d00caaa..59b35651692 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index a3d943dba03..c7ec94d1842 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index d0a8b59d2dc..696bd9fb70b 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 6a248f228c0..090aedbbdb9 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-distributeddatabasev26/pom.xml b/bmc-distributeddatabasev26/pom.xml index f36ef5944f4..3d095d89277 100644 --- a/bmc-distributeddatabasev26/pom.xml +++ b/bmc-distributeddatabasev26/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-distributeddatabasev26 @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 6ddb0710f62..2116221aab2 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.0 + 3.95.1 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index fa410635f67..943d93cf76f 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index cff63f2be8b..55c7810bb32 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index cfe98545e55..e6d47d30c63 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 093d2d2abc8..25caed8d74c 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.95.0 + 3.95.1 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 0ab1c4a4025..4658d7e6411 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.95.0 + 3.95.1 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 90456ed03cb..35169a6eeb2 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 44b8e6bc8f2..71b1a3de7b6 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.0 + 3.95.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 pom import @@ -825,5 +825,9 @@ com.oracle.oci.sdk oci-java-sdk-distributeddatabasev26 + + com.oracle.oci.sdk + oci-java-sdk-clusterhealth + \ No newline at end of file diff --git a/bmc-examples/src/main/java/InvokeFunctionExample.java b/bmc-examples/src/main/java/InvokeFunctionExample.java index 52450356bd4..c74ea2d2346 100644 --- a/bmc-examples/src/main/java/InvokeFunctionExample.java +++ b/bmc-examples/src/main/java/InvokeFunctionExample.java @@ -2,1173 +2,1181 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -import com.oracle.bmc.ConfigFileReader; -import com.oracle.bmc.Region; -import com.oracle.bmc.auth.AuthenticationDetailsProvider; -import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; -import com.oracle.bmc.core.VirtualNetworkClient; -import com.oracle.bmc.core.model.CreateInternetGatewayDetails; -import com.oracle.bmc.core.model.CreateSubnetDetails; -import com.oracle.bmc.core.model.CreateVcnDetails; -import com.oracle.bmc.core.model.InternetGateway; -import com.oracle.bmc.core.model.RouteRule; -import com.oracle.bmc.core.model.RouteRule.DestinationType; -import com.oracle.bmc.core.model.RouteTable; -import com.oracle.bmc.core.model.Subnet; -import com.oracle.bmc.core.model.UpdateRouteTableDetails; -import com.oracle.bmc.core.model.Vcn; -import com.oracle.bmc.core.requests.CreateInternetGatewayRequest; -import com.oracle.bmc.core.requests.CreateSubnetRequest; -import com.oracle.bmc.core.requests.CreateVcnRequest; -import com.oracle.bmc.core.requests.DeleteInternetGatewayRequest; -import com.oracle.bmc.core.requests.DeleteSubnetRequest; -import com.oracle.bmc.core.requests.DeleteVcnRequest; -import com.oracle.bmc.core.requests.GetInternetGatewayRequest; -import com.oracle.bmc.core.requests.GetSubnetRequest; -import com.oracle.bmc.core.requests.GetVcnRequest; -import com.oracle.bmc.core.requests.ListInternetGatewaysRequest; -import com.oracle.bmc.core.requests.ListRouteTablesRequest; -import com.oracle.bmc.core.requests.ListSubnetsRequest; -import com.oracle.bmc.core.requests.ListVcnsRequest; -import com.oracle.bmc.core.requests.UpdateRouteTableRequest; -import com.oracle.bmc.core.responses.CreateInternetGatewayResponse; -import com.oracle.bmc.core.responses.CreateSubnetResponse; -import com.oracle.bmc.core.responses.CreateVcnResponse; -import com.oracle.bmc.core.responses.GetSubnetResponse; -import com.oracle.bmc.core.responses.GetVcnResponse; -import com.oracle.bmc.core.responses.ListInternetGatewaysResponse; -import com.oracle.bmc.core.responses.ListRouteTablesResponse; -import com.oracle.bmc.core.responses.ListSubnetsResponse; -import com.oracle.bmc.core.responses.ListVcnsResponse; -import com.oracle.bmc.core.responses.UpdateRouteTableResponse; -import com.oracle.bmc.functions.FunctionsInvokeClient; -import com.oracle.bmc.functions.FunctionsManagementClient; -import com.oracle.bmc.functions.model.Application; -import com.oracle.bmc.functions.model.ApplicationSummary; -import com.oracle.bmc.functions.model.CreateApplicationDetails; -import com.oracle.bmc.functions.model.CreateFunctionDetails; -import com.oracle.bmc.functions.model.Function; -import com.oracle.bmc.functions.model.FunctionSummary; -import com.oracle.bmc.functions.requests.CreateApplicationRequest; -import com.oracle.bmc.functions.requests.CreateFunctionRequest; -import com.oracle.bmc.functions.requests.DeleteApplicationRequest; -import com.oracle.bmc.functions.requests.DeleteFunctionRequest; -import com.oracle.bmc.functions.requests.GetApplicationRequest; -import com.oracle.bmc.functions.requests.GetFunctionRequest; -import com.oracle.bmc.functions.requests.InvokeFunctionRequest; -import com.oracle.bmc.functions.requests.ListApplicationsRequest; -import com.oracle.bmc.functions.requests.ListFunctionsRequest; -import com.oracle.bmc.functions.responses.CreateApplicationResponse; -import com.oracle.bmc.functions.responses.CreateFunctionResponse; -import com.oracle.bmc.functions.responses.GetApplicationResponse; -import com.oracle.bmc.functions.responses.GetFunctionResponse; -import com.oracle.bmc.functions.responses.InvokeFunctionResponse; -import com.oracle.bmc.functions.responses.ListApplicationsResponse; -import com.oracle.bmc.functions.responses.ListFunctionsResponse; -import com.oracle.bmc.identity.Identity; -import com.oracle.bmc.identity.IdentityClient; -import com.oracle.bmc.identity.model.AvailabilityDomain; -import com.oracle.bmc.identity.requests.ListAvailabilityDomainsRequest; -import com.oracle.bmc.identity.responses.ListAvailabilityDomainsResponse; -import com.oracle.bmc.model.BmcException; -import com.oracle.bmc.util.StreamUtils; - -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; - -public class InvokeFunctionExample { - - static final Region DEFAULT_REGION = Region.US_PHOENIX_1; - - static final String SETUP = "setup"; - static final String INVOKE = "invoke"; - static final String TEARDOWN = "teardown"; - - /** - * This is a basic example of how to register and invoke a serverless Function on OCI using the - * Java SDK. - * - *

The example has some pre-requisites. In particular you will need to create a Function - * image and publish it to OCI Registry. The best way to do this is with the 'Fn CLI': - * - *

1. Install Fn CLI : https://github.com/fnproject/cli - * - *

2. Create Function - Quick Guide : https://github.com/fnproject/fn/blob/master/README.md - * - *

This sample will do following things: - * - *

1. Create VCN and subnets - Provide an endpoint on which your function can be invoked. - * - *

2. Create Application and Function - Register and configure your function. - * - *

3. Invoke Function - How your function can be invoked. - * - *

4. Clean-up - Tidy up the resources created above. - * - *

NB: To simplify things, this example is hardcoded to use the 'us-phoenix-1' OCI region. - * - *

NB: Currently, after invoking a function we must wait up to 30 minutes before clearing - * down any supporting Subnets and VCN. - * - * @param args Arguments to provide to the example. The following arguments are expected: - *

- * - * @throws Exception - */ - public static void main(String[] args) throws Exception { - if (args.length < 3) { - throw new IllegalArgumentException( - "Invalid number of arguments provided to the script."); - } - - // Handle commands: {setup, invoke, teardown} - final String command = args[0]; - if (!command.equalsIgnoreCase(SETUP) - && !command.equalsIgnoreCase(INVOKE) - && !command.equalsIgnoreCase(TEARDOWN)) { - throw new Exception( - "Please provide 'setup', 'invoke' or 'teardown' as the first argument."); - } - - // We need a target compartment. - final String compartmentId = args[1]; - - // We need an accessible image in the Phoenix region to invoke. - // e.g. phx.ocir.io/tenancy-name/registry/imagename:version - final String image = args[2]; - - // All resources will be prefixed with this name. - final String name = "oci-java-sdk-function-example"; - - // The default region to use. - final Region region = DEFAULT_REGION; - - // Depending on the image chosen a payload can be specified. - final String payload = (args.length >= 4) ? args[3] : ""; - - // Configure Auth - final String configurationFilePath = "~/.oci/config"; - final String profile = "DEFAULT"; - // Configuring the AuthenticationDetailsProvider. It's assuming there is a default OCI - // config file - // "~/.oci/config", and a profile in that config with the name "DEFAULT". Make changes to - // the following - // line if needed and use ConfigFileReader.parse(configurationFilePath, profile); - - final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault(); - - final AuthenticationDetailsProvider provider = - new ConfigFileAuthenticationDetailsProvider(configFile); - - try { - if (command.equalsIgnoreCase(SETUP)) { - setupResources(provider, region, compartmentId, name, image); - } - - if (command.equalsIgnoreCase(INVOKE)) { - invokeFunction(provider, region, compartmentId, name, payload); - } - - if (command.equalsIgnoreCase(TEARDOWN)) { - teardownResources(provider, region, compartmentId, name); - } - } catch (Exception e) { - e.printStackTrace(); - System.err.println("Error: " + e); - } - } - - /** - * Create all the OCI and Fn resources required to invoke a function. - * - * @param provider the OCI credentials provider. - * @param region the OCI region in which to create the required resources. - * @param compartmentId the compartment in which to create the required resources. - * @param name a name prefix to easily identify the resources. - * @param image a valid OCI Registry image for the function. - * @throws Exception - */ - public static void setupResources( - final AuthenticationDetailsProvider provider, - final Region region, - final String compartmentId, - final String name, - final String image) - throws Exception { - - final Identity identityClient = IdentityClient.builder().region(region).build(provider); - - final VirtualNetworkClient vcnClient = - VirtualNetworkClient.builder().region(region).build(provider); - - final FunctionsManagementClient fnManagementClient = - FunctionsManagementClient.builder().region(region).build(provider); - - try { - // 1. A list of AvailabilityDomains are required to determine where to host each - // subnet. - final List availabilityDomains = - getAvailabilityDomains(identityClient, compartmentId); - final AvailabilityDomain ad = availabilityDomains.get(0); - System.out.println("Using availability domain: " + ad.getName()); - - // 2. A VCN is required to host subnets. - final String vcnDisplayName = vcnName(name); - final String vcnCidrBlock = "10.0.0.0/16"; - final Vcn vcn = createVcn(vcnClient, compartmentId, vcnDisplayName, vcnCidrBlock); - System.out.println("Created VCN: " + vcn.getDisplayName()); - - // 3. An Internet Gateway is required to enable the VCN to talk to the wider world. - final String igDisplayName = igName(name); - final InternetGateway ig = - createInternetGateway(vcnClient, compartmentId, igDisplayName, vcn.getId()); - - // 4. We must configure the VCN's traffic to be routed through the IG. - final String drtDisplayName = drtName(name); - configureInternetGateway( - vcnClient, compartmentId, vcn.getId(), ig.getId(), drtDisplayName); - - // 5. A subnet is required to expose and be able invoke the function. - // In multiple AD regions, subnets can be created in multiple ADs to provide - // redundancy. - final String subnetDisplayName = subnetName(name); - final String subnetCidrBlock = "10.0.0.0/24"; - final Subnet subnet = - createSubnet( - vcnClient, - compartmentId, - vcn.getId(), - subnetDisplayName, - ad.getName(), - subnetCidrBlock); - System.out.println("Created VCN subnet: " + subnet.getDisplayName()); - - // 6. Create an Application to host and manage the function(s). - final String appDisplayName = applicationName(name); - final List subnetIds = new ArrayList<>(); - subnetIds.add(subnet.getId()); - final Application app = - createApplication(fnManagementClient, compartmentId, appDisplayName, subnetIds); - System.out.println("Created Application: " + app.getDisplayName()); - - // 7. Create a single Function, set its execution image and limits. - final String fnDisplayName = functionName(name); - final long memoryInMBs = 128L; - final int timeoutInSeconds = 30; - final Function fn = - createFunction( - fnManagementClient, - app.getId(), - fnDisplayName, - image, - memoryInMBs, - timeoutInSeconds); - System.out.println("Created Function: " + fn.getDisplayName()); - - } finally { - fnManagementClient.close(); - vcnClient.close(); - identityClient.close(); - } - } - - /** - * Invoke a function. - * - * @param provider the OCI credentials provider. - * @param region the OCI region in which to create the required resources. - * @param compartmentId the compartment in which to created the required resources. - * @param name a name prefix to easily identify the resources. - * @param payload the payload to be sent to the function on invocation. - * @throws Exception - */ - public static void invokeFunction( - final AuthenticationDetailsProvider provider, - final Region region, - final String compartmentId, - final String name, - final String payload) - throws Exception { - - final FunctionsManagementClient fnManagementClient = - FunctionsManagementClient.builder().region(region).build(provider); - - final FunctionsInvokeClient fnInvokeClient = - FunctionsInvokeClient.builder().build(provider); - - try { - // Invoke the function! - final String appName = applicationName(name); - final String fnName = functionName(name); - final FunctionSummary fn = - getUniqueFunctionByName(fnManagementClient, compartmentId, appName, fnName); - - final String response = invokeFunction(fnInvokeClient, fn, payload); - if (response != null) { - System.out.println("Response from function: " + response); - } - } finally { - fnInvokeClient.close(); - fnManagementClient.close(); - } - } - - /** - * Remove all resources created by the 'setup' operation. - * - *

NB: Resources can only be removed 30 minutes after the last Function invocation. - * - * @param provider the OCI credentials provider. - * @param region the OCI region in which to create the required resources. - * @param compartmentId the compartment in which to created the required resources. - * @param name a name prefix to easily identify the resources. - * @throws Exception - */ - public static void teardownResources( - final AuthenticationDetailsProvider provider, - final Region region, - final String compartmentId, - final String name) - throws Exception { - - final Identity identityClient = IdentityClient.builder().region(region).build(provider); - - final VirtualNetworkClient vcnClient = - VirtualNetworkClient.builder().region(region).build(provider); - - final FunctionsManagementClient fnManagementClient = - FunctionsManagementClient.builder().region(region).build(provider); - - try { - System.out.println("Cleaning up"); - - final String vcnName = vcnName(name); - final String igName = igName(name); - final String drtName = drtName(name); - final String subnetName = subnetName(name); - final String appName = applicationName(name); - final String fnName = functionName(name); - - final Vcn vcn = getUniqueVcnByName(vcnClient, compartmentId, vcnName); - - final InternetGateway ig = - getUniqueInternetGatewayByName(vcnClient, compartmentId, vcn.getId(), igName); - - final RouteTable rt = - getUniqueRouteTableByName(vcnClient, compartmentId, vcn.getId(), drtName); - - final Subnet subnet = - getUniqueSubnetByName(vcnClient, compartmentId, vcn.getId(), subnetName); - - final ApplicationSummary application = - getUniqueApplicationByName(fnManagementClient, compartmentId, appName); - - final FunctionSummary fn = - getUniqueFunctionByName(fnManagementClient, application.getId(), fnName); - - if (fn != null) { - deleteFunction(fnManagementClient, fn.getId()); - System.out.println("Deleted function: " + fn.getDisplayName()); - } - - if (application != null) { - deleteApplication(fnManagementClient, application.getId()); - System.out.println("Deleted application: " + application.getDisplayName()); - } - - if (subnet != null) { - deleteSubnet(vcnClient, subnet.getId()); - System.out.println("Deleted subnet: " + subnet.getDisplayName()); - } - - if (rt != null) { - prepareDefaultRouteTableForDelete(vcnClient, rt.getId()); - System.out.println("Cleaned route table: " + subnet.getDisplayName()); - } - - if (ig != null) { - deleteInternetGateway(vcnClient, ig.getId()); - System.out.println("Deleted internet gateway: " + subnet.getDisplayName()); - } - - if (vcn != null) { - deleteVcn(vcnClient, vcn); - System.out.println("Deleted VCN: " + vcn.getDisplayName()); - } - - } finally { - fnManagementClient.close(); - vcnClient.close(); - identityClient.close(); - } - } - - // === OCI Identity Helpers === - - /** - * List the AvailabilityDomains. - * - * @param identityClient the service client to use to fetch the AvailabilityDomains. - * @param compartmentId the OCID of the compartment to check. - * @return the list of AvailabilityDomains. - * @throws Exception - */ - public static List getAvailabilityDomains( - final Identity identityClient, final String compartmentId) throws Exception { - - final ListAvailabilityDomainsResponse listAvailabilityDomainsResponse = - identityClient.listAvailabilityDomains( - ListAvailabilityDomainsRequest.builder() - .compartmentId(compartmentId) - .build()); - - return listAvailabilityDomainsResponse.getItems(); - } - - // === OCI VCN Helpers === - - /** - * Creates a VCN and waits for it to become available to use. - * - * @param vcnClient the service client to use to create the VCN. - * @param compartmentId the OCID of the compartment where the VCN will be created. - * @param displayName the displayName of the VCN. - * @param cidrBlock the CidrBlock allocated for the VCN. - * @return the created VCN. - * @throws Exception - */ - private static Vcn createVcn( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String displayName, - final String cidrBlock) - throws Exception { - - final CreateVcnResponse createVcnResponse = - vcnClient.createVcn( - CreateVcnRequest.builder() - .createVcnDetails( - CreateVcnDetails.builder() - .compartmentId(compartmentId) - .displayName(displayName) - .cidrBlock(cidrBlock) - .build()) - .build()); - - final GetVcnResponse getVcnResponse = - vcnClient - .getWaiters() - .forVcn( - GetVcnRequest.builder() - .vcnId(createVcnResponse.getVcn().getId()) - .build(), - Vcn.LifecycleState.Available) - .execute(); - - return getVcnResponse.getVcn(); - } - - /** - * Gets VCN info of a single uniquely named VCN in the specified compartment. - * - * @param vcnClient the service client to use to query the VCN. - * @param compartmentId of the VCN. - * @param vcnDisplayName of the VCN. - * @return the VCN. - * @throws Exception - */ - public static Vcn getUniqueVcnByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListVcnsRequest listVcnsRequest = - ListVcnsRequest.builder() - .compartmentId(compartmentId) - .displayName(vcnDisplayName) - .build(); - - final ListVcnsResponse listVcnsResponse = vcnClient.listVcns(listVcnsRequest); - - if (listVcnsResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique VCN with name " - + vcnDisplayName - + " in compartment " - + compartmentId); - } - - return listVcnsResponse.getItems().get(0); - } - - /** - * Deletes a VCN and waits for it to be deleted. - * - * @param vcnClient the service client to use to delete the VCN. - * @param vcn the VCN to delete. - * @throws Exception - */ - private static void deleteVcn(final VirtualNetworkClient vcnClient, final Vcn vcn) - throws Exception { - - vcnClient.deleteVcn(DeleteVcnRequest.builder().vcnId(vcn.getId()).build()); - - vcnClient - .getWaiters() - .forVcn( - GetVcnRequest.builder().vcnId(vcn.getId()).build(), - Vcn.LifecycleState.Terminated) - .execute(); - } - - // === OCI Internet Gateway Helpers === - - private static InternetGateway createInternetGateway( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String displayName, - final String vcnId) - throws Exception { - - final CreateInternetGatewayResponse createInternetGatewayResponse = - vcnClient.createInternetGateway( - CreateInternetGatewayRequest.builder() - .createInternetGatewayDetails( - CreateInternetGatewayDetails.builder() - .compartmentId(compartmentId) - .displayName(displayName) - .vcnId(vcnId) - .isEnabled(true) - .build()) - .build()); - - vcnClient - .getWaiters() - .forInternetGateway( - GetInternetGatewayRequest.builder() - .igId(createInternetGatewayResponse.getInternetGateway().getId()) - .build(), - InternetGateway.LifecycleState.Available) - .execute(); - - return createInternetGatewayResponse.getInternetGateway(); - } - - /** - * Gets InternetGateway info of a single uniquely named InternetGateway in the specified - * compartment. - * - * @param vcnClient the service client to use to query the InternetGateway. - * @param compartmentId of the InternetGateway. - * @param vcnId of the InternetGateway's associated VCN. - * @param igDisplayName of the InternetGateway. - * @return the InternetGateway. - * @throws Exception - */ - public static InternetGateway getUniqueInternetGatewayByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String igDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListInternetGatewaysRequest listInternetGatewaysRequest = - ListInternetGatewaysRequest.builder() - .compartmentId(compartmentId) - .vcnId(vcnId) - .displayName(igDisplayName) - .build(); - - final ListInternetGatewaysResponse listInternetGatewaysResponse = - vcnClient.listInternetGateways(listInternetGatewaysRequest); - - if (listInternetGatewaysResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique InternetGateway with name " - + igDisplayName - + " in compartment " - + compartmentId); - } - - return listInternetGatewaysResponse.getItems().get(0); - } - - /** - * Deletes a InternetGateway and waits for it to be deleted. - * - * @param vcnClient the service client to use to delete the InternetGateway. - * @param igId the InternetGateway to delete. - * @throws Exception - */ - private static void deleteInternetGateway( - final VirtualNetworkClient vcnClient, final String igId) throws Exception { - - vcnClient.deleteInternetGateway(DeleteInternetGatewayRequest.builder().igId(igId).build()); - - vcnClient - .getWaiters() - .forInternetGateway( - GetInternetGatewayRequest.builder().igId(igId).build(), - InternetGateway.LifecycleState.Terminated) - .execute(); - } - - // === OCI Route Table Helpers === - - /** - * Configure the default RouteTable of the specified InternetGateway to ensure it contains a - * single outbound route for all traffic. - * - *

NB: You should restrict these routes further if you keep this piece of OCI infrastructure. - * - * @param vcnClient the service client to use to query a RouteTable. - * @param compartmentId of the RouteTable. - * @param vcnId of the RouteTable's associated VCN. - * @param igId of the RouteTable's associated InternetGateway. - * @param drtDisplayName of the RouteTable. - * @return the InternetGateway. - * @throws Exception - */ - private static RouteTable configureInternetGateway( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String igId, - final String rtDisplayName) - throws Exception { - - final RouteTable defaultRouteTable = - getUniqueRouteTableByName(vcnClient, compartmentId, vcnId, rtDisplayName); - - final String destinationCidr = "0.0.0.0/0"; - final List routeRules = defaultRouteTable.getRouteRules(); - routeRules.add( - RouteRule.builder() - .cidrBlock(destinationCidr) - .destination(destinationCidr) - .destinationType(DestinationType.valueOf("CidrBlock")) - .networkEntityId(igId) - .build()); - - final UpdateRouteTableResponse updateRouteTableResponse = - vcnClient.updateRouteTable( - UpdateRouteTableRequest.builder() - .rtId(defaultRouteTable.getId()) - .updateRouteTableDetails( - UpdateRouteTableDetails.builder() - .routeRules(routeRules) - .build()) - .build()); - - return updateRouteTableResponse.getRouteTable(); - } - - /** - * Gets RouteTable info of a single uniquely named RouteTable in the specified compartment. - * - * @param vcnClient the service client to use to query a RouteTable. - * @param compartmentId of the RouteTable. - * @param vcnId of the RouteTable's associated VCN. - * @param rtDisplayName of the RouteTable. - * @return the InternetGateway. - * @throws Exception - */ - public static RouteTable getUniqueRouteTableByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String rtDisplayName) - throws Exception { - - // Find the route table in a specific compartment - final ListRouteTablesRequest listRouteTablesRequest = - ListRouteTablesRequest.builder() - .compartmentId(compartmentId) - .vcnId(vcnId) - .displayName(rtDisplayName) - .build(); - - final ListRouteTablesResponse listRouteTablesResponse = - vcnClient.listRouteTables(listRouteTablesRequest); - - if (listRouteTablesResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique RouteTable with name " - + rtDisplayName - + " in compartment " - + compartmentId); - } - - return listRouteTablesResponse.getItems().get(0); - } - - /** - * Prepares a DefaultRouteTable for deletion by deleting all RouteRules. - * - * @param vcnClient the service client to use to delete the RouteTable. - * @param rtId the RouteTable to delete. - * @throws Exception - */ - private static void prepareDefaultRouteTableForDelete( - final VirtualNetworkClient vcnClient, final String rtId) throws Exception { - - vcnClient.updateRouteTable( - UpdateRouteTableRequest.builder() - .rtId(rtId) - .updateRouteTableDetails( - UpdateRouteTableDetails.builder() - .routeRules(new ArrayList()) - .build()) - .build()); - } - - // === OCI Subnet Helpers === - - /** - * Creates a subnet in a VCN and waits for the subnet to become available to use. - * - * @param vcnClient the service client to use to create the subnet. - * @param compartmentId the OCID of the compartment which owns the VCN. - * @param vcnId the ID of the VCN which will own the subnet. - * @param displayName the display name of the subnet. - * @param availabilityDomainName the availability domain where the subnet will be created. - * @param subnetCidrBlock the subnet CidrBlock allocated from the parent VCN range. - * @return the created subnet. - * @throws Exception - */ - private static Subnet createSubnet( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String displayName, - final String availabilityDomain, - final String subnetCidrBlock) - throws Exception { - - // Create the subnet - final CreateSubnetResponse createSubnetResponse = - vcnClient.createSubnet( - CreateSubnetRequest.builder() - .createSubnetDetails( - CreateSubnetDetails.builder() - .availabilityDomain(availabilityDomain) - .compartmentId(compartmentId) - .displayName(displayName) - .cidrBlock(subnetCidrBlock) - .vcnId(vcnId) - .build()) - .build()); - - // Wait for the subnet to be active - final GetSubnetResponse getSubnetResponse = - vcnClient - .getWaiters() - .forSubnet( - GetSubnetRequest.builder() - .subnetId(createSubnetResponse.getSubnet().getId()) - .build(), - Subnet.LifecycleState.Available) - .execute(); - - return getSubnetResponse.getSubnet(); - } - - /** - * Gets Subnet info of a single uniquely named VCN in the specified compartment. - * - * @param vcnClient the service client to use to query the Subnet. - * @param compartmentId of the Subnet. - * @param vcnId of the Subnet. - * @param subnetDisplayName of the Subnet. - * @return the Subnet. - * @throws Exception - */ - public static Subnet getUniqueSubnetByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String subnetDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListSubnetsRequest listSubnetsRequest = - ListSubnetsRequest.builder() - .compartmentId(compartmentId) - .vcnId(vcnId) - .displayName(subnetDisplayName) - .build(); - - final ListSubnetsResponse listSubnetsResponse = vcnClient.listSubnets(listSubnetsRequest); - - if (listSubnetsResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique subnet with name " - + subnetDisplayName - + " in compartment " - + compartmentId); - } - - return listSubnetsResponse.getItems().get(0); - } - - /** - * Deletes a subnet and waits for it to be deleted. - * - * @param vcnClient the service client to use to delete the subnet. - * @param subnetId the subnet to delete. - * @throws Exception - */ - private static void deleteSubnet(final VirtualNetworkClient vcnClient, final String subnetId) - throws Exception { - - final int DELETE_SUBNET_ATTEMPTS = 5; - /* - * Sometimes we can't delete the subnet straight after a mount target has been deleted - * as network resources still need to clear. If we get a conflict, try a few times before - * bailing out. - */ - int numAttempts = 0; - while (true) { - try { - vcnClient.deleteSubnet(DeleteSubnetRequest.builder().subnetId(subnetId).build()); - break; - } catch (BmcException e) { - numAttempts++; - if (e.getStatusCode() == 409 && numAttempts < DELETE_SUBNET_ATTEMPTS) { - Thread.sleep(10000L); - } else { - throw e; - } - } - } - // Wait for 'Terminated' state. - vcnClient - .getWaiters() - .forSubnet( - GetSubnetRequest.builder().subnetId(subnetId).build(), - Subnet.LifecycleState.Terminated) - .execute(); - } - - // === OCI Application Helpers === - - /** - * Creates an Application and waits for the it to become available to use. - * - * @param fnManagementClient the service client to use to create the application. - * @param compartmentId the OCID of the compartment which owns the Application. - * @param displayName the display name ofr the created Application. - * @param subnetIds a List of subnets (in different ADs) that will expose the function. - * @return the created application. - * @throws Exception if there is an error waiting on the application to become available to use. - */ - private static Application createApplication( - final FunctionsManagementClient fnManagementClient, - final String compartmentId, - final String displayName, - final List subnetIds) - throws Exception { - - // Create a new Application. - final CreateApplicationResponse createApplicationResponse = - fnManagementClient.createApplication( - CreateApplicationRequest.builder() - .createApplicationDetails( - CreateApplicationDetails.builder() - .compartmentId(compartmentId) - .displayName(displayName) - .subnetIds(subnetIds) - .build()) - .build()); - - // Wait for Application to be in 'Active' state. - final GetApplicationResponse getApplicationResponse = - fnManagementClient - .getWaiters() - .forApplication( - GetApplicationRequest.builder() - .applicationId( - createApplicationResponse.getApplication().getId()) - .build(), - Application.LifecycleState.Active) - .execute(); - - return getApplicationResponse.getApplication(); - } - - /** - * Gets the Application info of a single uniquely named Application in the specified - * compartment. - * - * @param fnManagementClient the service client to use to get the Application information. - * @param compartmentId of the application. - * @param applicationDisplayName of the application. - * @return the ApplicationSummary. - * @throws Exception - */ - public static ApplicationSummary getUniqueApplicationByName( - final FunctionsManagementClient fnManagementClient, - final String compartmentId, - final String applicationDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListApplicationsRequest listApplicationsRequest = - ListApplicationsRequest.builder() - .displayName(applicationDisplayName) - .compartmentId(compartmentId) - .build(); - - final ListApplicationsResponse resp = - fnManagementClient.listApplications(listApplicationsRequest); - - if (resp.getItems().size() != 1) { - throw new Exception( - "Could not find unique application with name " - + applicationDisplayName - + " in compartment " - + compartmentId); - } - - final ApplicationSummary application = resp.getItems().get(0); - return application; - } - - /** - * Deletes an Application and waits for it to be deleted. - * - * @param fnManagementClient the service client to use to delete the Application. - * @param applicationId the Application to delete. - * @throws Exception if there is an error waiting on the Application to be deleted. - */ - private static void deleteApplication( - final FunctionsManagementClient fnManagementClient, final String applicationId) - throws Exception { - - // Delete the specified Application - fnManagementClient.deleteApplication( - DeleteApplicationRequest.builder().applicationId(applicationId).build()); - - // Wait for the 'Deleted' status. - fnManagementClient - .getWaiters() - .forApplication( - GetApplicationRequest.builder().applicationId(applicationId).build(), - Application.LifecycleState.Deleted) - .execute(); - } - - // === OCI Function Helpers === - - /** - * Creates a Function and waits for the it to become available to use. - * - * @param fnManagementClient the service client to use to create the Application. - * @param applicationId the OCID of the Application which owns the Function. - * @param displayName the display name of created Function. - * @param image an accessible OCI Registry image implementing the function to be executed. - * @param memoryInMBs the maximum amount of memory available (128, 256, 512, 1024) to the - * function in MB. - * @param timeoutInSeconds the maximum amount of time a function can execute (30 - 120) in - * seconds. - * @return the created Function. - * @throws Exception - */ - private static Function createFunction( - final FunctionsManagementClient fnManagementClient, - final String applicationId, - final String displayName, - final String image, - final long memoryInMBs, - final int timeoutInSeconds) - throws Exception { - - // Create a new Function. - final CreateFunctionResponse createFunctionResponse = - fnManagementClient.createFunction( - CreateFunctionRequest.builder() - .createFunctionDetails( - CreateFunctionDetails.builder() - .applicationId(applicationId) - .displayName(displayName) - .image(image) - .memoryInMBs(memoryInMBs) - .timeoutInSeconds(timeoutInSeconds) - .build()) - .build()); - - // Wait for Function to be in 'Active' state. - final GetFunctionResponse getFunctionResponse = - fnManagementClient - .getWaiters() - .forFunction( - GetFunctionRequest.builder() - .functionId(createFunctionResponse.getFunction().getId()) - .build(), - Function.LifecycleState.Active) - .execute(); - - return getFunctionResponse.getFunction(); - } - - /** - * Gets Function information. This is an expensive operation and the results should be cached. - * - * @param fnManagementClient the service client to use to get the Function information. - * @param compartmentId of the application and function. - * @param applicationDisplayName of the application. - * @param functionDisplayName of the function. - * @return the FunctionSummary. - * @throws Exception - */ - public static FunctionSummary getUniqueFunctionByName( - final FunctionsManagementClient fnManagementClient, - final String compartmentId, - final String applicationDisplayName, - final String functionDisplayName) - throws Exception { - final ApplicationSummary application = - getUniqueApplicationByName( - fnManagementClient, compartmentId, applicationDisplayName); - return getUniqueFunctionByName( - fnManagementClient, application.getId(), functionDisplayName); - } - - /** - * Gets Function information. This is an expensive operation and the results should be cached. - * - * @param fnManagementClient the service client to use to get the Function information. - * @param applicationId of the function to find. - * @param functionDisplayName of the function to find. - * @return the FunctionSummary. - * @throws Exception - */ - public static FunctionSummary getUniqueFunctionByName( - final FunctionsManagementClient fnManagementClient, - final String applicationId, - final String functionDisplayName) - throws Exception { - - final ListFunctionsRequest listFunctionsRequest = - ListFunctionsRequest.builder() - .applicationId(applicationId) - .displayName(functionDisplayName) - .build(); - - final ListFunctionsResponse listFunctionsResponse = - fnManagementClient.listFunctions(listFunctionsRequest); - - if (listFunctionsResponse.getItems().size() != 1) { - throw new Exception( - "Could not find function with name " - + functionDisplayName - + " in application " - + applicationId); - } - - return listFunctionsResponse.getItems().get(0); - } - - /** - * Deletes a Function and waits for it to be deleted. - * - * @param fnManagementClient the service client to use to delete the Function. - * @param functionId the Function to delete. - * @throws Exception - */ - private static void deleteFunction( - final FunctionsManagementClient fnManagementClient, final String functionId) - throws Exception { - - // Delete the specified Function. - fnManagementClient.deleteFunction( - DeleteFunctionRequest.builder().functionId(functionId).build()); - - // Wait for the 'Deleted' status. - fnManagementClient - .getWaiters() - .forFunction( - GetFunctionRequest.builder().functionId(functionId).build(), - Function.LifecycleState.Deleted) - .execute(); - } - - /** - * Invokes a function. - * - * @param fnInvokeClient the service client to use to delete the Function. - * @param function the Function to invoke. - * @param payload the payload to pass to the function. - */ - private static String invokeFunction( - final FunctionsInvokeClient fnInvokeClient, - final FunctionSummary function, - final String payload) - throws Exception { - String response; - try { - System.err.println("Invoking function endpoint - " + function.getInvokeEndpoint()); - - // Configure the client to use the assigned function endpoint. - fnInvokeClient.setEndpoint(function.getInvokeEndpoint()); - final InvokeFunctionRequest invokeFunctionRequest = - InvokeFunctionRequest.builder() - .functionId(function.getId()) - .invokeFunctionBody( - StreamUtils.createByteArrayInputStream(payload.getBytes())) - .build(); - - // Invoke the function! - final InvokeFunctionResponse invokeFunctionResponse = - fnInvokeClient.invokeFunction(invokeFunctionRequest); - - // Handle the response. - response = - StreamUtils.toString( - invokeFunctionResponse.getInputStream(), StandardCharsets.UTF_8); - - } catch (final Exception e) { - e.printStackTrace(); - System.err.println("Failed to invoke function: " + e); - throw e; - } - - return response; - } - - // === Utility Helpers === - - private static String vcnName(final String name) { - return name + "-vcn"; - } - - private static String igName(final String name) { - return name + "-ig"; - } - - private static String drtName(final String name) { - return "Default Route Table for " + name + "-vcn"; - } - - private static String subnetName(final String name) { - return name + "-subnet"; - } - - private static String applicationName(final String name) { - return name + "-app"; - } - - private static String functionName(final String name) { - return name + "-fn"; - } -} +// this test will be enabled once sdk is generated and released: DEXREQ-9017 + +// import com.oracle.bmc.ConfigFileReader; +// import com.oracle.bmc.Region; +// import com.oracle.bmc.auth.AuthenticationDetailsProvider; +// import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; +// import com.oracle.bmc.core.VirtualNetworkClient; +// import com.oracle.bmc.core.model.CreateInternetGatewayDetails; +// import com.oracle.bmc.core.model.CreateSubnetDetails; +// import com.oracle.bmc.core.model.CreateVcnDetails; +// import com.oracle.bmc.core.model.InternetGateway; +// import com.oracle.bmc.core.model.RouteRule; +// import com.oracle.bmc.core.model.RouteRule.DestinationType; +// import com.oracle.bmc.core.model.RouteTable; +// import com.oracle.bmc.core.model.Subnet; +// import com.oracle.bmc.core.model.UpdateRouteTableDetails; +// import com.oracle.bmc.core.model.Vcn; +// import com.oracle.bmc.core.requests.CreateInternetGatewayRequest; +// import com.oracle.bmc.core.requests.CreateSubnetRequest; +// import com.oracle.bmc.core.requests.CreateVcnRequest; +// import com.oracle.bmc.core.requests.DeleteInternetGatewayRequest; +// import com.oracle.bmc.core.requests.DeleteSubnetRequest; +// import com.oracle.bmc.core.requests.DeleteVcnRequest; +// import com.oracle.bmc.core.requests.GetInternetGatewayRequest; +// import com.oracle.bmc.core.requests.GetSubnetRequest; +// import com.oracle.bmc.core.requests.GetVcnRequest; +// import com.oracle.bmc.core.requests.ListInternetGatewaysRequest; +// import com.oracle.bmc.core.requests.ListRouteTablesRequest; +// import com.oracle.bmc.core.requests.ListSubnetsRequest; +// import com.oracle.bmc.core.requests.ListVcnsRequest; +// import com.oracle.bmc.core.requests.UpdateRouteTableRequest; +// import com.oracle.bmc.core.responses.CreateInternetGatewayResponse; +// import com.oracle.bmc.core.responses.CreateSubnetResponse; +// import com.oracle.bmc.core.responses.CreateVcnResponse; +// import com.oracle.bmc.core.responses.GetSubnetResponse; +// import com.oracle.bmc.core.responses.GetVcnResponse; +// import com.oracle.bmc.core.responses.ListInternetGatewaysResponse; +// import com.oracle.bmc.core.responses.ListRouteTablesResponse; +// import com.oracle.bmc.core.responses.ListSubnetsResponse; +// import com.oracle.bmc.core.responses.ListVcnsResponse; +// import com.oracle.bmc.core.responses.UpdateRouteTableResponse; +// import com.oracle.bmc.functions.FunctionsInvokeClient; +// import com.oracle.bmc.functions.FunctionsManagementClient; +// import com.oracle.bmc.functions.model.Application; +// import com.oracle.bmc.functions.model.ApplicationSummary; +// import com.oracle.bmc.functions.model.CreateApplicationDetails; +// import com.oracle.bmc.functions.model.CreateFunctionDetails; +// import com.oracle.bmc.functions.model.Function; +// import com.oracle.bmc.functions.model.FunctionSummary; +// import com.oracle.bmc.functions.requests.CreateApplicationRequest; +// import com.oracle.bmc.functions.requests.CreateFunctionRequest; +// import com.oracle.bmc.functions.requests.DeleteApplicationRequest; +// import com.oracle.bmc.functions.requests.DeleteFunctionRequest; +// import com.oracle.bmc.functions.requests.GetApplicationRequest; +// import com.oracle.bmc.functions.requests.GetFunctionRequest; +// import com.oracle.bmc.functions.requests.InvokeFunctionRequest; +// import com.oracle.bmc.functions.requests.ListApplicationsRequest; +// import com.oracle.bmc.functions.requests.ListFunctionsRequest; +// import com.oracle.bmc.functions.responses.CreateApplicationResponse; +// import com.oracle.bmc.functions.responses.CreateFunctionResponse; +// import com.oracle.bmc.functions.responses.GetApplicationResponse; +// import com.oracle.bmc.functions.responses.GetFunctionResponse; +// import com.oracle.bmc.functions.responses.InvokeFunctionResponse; +// import com.oracle.bmc.functions.responses.ListApplicationsResponse; +// import com.oracle.bmc.functions.responses.ListFunctionsResponse; +// import com.oracle.bmc.identity.Identity; +// import com.oracle.bmc.identity.IdentityClient; +// import com.oracle.bmc.identity.model.AvailabilityDomain; +// import com.oracle.bmc.identity.requests.ListAvailabilityDomainsRequest; +// import com.oracle.bmc.identity.responses.ListAvailabilityDomainsResponse; +// import com.oracle.bmc.model.BmcException; +// import com.oracle.bmc.util.StreamUtils; +// +// import java.nio.charset.StandardCharsets; +// import java.util.ArrayList; +// import java.util.List; +// +// public class InvokeFunctionExample { +// +// static final Region DEFAULT_REGION = Region.US_PHOENIX_1; +// +// static final String SETUP = "setup"; +// static final String INVOKE = "invoke"; +// static final String TEARDOWN = "teardown"; +// +// /** +// * This is a basic example of how to register and invoke a serverless Function on OCI using +// the +// * Java SDK. +// * +// *

The example has some pre-requisites. In particular you will need to create a Function +// * image and publish it to OCI Registry. The best way to do this is with the 'Fn CLI': +// * +// *

1. Install Fn CLI : https://github.com/fnproject/cli +// * +// *

2. Create Function - Quick Guide : https://github.com/fnproject/fn/blob/master/README.md +// * +// *

This sample will do following things: +// * +// *

1. Create VCN and subnets - Provide an endpoint on which your function can be invoked. +// * +// *

2. Create Application and Function - Register and configure your function. +// * +// *

3. Invoke Function - How your function can be invoked. +// * +// *

4. Clean-up - Tidy up the resources created above. +// * +// *

NB: To simplify things, this example is hardcoded to use the 'us-phoenix-1' OCI region. +// * +// *

NB: Currently, after invoking a function we must wait up to 30 minutes before clearing +// * down any supporting Subnets and VCN. +// * +// * @param args Arguments to provide to the example. The following arguments are expected: +// *

    +// *
  • The operation to perform - 'setup', 'invoke' or 'teardown'. +// *
  • The OCID of the compartment where the function and associated resources will be +// * created. +// *
  • A valid OCI Registry function image. +// *
  • The payload to be sent to the function on invocation (optional). +// *
+// * +// * @throws Exception +// */ +// public static void main(String[] args) throws Exception { +// if (args.length < 3) { +// throw new IllegalArgumentException( +// "Invalid number of arguments provided to the script."); +// } +// +// // Handle commands: {setup, invoke, teardown} +// final String command = args[0]; +// if (!command.equalsIgnoreCase(SETUP) +// && !command.equalsIgnoreCase(INVOKE) +// && !command.equalsIgnoreCase(TEARDOWN)) { +// throw new Exception( +// "Please provide 'setup', 'invoke' or 'teardown' as the first argument."); +// } +// +// // We need a target compartment. +// final String compartmentId = args[1]; +// +// // We need an accessible image in the Phoenix region to invoke. +// // e.g. phx.ocir.io/tenancy-name/registry/imagename:version +// final String image = args[2]; +// +// // All resources will be prefixed with this name. +// final String name = "oci-java-sdk-function-example"; +// +// // The default region to use. +// final Region region = DEFAULT_REGION; +// +// // Depending on the image chosen a payload can be specified. +// final String payload = (args.length >= 4) ? args[3] : ""; +// +// // Configure Auth +// final String configurationFilePath = "~/.oci/config"; +// final String profile = "DEFAULT"; +// // Configuring the AuthenticationDetailsProvider. It's assuming there is a default OCI +// // config file +// // "~/.oci/config", and a profile in that config with the name "DEFAULT". Make changes to +// // the following +// // line if needed and use ConfigFileReader.parse(configurationFilePath, profile); +// +// final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault(); +// +// final AuthenticationDetailsProvider provider = +// new ConfigFileAuthenticationDetailsProvider(configFile); +// +// try { +// if (command.equalsIgnoreCase(SETUP)) { +// setupResources(provider, region, compartmentId, name, image); +// } +// +// if (command.equalsIgnoreCase(INVOKE)) { +// invokeFunction(provider, region, compartmentId, name, payload); +// } +// +// if (command.equalsIgnoreCase(TEARDOWN)) { +// teardownResources(provider, region, compartmentId, name); +// } +// } catch (Exception e) { +// e.printStackTrace(); +// System.err.println("Error: " + e); +// } +// } +// +// /** +// * Create all the OCI and Fn resources required to invoke a function. +// * +// * @param provider the OCI credentials provider. +// * @param region the OCI region in which to create the required resources. +// * @param compartmentId the compartment in which to create the required resources. +// * @param name a name prefix to easily identify the resources. +// * @param image a valid OCI Registry image for the function. +// * @throws Exception +// */ +// public static void setupResources( +// final AuthenticationDetailsProvider provider, +// final Region region, +// final String compartmentId, +// final String name, +// final String image) +// throws Exception { +// +// final Identity identityClient = IdentityClient.builder().region(region).build(provider); +// +// final VirtualNetworkClient vcnClient = +// VirtualNetworkClient.builder().region(region).build(provider); +// +// final FunctionsManagementClient fnManagementClient = +// FunctionsManagementClient.builder().region(region).build(provider); +// +// try { +// // 1. A list of AvailabilityDomains are required to determine where to host each +// // subnet. +// final List availabilityDomains = +// getAvailabilityDomains(identityClient, compartmentId); +// final AvailabilityDomain ad = availabilityDomains.get(0); +// System.out.println("Using availability domain: " + ad.getName()); +// +// // 2. A VCN is required to host subnets. +// final String vcnDisplayName = vcnName(name); +// final String vcnCidrBlock = "10.0.0.0/16"; +// final Vcn vcn = createVcn(vcnClient, compartmentId, vcnDisplayName, vcnCidrBlock); +// System.out.println("Created VCN: " + vcn.getDisplayName()); +// +// // 3. An Internet Gateway is required to enable the VCN to talk to the wider world. +// final String igDisplayName = igName(name); +// final InternetGateway ig = +// createInternetGateway(vcnClient, compartmentId, igDisplayName, vcn.getId()); +// +// // 4. We must configure the VCN's traffic to be routed through the IG. +// final String drtDisplayName = drtName(name); +// configureInternetGateway( +// vcnClient, compartmentId, vcn.getId(), ig.getId(), drtDisplayName); +// +// // 5. A subnet is required to expose and be able invoke the function. +// // In multiple AD regions, subnets can be created in multiple ADs to provide +// // redundancy. +// final String subnetDisplayName = subnetName(name); +// final String subnetCidrBlock = "10.0.0.0/24"; +// final Subnet subnet = +// createSubnet( +// vcnClient, +// compartmentId, +// vcn.getId(), +// subnetDisplayName, +// ad.getName(), +// subnetCidrBlock); +// System.out.println("Created VCN subnet: " + subnet.getDisplayName()); +// +// // 6. Create an Application to host and manage the function(s). +// final String appDisplayName = applicationName(name); +// final List subnetIds = new ArrayList<>(); +// subnetIds.add(subnet.getId()); +// final Application app = +// createApplication(fnManagementClient, compartmentId, appDisplayName, +// subnetIds); +// System.out.println("Created Application: " + app.getDisplayName()); +// +// // 7. Create a single Function, set its execution image and limits. +// final String fnDisplayName = functionName(name); +// final long memoryInMBs = 128L; +// final int timeoutInSeconds = 30; +// final Function fn = +// createFunction( +// fnManagementClient, +// app.getId(), +// fnDisplayName, +// image, +// memoryInMBs, +// timeoutInSeconds); +// System.out.println("Created Function: " + fn.getDisplayName()); +// +// } finally { +// fnManagementClient.close(); +// vcnClient.close(); +// identityClient.close(); +// } +// } +// +// /** +// * Invoke a function. +// * +// * @param provider the OCI credentials provider. +// * @param region the OCI region in which to create the required resources. +// * @param compartmentId the compartment in which to created the required resources. +// * @param name a name prefix to easily identify the resources. +// * @param payload the payload to be sent to the function on invocation. +// * @throws Exception +// */ +// public static void invokeFunction( +// final AuthenticationDetailsProvider provider, +// final Region region, +// final String compartmentId, +// final String name, +// final String payload) +// throws Exception { +// +// final FunctionsManagementClient fnManagementClient = +// FunctionsManagementClient.builder().region(region).build(provider); +// +// final FunctionsInvokeClient fnInvokeClient = +// FunctionsInvokeClient.builder().build(provider); +// +// try { +// // Invoke the function! +// final String appName = applicationName(name); +// final String fnName = functionName(name); +// final FunctionSummary fn = +// getUniqueFunctionByName(fnManagementClient, compartmentId, appName, fnName); +// +// final String response = invokeFunction(fnInvokeClient, fn, payload); +// if (response != null) { +// System.out.println("Response from function: " + response); +// } +// } finally { +// fnInvokeClient.close(); +// fnManagementClient.close(); +// } +// } +// +// /** +// * Remove all resources created by the 'setup' operation. +// * +// *

NB: Resources can only be removed 30 minutes after the last Function invocation. +// * +// * @param provider the OCI credentials provider. +// * @param region the OCI region in which to create the required resources. +// * @param compartmentId the compartment in which to created the required resources. +// * @param name a name prefix to easily identify the resources. +// * @throws Exception +// */ +// public static void teardownResources( +// final AuthenticationDetailsProvider provider, +// final Region region, +// final String compartmentId, +// final String name) +// throws Exception { +// +// final Identity identityClient = IdentityClient.builder().region(region).build(provider); +// +// final VirtualNetworkClient vcnClient = +// VirtualNetworkClient.builder().region(region).build(provider); +// +// final FunctionsManagementClient fnManagementClient = +// FunctionsManagementClient.builder().region(region).build(provider); +// +// try { +// System.out.println("Cleaning up"); +// +// final String vcnName = vcnName(name); +// final String igName = igName(name); +// final String drtName = drtName(name); +// final String subnetName = subnetName(name); +// final String appName = applicationName(name); +// final String fnName = functionName(name); +// +// final Vcn vcn = getUniqueVcnByName(vcnClient, compartmentId, vcnName); +// +// final InternetGateway ig = +// getUniqueInternetGatewayByName(vcnClient, compartmentId, vcn.getId(), igName); +// +// final RouteTable rt = +// getUniqueRouteTableByName(vcnClient, compartmentId, vcn.getId(), drtName); +// +// final Subnet subnet = +// getUniqueSubnetByName(vcnClient, compartmentId, vcn.getId(), subnetName); +// +// final ApplicationSummary application = +// getUniqueApplicationByName(fnManagementClient, compartmentId, appName); +// +// final FunctionSummary fn = +// getUniqueFunctionByName(fnManagementClient, application.getId(), fnName); +// +// if (fn != null) { +// deleteFunction(fnManagementClient, fn.getId()); +// System.out.println("Deleted function: " + fn.getDisplayName()); +// } +// +// if (application != null) { +// deleteApplication(fnManagementClient, application.getId()); +// System.out.println("Deleted application: " + application.getDisplayName()); +// } +// +// if (subnet != null) { +// deleteSubnet(vcnClient, subnet.getId()); +// System.out.println("Deleted subnet: " + subnet.getDisplayName()); +// } +// +// if (rt != null) { +// prepareDefaultRouteTableForDelete(vcnClient, rt.getId()); +// System.out.println("Cleaned route table: " + subnet.getDisplayName()); +// } +// +// if (ig != null) { +// deleteInternetGateway(vcnClient, ig.getId()); +// System.out.println("Deleted internet gateway: " + subnet.getDisplayName()); +// } +// +// if (vcn != null) { +// deleteVcn(vcnClient, vcn); +// System.out.println("Deleted VCN: " + vcn.getDisplayName()); +// } +// +// } finally { +// fnManagementClient.close(); +// vcnClient.close(); +// identityClient.close(); +// } +// } +// +// // === OCI Identity Helpers === +// +// /** +// * List the AvailabilityDomains. +// * +// * @param identityClient the service client to use to fetch the AvailabilityDomains. +// * @param compartmentId the OCID of the compartment to check. +// * @return the list of AvailabilityDomains. +// * @throws Exception +// */ +// public static List getAvailabilityDomains( +// final Identity identityClient, final String compartmentId) throws Exception { +// +// final ListAvailabilityDomainsResponse listAvailabilityDomainsResponse = +// identityClient.listAvailabilityDomains( +// ListAvailabilityDomainsRequest.builder() +// .compartmentId(compartmentId) +// .build()); +// +// return listAvailabilityDomainsResponse.getItems(); +// } +// +// // === OCI VCN Helpers === +// +// /** +// * Creates a VCN and waits for it to become available to use. +// * +// * @param vcnClient the service client to use to create the VCN. +// * @param compartmentId the OCID of the compartment where the VCN will be created. +// * @param displayName the displayName of the VCN. +// * @param cidrBlock the CidrBlock allocated for the VCN. +// * @return the created VCN. +// * @throws Exception +// */ +// private static Vcn createVcn( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String displayName, +// final String cidrBlock) +// throws Exception { +// +// final CreateVcnResponse createVcnResponse = +// vcnClient.createVcn( +// CreateVcnRequest.builder() +// .createVcnDetails( +// CreateVcnDetails.builder() +// .compartmentId(compartmentId) +// .displayName(displayName) +// .cidrBlock(cidrBlock) +// .build()) +// .build()); +// +// final GetVcnResponse getVcnResponse = +// vcnClient +// .getWaiters() +// .forVcn( +// GetVcnRequest.builder() +// .vcnId(createVcnResponse.getVcn().getId()) +// .build(), +// Vcn.LifecycleState.Available) +// .execute(); +// +// return getVcnResponse.getVcn(); +// } +// +// /** +// * Gets VCN info of a single uniquely named VCN in the specified compartment. +// * +// * @param vcnClient the service client to use to query the VCN. +// * @param compartmentId of the VCN. +// * @param vcnDisplayName of the VCN. +// * @return the VCN. +// * @throws Exception +// */ +// public static Vcn getUniqueVcnByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListVcnsRequest listVcnsRequest = +// ListVcnsRequest.builder() +// .compartmentId(compartmentId) +// .displayName(vcnDisplayName) +// .build(); +// +// final ListVcnsResponse listVcnsResponse = vcnClient.listVcns(listVcnsRequest); +// +// if (listVcnsResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique VCN with name " +// + vcnDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listVcnsResponse.getItems().get(0); +// } +// +// /** +// * Deletes a VCN and waits for it to be deleted. +// * +// * @param vcnClient the service client to use to delete the VCN. +// * @param vcn the VCN to delete. +// * @throws Exception +// */ +// private static void deleteVcn(final VirtualNetworkClient vcnClient, final Vcn vcn) +// throws Exception { +// +// vcnClient.deleteVcn(DeleteVcnRequest.builder().vcnId(vcn.getId()).build()); +// +// vcnClient +// .getWaiters() +// .forVcn( +// GetVcnRequest.builder().vcnId(vcn.getId()).build(), +// Vcn.LifecycleState.Terminated) +// .execute(); +// } +// +// // === OCI Internet Gateway Helpers === +// +// private static InternetGateway createInternetGateway( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String displayName, +// final String vcnId) +// throws Exception { +// +// final CreateInternetGatewayResponse createInternetGatewayResponse = +// vcnClient.createInternetGateway( +// CreateInternetGatewayRequest.builder() +// .createInternetGatewayDetails( +// CreateInternetGatewayDetails.builder() +// .compartmentId(compartmentId) +// .displayName(displayName) +// .vcnId(vcnId) +// .isEnabled(true) +// .build()) +// .build()); +// +// vcnClient +// .getWaiters() +// .forInternetGateway( +// GetInternetGatewayRequest.builder() +// .igId(createInternetGatewayResponse.getInternetGateway().getId()) +// .build(), +// InternetGateway.LifecycleState.Available) +// .execute(); +// +// return createInternetGatewayResponse.getInternetGateway(); +// } +// +// /** +// * Gets InternetGateway info of a single uniquely named InternetGateway in the specified +// * compartment. +// * +// * @param vcnClient the service client to use to query the InternetGateway. +// * @param compartmentId of the InternetGateway. +// * @param vcnId of the InternetGateway's associated VCN. +// * @param igDisplayName of the InternetGateway. +// * @return the InternetGateway. +// * @throws Exception +// */ +// public static InternetGateway getUniqueInternetGatewayByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String igDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListInternetGatewaysRequest listInternetGatewaysRequest = +// ListInternetGatewaysRequest.builder() +// .compartmentId(compartmentId) +// .vcnId(vcnId) +// .displayName(igDisplayName) +// .build(); +// +// final ListInternetGatewaysResponse listInternetGatewaysResponse = +// vcnClient.listInternetGateways(listInternetGatewaysRequest); +// +// if (listInternetGatewaysResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique InternetGateway with name " +// + igDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listInternetGatewaysResponse.getItems().get(0); +// } +// +// /** +// * Deletes a InternetGateway and waits for it to be deleted. +// * +// * @param vcnClient the service client to use to delete the InternetGateway. +// * @param igId the InternetGateway to delete. +// * @throws Exception +// */ +// private static void deleteInternetGateway( +// final VirtualNetworkClient vcnClient, final String igId) throws Exception { +// +// +// vcnClient.deleteInternetGateway(DeleteInternetGatewayRequest.builder().igId(igId).build()); +// +// vcnClient +// .getWaiters() +// .forInternetGateway( +// GetInternetGatewayRequest.builder().igId(igId).build(), +// InternetGateway.LifecycleState.Terminated) +// .execute(); +// } +// +// // === OCI Route Table Helpers === +// +// /** +// * Configure the default RouteTable of the specified InternetGateway to ensure it contains a +// * single outbound route for all traffic. +// * +// *

NB: You should restrict these routes further if you keep this piece of OCI +// infrastructure. +// * +// * @param vcnClient the service client to use to query a RouteTable. +// * @param compartmentId of the RouteTable. +// * @param vcnId of the RouteTable's associated VCN. +// * @param igId of the RouteTable's associated InternetGateway. +// * @param drtDisplayName of the RouteTable. +// * @return the InternetGateway. +// * @throws Exception +// */ +// private static RouteTable configureInternetGateway( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String igId, +// final String rtDisplayName) +// throws Exception { +// +// final RouteTable defaultRouteTable = +// getUniqueRouteTableByName(vcnClient, compartmentId, vcnId, rtDisplayName); +// +// final String destinationCidr = "0.0.0.0/0"; +// final List routeRules = defaultRouteTable.getRouteRules(); +// routeRules.add( +// RouteRule.builder() +// .cidrBlock(destinationCidr) +// .destination(destinationCidr) +// .destinationType(DestinationType.valueOf("CidrBlock")) +// .networkEntityId(igId) +// .build()); +// +// final UpdateRouteTableResponse updateRouteTableResponse = +// vcnClient.updateRouteTable( +// UpdateRouteTableRequest.builder() +// .rtId(defaultRouteTable.getId()) +// .updateRouteTableDetails( +// UpdateRouteTableDetails.builder() +// .routeRules(routeRules) +// .build()) +// .build()); +// +// return updateRouteTableResponse.getRouteTable(); +// } +// +// /** +// * Gets RouteTable info of a single uniquely named RouteTable in the specified compartment. +// * +// * @param vcnClient the service client to use to query a RouteTable. +// * @param compartmentId of the RouteTable. +// * @param vcnId of the RouteTable's associated VCN. +// * @param rtDisplayName of the RouteTable. +// * @return the InternetGateway. +// * @throws Exception +// */ +// public static RouteTable getUniqueRouteTableByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String rtDisplayName) +// throws Exception { +// +// // Find the route table in a specific compartment +// final ListRouteTablesRequest listRouteTablesRequest = +// ListRouteTablesRequest.builder() +// .compartmentId(compartmentId) +// .vcnId(vcnId) +// .displayName(rtDisplayName) +// .build(); +// +// final ListRouteTablesResponse listRouteTablesResponse = +// vcnClient.listRouteTables(listRouteTablesRequest); +// +// if (listRouteTablesResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique RouteTable with name " +// + rtDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listRouteTablesResponse.getItems().get(0); +// } +// +// /** +// * Prepares a DefaultRouteTable for deletion by deleting all RouteRules. +// * +// * @param vcnClient the service client to use to delete the RouteTable. +// * @param rtId the RouteTable to delete. +// * @throws Exception +// */ +// private static void prepareDefaultRouteTableForDelete( +// final VirtualNetworkClient vcnClient, final String rtId) throws Exception { +// +// vcnClient.updateRouteTable( +// UpdateRouteTableRequest.builder() +// .rtId(rtId) +// .updateRouteTableDetails( +// UpdateRouteTableDetails.builder() +// .routeRules(new ArrayList()) +// .build()) +// .build()); +// } +// +// // === OCI Subnet Helpers === +// +// /** +// * Creates a subnet in a VCN and waits for the subnet to become available to use. +// * +// * @param vcnClient the service client to use to create the subnet. +// * @param compartmentId the OCID of the compartment which owns the VCN. +// * @param vcnId the ID of the VCN which will own the subnet. +// * @param displayName the display name of the subnet. +// * @param availabilityDomainName the availability domain where the subnet will be created. +// * @param subnetCidrBlock the subnet CidrBlock allocated from the parent VCN range. +// * @return the created subnet. +// * @throws Exception +// */ +// private static Subnet createSubnet( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String displayName, +// final String availabilityDomain, +// final String subnetCidrBlock) +// throws Exception { +// +// // Create the subnet +// final CreateSubnetResponse createSubnetResponse = +// vcnClient.createSubnet( +// CreateSubnetRequest.builder() +// .createSubnetDetails( +// CreateSubnetDetails.builder() +// .availabilityDomain(availabilityDomain) +// .compartmentId(compartmentId) +// .displayName(displayName) +// .cidrBlock(subnetCidrBlock) +// .vcnId(vcnId) +// .build()) +// .build()); +// +// // Wait for the subnet to be active +// final GetSubnetResponse getSubnetResponse = +// vcnClient +// .getWaiters() +// .forSubnet( +// GetSubnetRequest.builder() +// .subnetId(createSubnetResponse.getSubnet().getId()) +// .build(), +// Subnet.LifecycleState.Available) +// .execute(); +// +// return getSubnetResponse.getSubnet(); +// } +// +// /** +// * Gets Subnet info of a single uniquely named VCN in the specified compartment. +// * +// * @param vcnClient the service client to use to query the Subnet. +// * @param compartmentId of the Subnet. +// * @param vcnId of the Subnet. +// * @param subnetDisplayName of the Subnet. +// * @return the Subnet. +// * @throws Exception +// */ +// public static Subnet getUniqueSubnetByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String subnetDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListSubnetsRequest listSubnetsRequest = +// ListSubnetsRequest.builder() +// .compartmentId(compartmentId) +// .vcnId(vcnId) +// .displayName(subnetDisplayName) +// .build(); +// +// final ListSubnetsResponse listSubnetsResponse = vcnClient.listSubnets(listSubnetsRequest); +// +// if (listSubnetsResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique subnet with name " +// + subnetDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listSubnetsResponse.getItems().get(0); +// } +// +// /** +// * Deletes a subnet and waits for it to be deleted. +// * +// * @param vcnClient the service client to use to delete the subnet. +// * @param subnetId the subnet to delete. +// * @throws Exception +// */ +// private static void deleteSubnet(final VirtualNetworkClient vcnClient, final String subnetId) +// throws Exception { +// +// final int DELETE_SUBNET_ATTEMPTS = 5; +// /* +// * Sometimes we can't delete the subnet straight after a mount target has been deleted +// * as network resources still need to clear. If we get a conflict, try a few times before +// * bailing out. +// */ +// int numAttempts = 0; +// while (true) { +// try { +// vcnClient.deleteSubnet(DeleteSubnetRequest.builder().subnetId(subnetId).build()); +// break; +// } catch (BmcException e) { +// numAttempts++; +// if (e.getStatusCode() == 409 && numAttempts < DELETE_SUBNET_ATTEMPTS) { +// Thread.sleep(10000L); +// } else { +// throw e; +// } +// } +// } +// // Wait for 'Terminated' state. +// vcnClient +// .getWaiters() +// .forSubnet( +// GetSubnetRequest.builder().subnetId(subnetId).build(), +// Subnet.LifecycleState.Terminated) +// .execute(); +// } +// +// // === OCI Application Helpers === +// +// /** +// * Creates an Application and waits for the it to become available to use. +// * +// * @param fnManagementClient the service client to use to create the application. +// * @param compartmentId the OCID of the compartment which owns the Application. +// * @param displayName the display name ofr the created Application. +// * @param subnetIds a List of subnets (in different ADs) that will expose the function. +// * @return the created application. +// * @throws Exception if there is an error waiting on the application to become available to +// use. +// */ +// private static Application createApplication( +// final FunctionsManagementClient fnManagementClient, +// final String compartmentId, +// final String displayName, +// final List subnetIds) +// throws Exception { +// +// // Create a new Application. +// final CreateApplicationResponse createApplicationResponse = +// fnManagementClient.createApplication( +// CreateApplicationRequest.builder() +// .createApplicationDetails( +// CreateApplicationDetails.builder() +// .compartmentId(compartmentId) +// .displayName(displayName) +// .subnetIds(subnetIds) +// .build()) +// .build()); +// +// // Wait for Application to be in 'Active' state. +// final GetApplicationResponse getApplicationResponse = +// fnManagementClient +// .getWaiters() +// .forApplication( +// GetApplicationRequest.builder() +// .applicationId( +// +// createApplicationResponse.getApplication().getId()) +// .build(), +// Application.LifecycleState.Active) +// .execute(); +// +// return getApplicationResponse.getApplication(); +// } +// +// /** +// * Gets the Application info of a single uniquely named Application in the specified +// * compartment. +// * +// * @param fnManagementClient the service client to use to get the Application information. +// * @param compartmentId of the application. +// * @param applicationDisplayName of the application. +// * @return the ApplicationSummary. +// * @throws Exception +// */ +// public static ApplicationSummary getUniqueApplicationByName( +// final FunctionsManagementClient fnManagementClient, +// final String compartmentId, +// final String applicationDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListApplicationsRequest listApplicationsRequest = +// ListApplicationsRequest.builder() +// .displayName(applicationDisplayName) +// .compartmentId(compartmentId) +// .build(); +// +// final ListApplicationsResponse resp = +// fnManagementClient.listApplications(listApplicationsRequest); +// +// if (resp.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique application with name " +// + applicationDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// final ApplicationSummary application = resp.getItems().get(0); +// return application; +// } +// +// /** +// * Deletes an Application and waits for it to be deleted. +// * +// * @param fnManagementClient the service client to use to delete the Application. +// * @param applicationId the Application to delete. +// * @throws Exception if there is an error waiting on the Application to be deleted. +// */ +// private static void deleteApplication( +// final FunctionsManagementClient fnManagementClient, final String applicationId) +// throws Exception { +// +// // Delete the specified Application +// fnManagementClient.deleteApplication( +// DeleteApplicationRequest.builder().applicationId(applicationId).build()); +// +// // Wait for the 'Deleted' status. +// fnManagementClient +// .getWaiters() +// .forApplication( +// GetApplicationRequest.builder().applicationId(applicationId).build(), +// Application.LifecycleState.Deleted) +// .execute(); +// } +// +// // === OCI Function Helpers === +// +// /** +// * Creates a Function and waits for the it to become available to use. +// * +// * @param fnManagementClient the service client to use to create the Application. +// * @param applicationId the OCID of the Application which owns the Function. +// * @param displayName the display name of created Function. +// * @param image an accessible OCI Registry image implementing the function to be executed. +// * @param memoryInMBs the maximum amount of memory available (128, 256, 512, 1024) to the +// * function in MB. +// * @param timeoutInSeconds the maximum amount of time a function can execute (30 - 120) in +// * seconds. +// * @return the created Function. +// * @throws Exception +// */ +// private static Function createFunction( +// final FunctionsManagementClient fnManagementClient, +// final String applicationId, +// final String displayName, +// final String image, +// final long memoryInMBs, +// final int timeoutInSeconds) +// throws Exception { +// +// // Create a new Function. +// final CreateFunctionResponse createFunctionResponse = +// fnManagementClient.createFunction( +// CreateFunctionRequest.builder() +// .createFunctionDetails( +// CreateFunctionDetails.builder() +// .applicationId(applicationId) +// .displayName(displayName) +// .image(image) +// .memoryInMBs(memoryInMBs) +// .timeoutInSeconds(timeoutInSeconds) +// .build()) +// .build()); +// +// // Wait for Function to be in 'Active' state. +// final GetFunctionResponse getFunctionResponse = +// fnManagementClient +// .getWaiters() +// .forFunction( +// GetFunctionRequest.builder() +// .functionId(createFunctionResponse.getFunction().getId()) +// .build(), +// Function.LifecycleState.Active) +// .execute(); +// +// return getFunctionResponse.getFunction(); +// } +// +// /** +// * Gets Function information. This is an expensive operation and the results should be cached. +// * +// * @param fnManagementClient the service client to use to get the Function information. +// * @param compartmentId of the application and function. +// * @param applicationDisplayName of the application. +// * @param functionDisplayName of the function. +// * @return the FunctionSummary. +// * @throws Exception +// */ +// public static FunctionSummary getUniqueFunctionByName( +// final FunctionsManagementClient fnManagementClient, +// final String compartmentId, +// final String applicationDisplayName, +// final String functionDisplayName) +// throws Exception { +// final ApplicationSummary application = +// getUniqueApplicationByName( +// fnManagementClient, compartmentId, applicationDisplayName); +// return getUniqueFunctionByName( +// fnManagementClient, application.getId(), functionDisplayName); +// } +// +// /** +// * Gets Function information. This is an expensive operation and the results should be cached. +// * +// * @param fnManagementClient the service client to use to get the Function information. +// * @param applicationId of the function to find. +// * @param functionDisplayName of the function to find. +// * @return the FunctionSummary. +// * @throws Exception +// */ +// public static FunctionSummary getUniqueFunctionByName( +// final FunctionsManagementClient fnManagementClient, +// final String applicationId, +// final String functionDisplayName) +// throws Exception { +// +// final ListFunctionsRequest listFunctionsRequest = +// ListFunctionsRequest.builder() +// .applicationId(applicationId) +// .displayName(functionDisplayName) +// .build(); +// +// final ListFunctionsResponse listFunctionsResponse = +// fnManagementClient.listFunctions(listFunctionsRequest); +// +// if (listFunctionsResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find function with name " +// + functionDisplayName +// + " in application " +// + applicationId); +// } +// +// return listFunctionsResponse.getItems().get(0); +// } +// +// /** +// * Deletes a Function and waits for it to be deleted. +// * +// * @param fnManagementClient the service client to use to delete the Function. +// * @param functionId the Function to delete. +// * @throws Exception +// */ +// private static void deleteFunction( +// final FunctionsManagementClient fnManagementClient, final String functionId) +// throws Exception { +// +// // Delete the specified Function. +// fnManagementClient.deleteFunction( +// DeleteFunctionRequest.builder().functionId(functionId).build()); +// +// // Wait for the 'Deleted' status. +// fnManagementClient +// .getWaiters() +// .forFunction( +// GetFunctionRequest.builder().functionId(functionId).build(), +// Function.LifecycleState.Deleted) +// .execute(); +// } +// +// /** +// * Invokes a function. +// * +// * @param fnInvokeClient the service client to use to delete the Function. +// * @param function the Function to invoke. +// * @param payload the payload to pass to the function. +// */ +// private static String invokeFunction( +// final FunctionsInvokeClient fnInvokeClient, +// final FunctionSummary function, +// final String payload) +// throws Exception { +// String response; +// try { +// System.err.println("Invoking function endpoint - " + function.getInvokeEndpoint()); +// +// // Configure the client to use the assigned function endpoint. +// fnInvokeClient.setEndpoint(function.getInvokeEndpoint()); +// final InvokeFunctionRequest invokeFunctionRequest = +// InvokeFunctionRequest.builder() +// .functionId(function.getId()) +// .invokeFunctionBody( +// StreamUtils.createByteArrayInputStream(payload.getBytes())) +// .build(); +// +// // Invoke the function! +// final InvokeFunctionResponse invokeFunctionResponse = +// fnInvokeClient.invokeFunction(invokeFunctionRequest); +// +// // Handle the response. +// response = +// StreamUtils.toString( +// invokeFunctionResponse.getInputStream(), StandardCharsets.UTF_8); +// +// } catch (final Exception e) { +// e.printStackTrace(); +// System.err.println("Failed to invoke function: " + e); +// throw e; +// } +// +// return response; +// } +// +// // === Utility Helpers === +// +// private static String vcnName(final String name) { +// return name + "-vcn"; +// } +// +// private static String igName(final String name) { +// return name + "-ig"; +// } +// +// private static String drtName(final String name) { +// return "Default Route Table for " + name + "-vcn"; +// } +// +// private static String subnetName(final String name) { +// return name + "-subnet"; +// } +// +// private static String applicationName(final String name) { +// return name + "-app"; +// } +// +// private static String functionName(final String name) { +// return name + "-fn"; +// } +// } diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index b8fc493a16f..1b71e677784 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index b3c8e7df5aa..612e770348c 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 7ed3080524e..4ce6aa7d561 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 7edd2d7a4da..e6b1126b9a1 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.0 + 3.95.1 pom import @@ -711,5 +711,9 @@ com.oracle.oci.sdk oci-java-sdk-distributeddatabasev26 + + com.oracle.oci.sdk + oci-java-sdk-clusterhealth + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index ab64f1bf1bf..500e65608e2 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 0996f7133d0..a101347f370 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index 796917be404..0399dae61fa 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 97d116b02be..b867605eb4c 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index f0bd8ec0043..6d9035de85d 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index c6b80d44826..a57b25398ba 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index bcea565bdd8..fc6a90f4092 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index b0a863aac99..04e2086aaef 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index de14e5c02cb..a84d63e4a2c 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 501887e369b..fe3372ffbc5 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index afac99ff134..2775059a308 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index e90d37a100f..6e5634913fb 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 09908307fc2..5affeb684e3 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index cc5959a588a..0273791164d 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 9b8df863172..edf23894ac6 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 9572999d93b..41873d72e1e 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index b50cf053352..96d054372f6 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java index 6512c99ee14..036b7e99a18 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java @@ -66,6 +66,22 @@ public interface Iot extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ActivateIotFlowRuntime API. + */ + ActivateIotFlowRuntimeResponse activateIotFlowRuntime(ActivateIotFlowRuntimeRequest request); + /** * Moves an IoT domain to a different compartment within the same tenancy. For information about * moving resources between compartments, see [Moving Resources to a Different @@ -121,6 +137,25 @@ ChangeIotDomainDataRetentionPeriodResponse changeIotDomainDataRetentionPeriod( ChangeIotDomainGroupCompartmentResponse changeIotDomainGroupCompartment( ChangeIotDomainGroupCompartmentRequest request); + /** + * Moves an IoT flow runtime to a different compartment within the same tenancy. For information + * about moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeIotFlowRuntimeCompartment API. + */ + ChangeIotFlowRuntimeCompartmentResponse changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request); + /** * Updates an IoT domain Data Access. * @@ -254,6 +289,39 @@ CreateDigitalTwinRelationshipResponse createDigitalTwinRelationship( */ CreateIotDomainGroupResponse createIotDomainGroup(CreateIotDomainGroupRequest request); + /** + * Creates an IoT flow runtime. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CreateIotFlowRuntime API. + */ + CreateIotFlowRuntimeResponse createIotFlowRuntime(CreateIotFlowRuntimeRequest request); + + /** + * Deactivates the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DeactivateIotFlowRuntime API. + */ + DeactivateIotFlowRuntimeResponse deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request); + /** * Deletes the digital twin adapter identified by the specified OCID. * @@ -353,6 +421,22 @@ DeleteDigitalTwinRelationshipResponse deleteDigitalTwinRelationship( */ DeleteIotDomainGroupResponse deleteIotDomainGroup(DeleteIotDomainGroupRequest request); + /** + * Deletes the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DeleteIotFlowRuntime API. + */ + DeleteIotFlowRuntimeResponse deleteIotFlowRuntime(DeleteIotFlowRuntimeRequest request); + /** * Retrieves the digital twin adapter identified by the specified OCID. * @@ -484,6 +568,38 @@ GetDigitalTwinRelationshipResponse getDigitalTwinRelationship( */ GetIotDomainGroupResponse getIotDomainGroup(GetIotDomainGroupRequest request); + /** + * Gets the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetIotFlowRuntime + * API. + */ + GetIotFlowRuntimeResponse getIotFlowRuntime(GetIotFlowRuntimeRequest request); + + /** + * Gets the opaque flows document for the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GetIotFlowRuntimeFlows API. + */ + GetIotFlowRuntimeFlowsResponse getIotFlowRuntimeFlows(GetIotFlowRuntimeFlowsRequest request); + /** * Retrieves the status of the work request with the given ID. * @@ -612,6 +728,22 @@ ListDigitalTwinRelationshipsResponse listDigitalTwinRelationships( */ ListIotDomainsResponse listIotDomains(ListIotDomainsRequest request); + /** + * Lists IoT flow runtimes in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListIotFlowRuntimes + * API. + */ + ListIotFlowRuntimesResponse listIotFlowRuntimes(ListIotFlowRuntimesRequest request); + /** * Lists errors associated with the specified work request. * @@ -759,6 +891,40 @@ UpdateDigitalTwinRelationshipResponse updateDigitalTwinRelationship( */ UpdateIotDomainGroupResponse updateIotDomainGroup(UpdateIotDomainGroupRequest request); + /** + * Updates the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateIotFlowRuntime API. + */ + UpdateIotFlowRuntimeResponse updateIotFlowRuntime(UpdateIotFlowRuntimeRequest request); + + /** + * Replaces the complete flows document for the IoT flow runtime identified by the specified + * OCID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateIotFlowRuntimeFlows API. + */ + UpdateIotFlowRuntimeFlowsResponse updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java index ca7f00fb4c8..cdf4f42a803 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java @@ -63,6 +63,22 @@ public interface IotAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future activateIotFlowRuntime( + ActivateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateIotFlowRuntimeRequest, ActivateIotFlowRuntimeResponse> + handler); + /** * Moves an IoT domain to a different compartment within the same tenancy. For information about * moving resources between compartments, see [Moving Resources to a Different @@ -119,6 +135,26 @@ java.util.concurrent.Future changeIotDomainC ChangeIotDomainGroupCompartmentResponse> handler); + /** + * Moves an IoT flow runtime to a different compartment within the same tenancy. For information + * about moving resources between compartments, see [Moving Resources to a Different + * Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeIotFlowRuntimeCompartmentRequest, + ChangeIotFlowRuntimeCompartmentResponse> + handler); + /** * Updates an IoT domain Data Access. * @@ -251,6 +287,38 @@ java.util.concurrent.Future createIotDomainGroup( CreateIotDomainGroupRequest, CreateIotDomainGroupResponse> handler); + /** + * Creates an IoT flow runtime. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createIotFlowRuntime( + CreateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateIotFlowRuntimeRequest, CreateIotFlowRuntimeResponse> + handler); + + /** + * Deactivates the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeactivateIotFlowRuntimeRequest, DeactivateIotFlowRuntimeResponse> + handler); + /** * Deletes the digital twin adapter identified by the specified OCID. * @@ -348,6 +416,22 @@ java.util.concurrent.Future deleteIotDomainGroup( DeleteIotDomainGroupRequest, DeleteIotDomainGroupResponse> handler); + /** + * Deletes the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteIotFlowRuntime( + DeleteIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteIotFlowRuntimeRequest, DeleteIotFlowRuntimeResponse> + handler); + /** * Retrieves the digital twin adapter identified by the specified OCID. * @@ -479,6 +563,38 @@ java.util.concurrent.Future getIotDomainGroup( GetIotDomainGroupRequest, GetIotDomainGroupResponse> handler); + /** + * Gets the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse> + handler); + + /** + * Gets the opaque flows document for the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getIotFlowRuntimeFlows( + GetIotFlowRuntimeFlowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeFlowsRequest, GetIotFlowRuntimeFlowsResponse> + handler); + /** * Retrieves the status of the work request with the given ID. * @@ -605,6 +721,22 @@ java.util.concurrent.Future listIotDomains( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists IoT flow runtimes in the specified compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listIotFlowRuntimes( + ListIotFlowRuntimesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse> + handler); + /** * Lists errors associated with the specified work request. * @@ -748,4 +880,37 @@ java.util.concurrent.Future updateIotDomainGroup( com.oracle.bmc.responses.AsyncHandler< UpdateIotDomainGroupRequest, UpdateIotDomainGroupResponse> handler); + + /** + * Updates the IoT flow runtime identified by the specified OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateIotFlowRuntime( + UpdateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeRequest, UpdateIotFlowRuntimeResponse> + handler); + + /** + * Replaces the complete flows document for the IoT flow runtime identified by the specified + * OCID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeFlowsRequest, UpdateIotFlowRuntimeFlowsResponse> + handler); } 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 2a3976380bd..bbf7b1c7458 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 @@ -95,6 +95,40 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future activateIotFlowRuntime( + ActivateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateIotFlowRuntimeRequest, ActivateIotFlowRuntimeResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, ActivateIotFlowRuntimeResponse::builder) + .logger(LOG, "activateIotFlowRuntime") + .serviceDetails( + "Iot", + "ActivateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ActivateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("actions") + .appendPathParam("activate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-work-request-id", + ActivateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ActivateIotFlowRuntimeResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeIotDomainCompartment( @@ -217,6 +251,47 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeIotFlowRuntimeCompartmentRequest, + ChangeIotFlowRuntimeCompartmentResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Objects.requireNonNull( + request.getChangeIotFlowRuntimeCompartmentDetails(), + "changeIotFlowRuntimeCompartmentDetails is required"); + + return clientCall(request, ChangeIotFlowRuntimeCompartmentResponse::builder) + .logger(LOG, "changeIotFlowRuntimeCompartment") + .serviceDetails( + "Iot", + "ChangeIotFlowRuntimeCompartment", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ChangeIotFlowRuntimeCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeIotFlowRuntimeCompartmentRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeIotFlowRuntimeCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeIotFlowRuntimeCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future configureIotDomainDataAccess( @@ -512,6 +587,80 @@ public java.util.concurrent.Future createIotDomain .callAsync(handler); } + @Override + public java.util.concurrent.Future createIotFlowRuntime( + CreateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateIotFlowRuntimeRequest, CreateIotFlowRuntimeResponse> + handler) { + Objects.requireNonNull( + request.getCreateIotFlowRuntimeDetails(), + "createIotFlowRuntimeDetails is required"); + + return clientCall(request, CreateIotFlowRuntimeResponse::builder) + .logger(LOG, "createIotFlowRuntime") + .serviceDetails( + "Iot", + "CreateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/CreateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.iot.model.IotFlowRuntime.class, + CreateIotFlowRuntimeResponse.Builder::iotFlowRuntime) + .handleResponseHeaderString( + "location", CreateIotFlowRuntimeResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateIotFlowRuntimeResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateIotFlowRuntimeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateIotFlowRuntimeResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeactivateIotFlowRuntimeRequest, DeactivateIotFlowRuntimeResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, DeactivateIotFlowRuntimeResponse::builder) + .logger(LOG, "deactivateIotFlowRuntime") + .serviceDetails( + "Iot", + "DeactivateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeactivateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("actions") + .appendPathParam("deactivate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-work-request-id", + DeactivateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeactivateIotFlowRuntimeResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteDigitalTwinAdapter( DeleteDigitalTwinAdapterRequest request, @@ -692,6 +841,37 @@ public java.util.concurrent.Future deleteIotDomain .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteIotFlowRuntime( + DeleteIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteIotFlowRuntimeRequest, DeleteIotFlowRuntimeResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, DeleteIotFlowRuntimeResponse::builder) + .logger(LOG, "deleteIotFlowRuntime") + .serviceDetails( + "Iot", + "DeleteIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeleteIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteIotFlowRuntimeResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getDigitalTwinAdapter( GetDigitalTwinAdapterRequest request, @@ -954,6 +1134,69 @@ public java.util.concurrent.Future getIotDomainGroup( .callAsync(handler); } + @Override + public java.util.concurrent.Future getIotFlowRuntime( + GetIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, GetIotFlowRuntimeResponse::builder) + .logger(LOG, "getIotFlowRuntime") + .serviceDetails( + "Iot", + "GetIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.iot.model.IotFlowRuntime.class, + GetIotFlowRuntimeResponse.Builder::iotFlowRuntime) + .handleResponseHeaderString("etag", GetIotFlowRuntimeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetIotFlowRuntimeResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getIotFlowRuntimeFlows( + GetIotFlowRuntimeFlowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeFlowsRequest, GetIotFlowRuntimeFlowsResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, GetIotFlowRuntimeFlowsResponse::builder) + .logger(LOG, "getIotFlowRuntimeFlows") + .serviceDetails( + "Iot", + "GetIotFlowRuntimeFlows", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntimeFlows") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetIotFlowRuntimeFlowsRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("flows") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + GetIotFlowRuntimeFlowsResponse.ResultWrapper.class, + GetIotFlowRuntimeFlowsResponse.Builder::resultWrapper) + .handleResponseHeaderString("etag", GetIotFlowRuntimeFlowsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetIotFlowRuntimeFlowsResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -1279,6 +1522,47 @@ public java.util.concurrent.Future listIotDomains( .callAsync(handler); } + @Override + public java.util.concurrent.Future listIotFlowRuntimes( + ListIotFlowRuntimesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListIotFlowRuntimesResponse::builder) + .logger(LOG, "listIotFlowRuntimes") + .serviceDetails( + "Iot", + "ListIotFlowRuntimes", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ListIotFlowRuntimes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListIotFlowRuntimesRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("iotDomainId", request.getIotDomainId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .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.iot.model.IotFlowRuntimeCollection.class, + ListIotFlowRuntimesResponse.Builder::iotFlowRuntimeCollection) + .handleResponseHeaderString( + "opc-request-id", ListIotFlowRuntimesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListIotFlowRuntimesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListIotFlowRuntimesResponse.Builder::opcPrevPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, @@ -1617,6 +1901,76 @@ public java.util.concurrent.Future updateIotDomain .callAsync(handler); } + @Override + public java.util.concurrent.Future updateIotFlowRuntime( + UpdateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeRequest, UpdateIotFlowRuntimeResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Objects.requireNonNull( + request.getUpdateIotFlowRuntimeDetails(), + "updateIotFlowRuntimeDetails is required"); + + return clientCall(request, UpdateIotFlowRuntimeResponse::builder) + .logger(LOG, "updateIotFlowRuntime") + .serviceDetails( + "Iot", + "UpdateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateIotFlowRuntimeResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeFlowsRequest, UpdateIotFlowRuntimeFlowsResponse> + handler) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Objects.requireNonNull(request.getFlowsDocument(), "flowsDocument is required"); + + return clientCall(request, UpdateIotFlowRuntimeFlowsResponse::builder) + .logger(LOG, "updateIotFlowRuntimeFlows") + .serviceDetails( + "Iot", + "UpdateIotFlowRuntimeFlows", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntimeFlows") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateIotFlowRuntimeFlowsRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("flows") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + UpdateIotFlowRuntimeFlowsResponse.ResultWrapper.class, + UpdateIotFlowRuntimeFlowsResponse.Builder::resultWrapper) + .handleResponseHeaderString("etag", UpdateIotFlowRuntimeFlowsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateIotFlowRuntimeFlowsResponse.Builder::opcRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * 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 f3d8351e53e..248f4367d0a 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 @@ -121,6 +121,38 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public ActivateIotFlowRuntimeResponse activateIotFlowRuntime( + ActivateIotFlowRuntimeRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, ActivateIotFlowRuntimeResponse::builder) + .logger(LOG, "activateIotFlowRuntime") + .serviceDetails( + "Iot", + "ActivateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ActivateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("actions") + .appendPathParam("activate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + ActivateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ActivateIotFlowRuntimeResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeIotDomainCompartmentResponse changeIotDomainCompartment( ChangeIotDomainCompartmentRequest request) { @@ -231,6 +263,43 @@ public ChangeIotDomainGroupCompartmentResponse changeIotDomainGroupCompartment( .callSync(); } + @Override + public ChangeIotFlowRuntimeCompartmentResponse changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Objects.requireNonNull( + request.getChangeIotFlowRuntimeCompartmentDetails(), + "changeIotFlowRuntimeCompartmentDetails is required"); + + return clientCall(request, ChangeIotFlowRuntimeCompartmentResponse::builder) + .logger(LOG, "changeIotFlowRuntimeCompartment") + .serviceDetails( + "Iot", + "ChangeIotFlowRuntimeCompartment", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ChangeIotFlowRuntimeCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeIotFlowRuntimeCompartmentRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeIotFlowRuntimeCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ChangeIotFlowRuntimeCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ConfigureIotDomainDataAccessResponse configureIotDomainDataAccess( ConfigureIotDomainDataAccessRequest request) { @@ -502,6 +571,75 @@ public CreateIotDomainGroupResponse createIotDomainGroup(CreateIotDomainGroupReq .callSync(); } + @Override + public CreateIotFlowRuntimeResponse createIotFlowRuntime(CreateIotFlowRuntimeRequest request) { + Objects.requireNonNull( + request.getCreateIotFlowRuntimeDetails(), + "createIotFlowRuntimeDetails is required"); + + return clientCall(request, CreateIotFlowRuntimeResponse::builder) + .logger(LOG, "createIotFlowRuntime") + .serviceDetails( + "Iot", + "CreateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/CreateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.iot.model.IotFlowRuntime.class, + CreateIotFlowRuntimeResponse.Builder::iotFlowRuntime) + .handleResponseHeaderString( + "location", CreateIotFlowRuntimeResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateIotFlowRuntimeResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateIotFlowRuntimeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateIotFlowRuntimeResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeactivateIotFlowRuntimeResponse deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, DeactivateIotFlowRuntimeResponse::builder) + .logger(LOG, "deactivateIotFlowRuntime") + .serviceDetails( + "Iot", + "DeactivateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeactivateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("actions") + .appendPathParam("deactivate") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeactivateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeactivateIotFlowRuntimeResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteDigitalTwinAdapterResponse deleteDigitalTwinAdapter( DeleteDigitalTwinAdapterRequest request) { @@ -666,6 +804,34 @@ public DeleteIotDomainGroupResponse deleteIotDomainGroup(DeleteIotDomainGroupReq .callSync(); } + @Override + public DeleteIotFlowRuntimeResponse deleteIotFlowRuntime(DeleteIotFlowRuntimeRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, DeleteIotFlowRuntimeResponse::builder) + .logger(LOG, "deleteIotFlowRuntime") + .serviceDetails( + "Iot", + "DeleteIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeleteIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteIotFlowRuntimeResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetDigitalTwinAdapterResponse getDigitalTwinAdapter( GetDigitalTwinAdapterRequest request) { @@ -906,6 +1072,64 @@ public GetIotDomainGroupResponse getIotDomainGroup(GetIotDomainGroupRequest requ .callSync(); } + @Override + public GetIotFlowRuntimeResponse getIotFlowRuntime(GetIotFlowRuntimeRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, GetIotFlowRuntimeResponse::builder) + .logger(LOG, "getIotFlowRuntime") + .serviceDetails( + "Iot", + "GetIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.iot.model.IotFlowRuntime.class, + GetIotFlowRuntimeResponse.Builder::iotFlowRuntime) + .handleResponseHeaderString("etag", GetIotFlowRuntimeResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetIotFlowRuntimeResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetIotFlowRuntimeFlowsResponse getIotFlowRuntimeFlows( + GetIotFlowRuntimeFlowsRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + return clientCall(request, GetIotFlowRuntimeFlowsResponse::builder) + .logger(LOG, "getIotFlowRuntimeFlows") + .serviceDetails( + "Iot", + "GetIotFlowRuntimeFlows", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntimeFlows") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetIotFlowRuntimeFlowsRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("flows") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + GetIotFlowRuntimeFlowsResponse.ResultWrapper.class, + GetIotFlowRuntimeFlowsResponse.Builder::resultWrapper) + .handleResponseHeaderString("etag", GetIotFlowRuntimeFlowsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetIotFlowRuntimeFlowsResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { @@ -1209,6 +1433,44 @@ public ListIotDomainsResponse listIotDomains(ListIotDomainsRequest request) { .callSync(); } + @Override + public ListIotFlowRuntimesResponse listIotFlowRuntimes(ListIotFlowRuntimesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListIotFlowRuntimesResponse::builder) + .logger(LOG, "listIotFlowRuntimes") + .serviceDetails( + "Iot", + "ListIotFlowRuntimes", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ListIotFlowRuntimes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListIotFlowRuntimesRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("iotDomainId", request.getIotDomainId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .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.iot.model.IotFlowRuntimeCollection.class, + ListIotFlowRuntimesResponse.Builder::iotFlowRuntimeCollection) + .handleResponseHeaderString( + "opc-request-id", ListIotFlowRuntimesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListIotFlowRuntimesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", ListIotFlowRuntimesResponse.Builder::opcPrevPage) + .callSync(); + } + @Override public ListWorkRequestErrorsResponse listWorkRequestErrors( ListWorkRequestErrorsRequest request) { @@ -1523,6 +1785,71 @@ public UpdateIotDomainGroupResponse updateIotDomainGroup(UpdateIotDomainGroupReq .callSync(); } + @Override + public UpdateIotFlowRuntimeResponse updateIotFlowRuntime(UpdateIotFlowRuntimeRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Objects.requireNonNull( + request.getUpdateIotFlowRuntimeDetails(), + "updateIotFlowRuntimeDetails is required"); + + return clientCall(request, UpdateIotFlowRuntimeResponse::builder) + .logger(LOG, "updateIotFlowRuntime") + .serviceDetails( + "Iot", + "UpdateIotFlowRuntime", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntime") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateIotFlowRuntimeRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateIotFlowRuntimeResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateIotFlowRuntimeResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateIotFlowRuntimeFlowsResponse updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request) { + + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Objects.requireNonNull(request.getFlowsDocument(), "flowsDocument is required"); + + return clientCall(request, UpdateIotFlowRuntimeFlowsResponse::builder) + .logger(LOG, "updateIotFlowRuntimeFlows") + .serviceDetails( + "Iot", + "UpdateIotFlowRuntimeFlows", + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntimeFlows") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateIotFlowRuntimeFlowsRequest::builder) + .basePath("/20250531") + .appendPathParam("iotFlowRuntimes") + .appendPathParam(request.getIotFlowRuntimeId()) + .appendPathParam("flows") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + UpdateIotFlowRuntimeFlowsResponse.ResultWrapper.class, + UpdateIotFlowRuntimeFlowsResponse.Builder::resultWrapper) + .handleResponseHeaderString("etag", UpdateIotFlowRuntimeFlowsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateIotFlowRuntimeFlowsResponse.Builder::opcRequestId) + .callSync(); + } + @Override public IotWaiters getWaiters() { return waiters; diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java index e6d670b23d0..84c514754b4 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java @@ -765,6 +765,124 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listIotFlowRuntimes 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 listIotFlowRuntimesResponseIterator( + final ListIotFlowRuntimesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListIotFlowRuntimesRequest.Builder, + ListIotFlowRuntimesRequest, + ListIotFlowRuntimesResponse>( + new java.util.function.Supplier() { + @Override + public ListIotFlowRuntimesRequest.Builder get() { + return ListIotFlowRuntimesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListIotFlowRuntimesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.Builder>, + ListIotFlowRuntimesRequest>() { + @Override + public ListIotFlowRuntimesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.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< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse>() { + @Override + public ListIotFlowRuntimesResponse apply(ListIotFlowRuntimesRequest request) { + return client.listIotFlowRuntimes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.iot.model.IotFlowRuntimeSummary} objects contained in responses from the + * listIotFlowRuntimes 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.iot.model.IotFlowRuntimeSummary} objects contained in responses received + * from the service. + */ + public Iterable + listIotFlowRuntimesRecordIterator(final ListIotFlowRuntimesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListIotFlowRuntimesRequest.Builder, + ListIotFlowRuntimesRequest, + ListIotFlowRuntimesResponse, + com.oracle.bmc.iot.model.IotFlowRuntimeSummary>( + new java.util.function.Supplier() { + @Override + public ListIotFlowRuntimesRequest.Builder get() { + return ListIotFlowRuntimesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListIotFlowRuntimesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.Builder>, + ListIotFlowRuntimesRequest>() { + @Override + public ListIotFlowRuntimesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.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< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse>() { + @Override + public ListIotFlowRuntimesResponse apply(ListIotFlowRuntimesRequest request) { + return client.listIotFlowRuntimes(request); + } + }, + new java.util.function.Function< + ListIotFlowRuntimesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListIotFlowRuntimesResponse response) { + return response.getIotFlowRuntimeCollection().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-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java index 710316aaddf..4e201d41349 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java @@ -655,6 +655,111 @@ public boolean test(GetIotDomainGroupResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forIotFlowRuntime( + 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 + forIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forIotFlowRuntime( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forIotFlowRuntime( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for IotFlowRuntime. + private com.oracle.bmc.waiter.Waiter + forIotFlowRuntime( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetIotFlowRuntimeRequest request, + final com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState... targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse>() { + @Override + public GetIotFlowRuntimeResponse apply( + GetIotFlowRuntimeRequest request) { + return client.getIotFlowRuntime(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetIotFlowRuntimeResponse response) { + return targetStatesSet.contains( + response.getIotFlowRuntime().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ChangeIotFlowRuntimeCompartmentDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ChangeIotFlowRuntimeCompartmentDetails.java new file mode 100644 index 00000000000..fac03c8969d --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ChangeIotFlowRuntimeCompartmentDetails.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.iot.model; + +/** + * Details for moving an IoT flow runtime to a different compartment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeIotFlowRuntimeCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeIotFlowRuntimeCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeIotFlowRuntimeCompartmentDetails(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 corresponding to the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + * + * @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 ChangeIotFlowRuntimeCompartmentDetails build() { + ChangeIotFlowRuntimeCompartmentDetails model = + new ChangeIotFlowRuntimeCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeIotFlowRuntimeCompartmentDetails 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 corresponding to the resource. + */ + @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 corresponding to the resource. + * + * @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("ChangeIotFlowRuntimeCompartmentDetails("); + 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 ChangeIotFlowRuntimeCompartmentDetails)) { + return false; + } + + ChangeIotFlowRuntimeCompartmentDetails other = (ChangeIotFlowRuntimeCompartmentDetails) 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-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 ffd3520c9be..616064a313e 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 @@ -86,12 +86,12 @@ public Builder iotDomainId(String iotDomainId) { this.__explicitlySet__.add("iotDomainId"); return this; } - /** Connectivity type of the digital twin instance */ + /** Connectivity type of the digital twin instance. */ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * * @param connectivityType the value to set * @return this builder @@ -397,12 +397,12 @@ public String getIotDomainId() { return iotDomainId; } - /** Connectivity type of the digital twin instance */ + /** Connectivity type of the digital twin instance. */ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private final DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * * @return the value */ diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotFlowRuntimeDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotFlowRuntimeDetails.java new file mode 100644 index 00000000000..4907fbf0b10 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotFlowRuntimeDetails.java @@ -0,0 +1,535 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Details for creating an IoT flow runtime in an IoT domain.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateIotFlowRuntimeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateIotFlowRuntimeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "iotDomainId", + "compartmentId", + "scale", + "networkConfig", + "logConfig", + "displayName", + "description", + "freeformTags", + "definedTags" + }) + public CreateIotFlowRuntimeDetails( + String iotDomainId, + String compartmentId, + Scale scale, + NetworkConfigDetails networkConfig, + LogConfigDetails logConfig, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.iotDomainId = iotDomainId; + this.compartmentId = compartmentId; + this.scale = scale; + this.networkConfig = networkConfig; + this.logConfig = logConfig; + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain. + * + * @param iotDomainId the value to set + * @return this builder + */ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + this.__explicitlySet__.add("iotDomainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + */ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private NetworkConfigDetails networkConfig; + + public Builder networkConfig(NetworkConfigDetails networkConfig) { + this.networkConfig = networkConfig; + this.__explicitlySet__.add("networkConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private LogConfigDetails logConfig; + + public Builder logConfig(LogConfigDetails logConfig) { + this.logConfig = logConfig; + this.__explicitlySet__.add("logConfig"); + 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; + } + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateIotFlowRuntimeDetails build() { + CreateIotFlowRuntimeDetails model = + new CreateIotFlowRuntimeDetails( + this.iotDomainId, + this.compartmentId, + this.scale, + this.networkConfig, + this.logConfig, + this.displayName, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateIotFlowRuntimeDetails model) { + if (model.wasPropertyExplicitlySet("iotDomainId")) { + this.iotDomainId(model.getIotDomainId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("networkConfig")) { + this.networkConfig(model.getNetworkConfig()); + } + if (model.wasPropertyExplicitlySet("logConfig")) { + this.logConfig(model.getLogConfig()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + 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 IoT + * domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private final String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT + * domain. + * + * @return the value + */ + public String getIotDomainId() { + return iotDomainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + */ + @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 corresponding to the resource. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + public enum Scale implements com.oracle.bmc.http.internal.BmcEnum { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + map.put(v.getValue(), v); + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Scale: " + key); + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + */ + public Scale getScale() { + return scale; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private final NetworkConfigDetails networkConfig; + + public NetworkConfigDetails getNetworkConfig() { + return networkConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private final LogConfigDetails logConfig; + + public LogConfigDetails getLogConfig() { + return logConfig; + } + + /** + * 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; + } + + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateIotFlowRuntimeDetails("); + sb.append("super=").append(super.toString()); + sb.append("iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); + sb.append(", logConfig=").append(String.valueOf(this.logConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateIotFlowRuntimeDetails)) { + return false; + } + + CreateIotFlowRuntimeDetails other = (CreateIotFlowRuntimeDetails) o; + return java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.networkConfig, other.networkConfig) + && java.util.Objects.equals(this.logConfig, other.logConfig) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.scale == null ? 43 : this.scale.hashCode()); + result = + (result * PRIME) + + (this.networkConfig == null ? 43 : this.networkConfig.hashCode()); + result = (result * PRIME) + (this.logConfig == null ? 43 : this.logConfig.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.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java index b03e15b0bfc..148e4a059e7 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java @@ -29,17 +29,23 @@ public final class DigitalTwinAdapterInboundRoute @java.beans.ConstructorProperties({ "condition", "referencePayload", + "target", + "contentRoot", "payloadMapping", "description" }) public DigitalTwinAdapterInboundRoute( String condition, DigitalTwinAdapterPayload referencePayload, + String target, + String contentRoot, java.util.Map payloadMapping, String description) { super(); this.condition = condition; this.referencePayload = referencePayload; + this.target = target; + this.contentRoot = contentRoot; this.payloadMapping = payloadMapping; this.description = description; } @@ -76,6 +82,44 @@ public Builder referencePayload(DigitalTwinAdapterPayload referencePayload) { this.__explicitlySet__.add("referencePayload"); 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; + } /** * A set of key-value JQ expressions used to transform the incoming payload into a shape * compatible with the digital twin model's context or schema. @@ -133,6 +177,8 @@ public DigitalTwinAdapterInboundRoute build() { new DigitalTwinAdapterInboundRoute( this.condition, this.referencePayload, + this.target, + this.contentRoot, this.payloadMapping, this.description); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -149,6 +195,12 @@ public Builder copy(DigitalTwinAdapterInboundRoute model) { if (model.wasPropertyExplicitlySet("referencePayload")) { this.referencePayload(model.getReferencePayload()); } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + if (model.wasPropertyExplicitlySet("contentRoot")) { + this.contentRoot(model.getContentRoot()); + } if (model.wasPropertyExplicitlySet("payloadMapping")) { this.payloadMapping(model.getPayloadMapping()); } @@ -194,6 +246,40 @@ public DigitalTwinAdapterPayload getReferencePayload() { return referencePayload; } + /** + * 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; + } + /** * A set of key-value JQ expressions used to transform the incoming payload into a shape * compatible with the digital twin model's context or schema. @@ -255,6 +341,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("condition=").append(String.valueOf(this.condition)); sb.append(", referencePayload=").append(String.valueOf(this.referencePayload)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(", contentRoot=").append(String.valueOf(this.contentRoot)); sb.append(", payloadMapping=").append(String.valueOf(this.payloadMapping)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(")"); @@ -273,6 +361,8 @@ public boolean equals(Object o) { DigitalTwinAdapterInboundRoute other = (DigitalTwinAdapterInboundRoute) o; return java.util.Objects.equals(this.condition, other.condition) && java.util.Objects.equals(this.referencePayload, other.referencePayload) + && java.util.Objects.equals(this.target, other.target) + && java.util.Objects.equals(this.contentRoot, other.contentRoot) && java.util.Objects.equals(this.payloadMapping, other.payloadMapping) && java.util.Objects.equals(this.description, other.description) && super.equals(other); @@ -286,6 +376,8 @@ public int hashCode() { result = (result * PRIME) + (this.referencePayload == null ? 43 : this.referencePayload.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + result = (result * PRIME) + (this.contentRoot == null ? 43 : this.contentRoot.hashCode()); result = (result * PRIME) + (this.payloadMapping == null ? 43 : this.payloadMapping.hashCode()); 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 462877e3828..1f993bac4d8 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 @@ -127,12 +127,12 @@ public Builder iotDomainId(String iotDomainId) { this.__explicitlySet__.add("iotDomainId"); return this; } - /** Connectivity type of the digital twin instance */ + /** Connectivity type of the digital twin instance. */ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * * @param connectivityType the value to set * @return this builder @@ -549,12 +549,12 @@ public String getIotDomainId() { return iotDomainId; } - /** Connectivity type of the digital twin instance */ + /** Connectivity type of the digital twin instance. */ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private final DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * * @return the value */ 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 4bc2324e8d5..e271daaf556 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 @@ -120,12 +120,12 @@ public Builder iotDomainId(String iotDomainId) { this.__explicitlySet__.add("iotDomainId"); return this; } - /** Connectivity type of the digital twin instance */ + /** Connectivity type of the digital twin instance. */ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * * @param connectivityType the value to set * @return this builder @@ -542,12 +542,12 @@ public String getIotDomainId() { return iotDomainId; } - /** Connectivity type of the digital twin instance */ + /** Connectivity type of the digital twin instance. */ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private final DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * * @return the value */ diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileFamily.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileFamily.java new file mode 100644 index 00000000000..b83b5ec7d9e --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileFamily.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * File Storage resources used to validate networkConfig.fileStorageMounts for an IoT flow runtime. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FileFamily.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FileFamily extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public FileFamily() { + super(); + } + + @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 FileFamily build() { + FileFamily model = new FileFamily(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FileFamily model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FileFamily("); + 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 FileFamily)) { + return false; + } + + FileFamily other = (FileFamily) 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-iot/src/main/java/com/oracle/bmc/iot/model/FileStorageMountDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileStorageMountDetails.java new file mode 100644 index 00000000000..a406b5900aa --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileStorageMountDetails.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.iot.model; + +/** + * Details about a File Storage mount for an IoT flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FileStorageMountDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FileStorageMountDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mountPath", "mountTargetId", "exportId"}) + public FileStorageMountDetails(String mountPath, String mountTargetId, String exportId) { + super(); + this.mountPath = mountPath; + this.mountTargetId = mountTargetId; + this.exportId = exportId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not + * include a leading slash or the {@code /mnt} prefix. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mountPath") + private String mountPath; + + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not + * include a leading slash or the {@code /mnt} prefix. + * + * @param mountPath the value to set + * @return this builder + */ + public Builder mountPath(String mountPath) { + this.mountPath = mountPath; + this.__explicitlySet__.add("mountPath"); + return this; + } + /** The OCID of the File Storage mount target. */ + @com.fasterxml.jackson.annotation.JsonProperty("mountTargetId") + private String mountTargetId; + + /** + * The OCID of the File Storage mount target. + * + * @param mountTargetId the value to set + * @return this builder + */ + public Builder mountTargetId(String mountTargetId) { + this.mountTargetId = mountTargetId; + this.__explicitlySet__.add("mountTargetId"); + return this; + } + /** The OCID of the File Storage export. */ + @com.fasterxml.jackson.annotation.JsonProperty("exportId") + private String exportId; + + /** + * The OCID of the File Storage export. + * + * @param exportId the value to set + * @return this builder + */ + public Builder exportId(String exportId) { + this.exportId = exportId; + this.__explicitlySet__.add("exportId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FileStorageMountDetails build() { + FileStorageMountDetails model = + new FileStorageMountDetails(this.mountPath, this.mountTargetId, this.exportId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FileStorageMountDetails model) { + if (model.wasPropertyExplicitlySet("mountPath")) { + this.mountPath(model.getMountPath()); + } + if (model.wasPropertyExplicitlySet("mountTargetId")) { + this.mountTargetId(model.getMountTargetId()); + } + if (model.wasPropertyExplicitlySet("exportId")) { + this.exportId(model.getExportId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not include a + * leading slash or the {@code /mnt} prefix. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mountPath") + private final String mountPath; + + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not include a + * leading slash or the {@code /mnt} prefix. + * + * @return the value + */ + public String getMountPath() { + return mountPath; + } + + /** The OCID of the File Storage mount target. */ + @com.fasterxml.jackson.annotation.JsonProperty("mountTargetId") + private final String mountTargetId; + + /** + * The OCID of the File Storage mount target. + * + * @return the value + */ + public String getMountTargetId() { + return mountTargetId; + } + + /** The OCID of the File Storage export. */ + @com.fasterxml.jackson.annotation.JsonProperty("exportId") + private final String exportId; + + /** + * The OCID of the File Storage export. + * + * @return the value + */ + public String getExportId() { + return exportId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FileStorageMountDetails("); + sb.append("super=").append(super.toString()); + sb.append("mountPath=").append(String.valueOf(this.mountPath)); + sb.append(", mountTargetId=").append(String.valueOf(this.mountTargetId)); + sb.append(", exportId=").append(String.valueOf(this.exportId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FileStorageMountDetails)) { + return false; + } + + FileStorageMountDetails other = (FileStorageMountDetails) o; + return java.util.Objects.equals(this.mountPath, other.mountPath) + && java.util.Objects.equals(this.mountTargetId, other.mountTargetId) + && java.util.Objects.equals(this.exportId, other.exportId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mountPath == null ? 43 : this.mountPath.hashCode()); + result = + (result * PRIME) + + (this.mountTargetId == null ? 43 : this.mountTargetId.hashCode()); + result = (result * PRIME) + (this.exportId == null ? 43 : this.exportId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntime.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntime.java new file mode 100644 index 00000000000..e5906dc71e6 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntime.java @@ -0,0 +1,866 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * An IoT flow runtime is a managed Node-RED runtime in an IoT domain for building and running + * Node-RED flows.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = IotFlowRuntime.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IotFlowRuntime + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "iotDomainId", + "compartmentId", + "displayName", + "description", + "scale", + "logConfig", + "flowRuntimeHost", + "networkConfig", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public IotFlowRuntime( + String id, + String iotDomainId, + String compartmentId, + String displayName, + String description, + Scale scale, + LogConfigDetails logConfig, + String flowRuntimeHost, + NetworkConfigDetails networkConfig, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.iotDomainId = iotDomainId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.scale = scale; + this.logConfig = logConfig; + this.flowRuntimeHost = flowRuntimeHost; + this.networkConfig = networkConfig; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain. + * + * @param iotDomainId the value to set + * @return this builder + */ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + this.__explicitlySet__.add("iotDomainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + * + * @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; + } + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + */ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private LogConfigDetails logConfig; + + public Builder logConfig(LogConfigDetails logConfig) { + this.logConfig = logConfig; + this.__explicitlySet__.add("logConfig"); + return this; + } + /** Hostname of the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("flowRuntimeHost") + private String flowRuntimeHost; + + /** + * Hostname of the IoT flow runtime. + * + * @param flowRuntimeHost the value to set + * @return this builder + */ + public Builder flowRuntimeHost(String flowRuntimeHost) { + this.flowRuntimeHost = flowRuntimeHost; + this.__explicitlySet__.add("flowRuntimeHost"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private NetworkConfigDetails networkConfig; + + public Builder networkConfig(NetworkConfigDetails networkConfig) { + this.networkConfig = networkConfig; + this.__explicitlySet__.add("networkConfig"); + return this; + } + /** The current state of the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + */ + 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 IotFlowRuntime build() { + IotFlowRuntime model = + new IotFlowRuntime( + this.id, + this.iotDomainId, + this.compartmentId, + this.displayName, + this.description, + this.scale, + this.logConfig, + this.flowRuntimeHost, + this.networkConfig, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IotFlowRuntime model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("iotDomainId")) { + this.iotDomainId(model.getIotDomainId()); + } + 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("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("logConfig")) { + this.logConfig(model.getLogConfig()); + } + if (model.wasPropertyExplicitlySet("flowRuntimeHost")) { + this.flowRuntimeHost(model.getFlowRuntimeHost()); + } + if (model.wasPropertyExplicitlySet("networkConfig")) { + this.networkConfig(model.getNetworkConfig()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT + * domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private final String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT + * domain. + * + * @return the value + */ + public String getIotDomainId() { + return iotDomainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + */ + @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 corresponding to the resource. + * + * @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; + } + + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + public enum Scale implements com.oracle.bmc.http.internal.BmcEnum { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Scale.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Scale', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + */ + public Scale getScale() { + return scale; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private final LogConfigDetails logConfig; + + public LogConfigDetails getLogConfig() { + return logConfig; + } + + /** Hostname of the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("flowRuntimeHost") + private final String flowRuntimeHost; + + /** + * Hostname of the IoT flow runtime. + * + * @return the value + */ + public String getFlowRuntimeHost() { + return flowRuntimeHost; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private final NetworkConfigDetails networkConfig; + + public NetworkConfigDetails getNetworkConfig() { + return networkConfig; + } + + /** The current state of the IoT flow runtime. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + 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("IotFlowRuntime("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", iotDomainId=").append(String.valueOf(this.iotDomainId)); + 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(", scale=").append(String.valueOf(this.scale)); + sb.append(", logConfig=").append(String.valueOf(this.logConfig)); + sb.append(", flowRuntimeHost=").append(String.valueOf(this.flowRuntimeHost)); + sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", 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 IotFlowRuntime)) { + return false; + } + + IotFlowRuntime other = (IotFlowRuntime) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && 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.scale, other.scale) + && java.util.Objects.equals(this.logConfig, other.logConfig) + && java.util.Objects.equals(this.flowRuntimeHost, other.flowRuntimeHost) + && java.util.Objects.equals(this.networkConfig, other.networkConfig) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.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.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.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.scale == null ? 43 : this.scale.hashCode()); + result = (result * PRIME) + (this.logConfig == null ? 43 : this.logConfig.hashCode()); + result = + (result * PRIME) + + (this.flowRuntimeHost == null ? 43 : this.flowRuntimeHost.hashCode()); + result = + (result * PRIME) + + (this.networkConfig == null ? 43 : this.networkConfig.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.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-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeCollection.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeCollection.java new file mode 100644 index 00000000000..e57cb55e9a6 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeCollection.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.iot.model; + +/** + * A collection of IoT flow runtime 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: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IotFlowRuntimeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IotFlowRuntimeCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public IotFlowRuntimeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The list of IoT flow runtime summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of IoT flow runtime 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 IotFlowRuntimeCollection build() { + IotFlowRuntimeCollection model = new IotFlowRuntimeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IotFlowRuntimeCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The list of IoT flow runtime summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of IoT flow runtime 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("IotFlowRuntimeCollection("); + 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 IotFlowRuntimeCollection)) { + return false; + } + + IotFlowRuntimeCollection other = (IotFlowRuntimeCollection) 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-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeSummary.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeSummary.java new file mode 100644 index 00000000000..191f405366b --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeSummary.java @@ -0,0 +1,721 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Summary information about an IoT flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IotFlowRuntimeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IotFlowRuntimeSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "iotDomainId", + "compartmentId", + "scale", + "displayName", + "description", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public IotFlowRuntimeSummary( + String id, + String iotDomainId, + String compartmentId, + Scale scale, + String displayName, + String description, + IotFlowRuntime.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.iotDomainId = iotDomainId; + this.compartmentId = compartmentId; + this.scale = scale; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain. + * + * @param iotDomainId the value to set + * @return this builder + */ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + this.__explicitlySet__.add("iotDomainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + */ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + 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; + } + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The current state of the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private IotFlowRuntime.LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(IotFlowRuntime.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + */ + 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 IotFlowRuntimeSummary build() { + IotFlowRuntimeSummary model = + new IotFlowRuntimeSummary( + this.id, + this.iotDomainId, + this.compartmentId, + this.scale, + this.displayName, + this.description, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IotFlowRuntimeSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("iotDomainId")) { + this.iotDomainId(model.getIotDomainId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT + * domain. + */ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private final String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT + * domain. + * + * @return the value + */ + public String getIotDomainId() { + return iotDomainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment corresponding to the resource. + */ + @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 corresponding to the resource. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + public enum Scale implements com.oracle.bmc.http.internal.BmcEnum { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Scale.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Scale', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + */ + public Scale getScale() { + return scale; + } + + /** + * 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; + } + + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The current state of the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final IotFlowRuntime.LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * + * @return the value + */ + public IotFlowRuntime.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + */ + 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("IotFlowRuntimeSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + 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 IotFlowRuntimeSummary)) { + return false; + } + + IotFlowRuntimeSummary other = (IotFlowRuntimeSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && 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.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.scale == null ? 43 : this.scale.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.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-iot/src/main/java/com/oracle/bmc/iot/model/Log.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Log.java new file mode 100644 index 00000000000..7e27e143147 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Log.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Log resource used to validate logConfig.logId for an IoT flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Log.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Log extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public Log() { + super(); + } + + @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 Log build() { + Log model = new Log(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Log model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Log("); + 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 Log)) { + return false; + } + + Log other = (Log) 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-iot/src/main/java/com/oracle/bmc/iot/model/LogConfigDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogConfigDetails.java new file mode 100644 index 00000000000..39a031a0dd1 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogConfigDetails.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Logging configuration for an IoT flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LogConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LogConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"logGroupId", "logId"}) + public LogConfigDetails(String logGroupId, String logId) { + super(); + this.logGroupId = logGroupId; + this.logId = logId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the log group associated with the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the log group associated with the IoT flow runtime. + * + * @param logGroupId the value to set + * @return this builder + */ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } + /** The OCID of the log that receives IoT flow runtime container logs. */ + @com.fasterxml.jackson.annotation.JsonProperty("logId") + private String logId; + + /** + * The OCID of the log that receives IoT flow runtime container logs. + * + * @param logId the value to set + * @return this builder + */ + public Builder logId(String logId) { + this.logId = logId; + this.__explicitlySet__.add("logId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LogConfigDetails build() { + LogConfigDetails model = new LogConfigDetails(this.logGroupId, this.logId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogConfigDetails model) { + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } + if (model.wasPropertyExplicitlySet("logId")) { + this.logId(model.getLogId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the log group associated with the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the log group associated with the IoT flow runtime. + * + * @return the value + */ + public String getLogGroupId() { + return logGroupId; + } + + /** The OCID of the log that receives IoT flow runtime container logs. */ + @com.fasterxml.jackson.annotation.JsonProperty("logId") + private final String logId; + + /** + * The OCID of the log that receives IoT flow runtime container logs. + * + * @return the value + */ + public String getLogId() { + return logId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LogConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("logGroupId=").append(String.valueOf(this.logGroupId)); + sb.append(", logId=").append(String.valueOf(this.logId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LogConfigDetails)) { + return false; + } + + LogConfigDetails other = (LogConfigDetails) o; + return java.util.Objects.equals(this.logGroupId, other.logGroupId) + && java.util.Objects.equals(this.logId, other.logId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); + result = (result * PRIME) + (this.logId == null ? 43 : this.logId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogGroup.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogGroup.java new file mode 100644 index 00000000000..e235831f26f --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogGroup.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Log group resource used to validate logConfig.logGroupId for an IoT flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LogGroup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LogGroup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public LogGroup() { + super(); + } + + @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 LogGroup build() { + LogGroup model = new LogGroup(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogGroup model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LogGroup("); + 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 LogGroup)) { + return false; + } + + LogGroup other = (LogGroup) 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-iot/src/main/java/com/oracle/bmc/iot/model/NetworkConfigDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkConfigDetails.java new file mode 100644 index 00000000000..0962cc0b848 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkConfigDetails.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Network access configuration for an IoT flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NetworkConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NetworkConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"subnetId", "networkSecurityGroupIds", "fileStorageMounts"}) + public NetworkConfigDetails( + String subnetId, + java.util.List networkSecurityGroupIds, + java.util.List fileStorageMounts) { + super(); + this.subnetId = subnetId; + this.networkSecurityGroupIds = networkSecurityGroupIds; + this.fileStorageMounts = fileStorageMounts; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the subnet used by the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The OCID of the subnet used by the IoT flow runtime. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** The OCIDs of the network security groups associated with the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") + private java.util.List networkSecurityGroupIds; + + /** + * The OCIDs of the network security groups associated with the IoT flow runtime. + * + * @param networkSecurityGroupIds the value to set + * @return this builder + */ + public Builder networkSecurityGroupIds(java.util.List networkSecurityGroupIds) { + this.networkSecurityGroupIds = networkSecurityGroupIds; + this.__explicitlySet__.add("networkSecurityGroupIds"); + return this; + } + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must + * contain from 1 to 5 items. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fileStorageMounts") + private java.util.List fileStorageMounts; + + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must + * contain from 1 to 5 items. + * + * @param fileStorageMounts the value to set + * @return this builder + */ + public Builder fileStorageMounts( + java.util.List fileStorageMounts) { + this.fileStorageMounts = fileStorageMounts; + this.__explicitlySet__.add("fileStorageMounts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NetworkConfigDetails build() { + NetworkConfigDetails model = + new NetworkConfigDetails( + this.subnetId, this.networkSecurityGroupIds, this.fileStorageMounts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NetworkConfigDetails model) { + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("networkSecurityGroupIds")) { + this.networkSecurityGroupIds(model.getNetworkSecurityGroupIds()); + } + if (model.wasPropertyExplicitlySet("fileStorageMounts")) { + this.fileStorageMounts(model.getFileStorageMounts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the subnet used by the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The OCID of the subnet used by the IoT flow runtime. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** The OCIDs of the network security groups associated with the IoT flow runtime. */ + @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") + private final java.util.List networkSecurityGroupIds; + + /** + * The OCIDs of the network security groups associated with the IoT flow runtime. + * + * @return the value + */ + public java.util.List getNetworkSecurityGroupIds() { + return networkSecurityGroupIds; + } + + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must + * contain from 1 to 5 items. + */ + @com.fasterxml.jackson.annotation.JsonProperty("fileStorageMounts") + private final java.util.List fileStorageMounts; + + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must + * contain from 1 to 5 items. + * + * @return the value + */ + public java.util.List getFileStorageMounts() { + return fileStorageMounts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NetworkConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", networkSecurityGroupIds=") + .append(String.valueOf(this.networkSecurityGroupIds)); + sb.append(", fileStorageMounts=").append(String.valueOf(this.fileStorageMounts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NetworkConfigDetails)) { + return false; + } + + NetworkConfigDetails other = (NetworkConfigDetails) o; + return java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals( + this.networkSecurityGroupIds, other.networkSecurityGroupIds) + && java.util.Objects.equals(this.fileStorageMounts, other.fileStorageMounts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.networkSecurityGroupIds == null + ? 43 + : this.networkSecurityGroupIds.hashCode()); + result = + (result * PRIME) + + (this.fileStorageMounts == null ? 43 : this.fileStorageMounts.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkSecurityGroup.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkSecurityGroup.java new file mode 100644 index 00000000000..54cb7075e4b --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkSecurityGroup.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.iot.model; + +/** + * Network security group resource used to validate networkConfig.networkSecurityGroupIds for an IoT + * flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NetworkSecurityGroup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NetworkSecurityGroup + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public NetworkSecurityGroup() { + super(); + } + + @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 NetworkSecurityGroup build() { + NetworkSecurityGroup model = new NetworkSecurityGroup(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NetworkSecurityGroup model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NetworkSecurityGroup("); + 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 NetworkSecurityGroup)) { + return false; + } + + NetworkSecurityGroup other = (NetworkSecurityGroup) 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-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java index 582c1327fd9..d364bf86fc1 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java @@ -18,6 +18,12 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { ConfigureDomainDataAccess("CONFIGURE_DOMAIN_DATA_ACCESS"), ConfigureDomainGroupDataAccess("CONFIGURE_DOMAIN_GROUP_DATA_ACCESS"), ChangeIotDomainDataRetention("CHANGE_IOT_DOMAIN_DATA_RETENTION"), + CreateIotFlowRuntime("CREATE_IOT_FLOW_RUNTIME"), + UpdateIotFlowRuntime("UPDATE_IOT_FLOW_RUNTIME"), + DeleteIotFlowRuntime("DELETE_IOT_FLOW_RUNTIME"), + MoveIotFlowRuntime("MOVE_IOT_FLOW_RUNTIME"), + ActivateIotFlowRuntime("ACTIVATE_IOT_FLOW_RUNTIME"), + DeactivateIotFlowRuntime("DEACTIVATE_IOT_FLOW_RUNTIME"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Subnet.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Subnet.java new file mode 100644 index 00000000000..99c2d479147 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Subnet.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Subnet resource used to validate networkConfig.subnetId for an IoT flow runtime.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Subnet.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Subnet extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public Subnet() { + super(); + } + + @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 Subnet build() { + Subnet model = new Subnet(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Subnet model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Subnet("); + 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 Subnet)) { + return false; + } + + Subnet other = (Subnet) 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-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 cc28dde6288..0ba1a5bdf8e 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 @@ -24,6 +24,7 @@ public final class UpdateDigitalTwinInstanceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "connectivityType", "authId", "externalKey", "displayName", @@ -36,6 +37,7 @@ public final class UpdateDigitalTwinInstanceDetails "definedTags" }) public UpdateDigitalTwinInstanceDetails( + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -47,6 +49,7 @@ public UpdateDigitalTwinInstanceDetails( java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.connectivityType = connectivityType; this.authId = authId; this.externalKey = externalKey; this.displayName = displayName; @@ -61,6 +64,21 @@ public UpdateDigitalTwinInstanceDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** 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 @@ -271,6 +289,7 @@ public Builder definedTags( public UpdateDigitalTwinInstanceDetails build() { UpdateDigitalTwinInstanceDetails model = new UpdateDigitalTwinInstanceDetails( + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -289,6 +308,9 @@ public UpdateDigitalTwinInstanceDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateDigitalTwinInstanceDetails model) { + if (model.wasPropertyExplicitlySet("connectivityType")) { + this.connectivityType(model.getConnectivityType()); + } if (model.wasPropertyExplicitlySet("authId")) { this.authId(model.getAuthId()); } @@ -332,6 +354,19 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** 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 @@ -529,7 +564,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateDigitalTwinInstanceDetails("); sb.append("super=").append(super.toString()); - sb.append("authId=").append(String.valueOf(this.authId)); + 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)); sb.append(", description=").append(String.valueOf(this.description)); @@ -554,7 +590,8 @@ public boolean equals(Object o) { } UpdateDigitalTwinInstanceDetails other = (UpdateDigitalTwinInstanceDetails) o; - return java.util.Objects.equals(this.authId, other.authId) + return 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) && java.util.Objects.equals(this.description, other.description) @@ -572,6 +609,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + 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()); diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateIotFlowRuntimeDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateIotFlowRuntimeDetails.java new file mode 100644 index 00000000000..10963f65da1 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateIotFlowRuntimeDetails.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.iot.model; + +/** + * Details for updating an IoT flow runtime. This operation supports partial updates. When + * networkConfig is omitted, the existing network configuration is preserved. When networkConfig is + * provided, the complete network configuration is replaced. To remove the network configuration, + * pass networkConfig as null.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateIotFlowRuntimeDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateIotFlowRuntimeDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scale", + "networkConfig", + "logConfig", + "freeformTags", + "definedTags" + }) + public UpdateIotFlowRuntimeDetails( + String displayName, + String description, + Scale scale, + NetworkConfigDetails networkConfig, + LogConfigDetails logConfig, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.scale = scale; + this.networkConfig = networkConfig; + this.logConfig = logConfig; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + */ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private NetworkConfigDetails networkConfig; + + public Builder networkConfig(NetworkConfigDetails networkConfig) { + this.networkConfig = networkConfig; + this.__explicitlySet__.add("networkConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private LogConfigDetails logConfig; + + public Builder logConfig(LogConfigDetails logConfig) { + this.logConfig = logConfig; + this.__explicitlySet__.add("logConfig"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateIotFlowRuntimeDetails build() { + UpdateIotFlowRuntimeDetails model = + new UpdateIotFlowRuntimeDetails( + this.displayName, + this.description, + this.scale, + this.networkConfig, + this.logConfig, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateIotFlowRuntimeDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("networkConfig")) { + this.networkConfig(model.getNetworkConfig()); + } + if (model.wasPropertyExplicitlySet("logConfig")) { + this.logConfig(model.getLogConfig()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A short description of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + public enum Scale implements com.oracle.bmc.http.internal.BmcEnum { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + map.put(v.getValue(), v); + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Scale: " + key); + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + */ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher + * throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + */ + public Scale getScale() { + return scale; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private final NetworkConfigDetails networkConfig; + + public NetworkConfigDetails getNetworkConfig() { + return networkConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private final LogConfigDetails logConfig; + + public LogConfigDetails getLogConfig() { + return logConfig; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateIotFlowRuntimeDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); + sb.append(", logConfig=").append(String.valueOf(this.logConfig)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateIotFlowRuntimeDetails)) { + return false; + } + + UpdateIotFlowRuntimeDetails other = (UpdateIotFlowRuntimeDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.networkConfig, other.networkConfig) + && java.util.Objects.equals(this.logConfig, other.logConfig) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.scale == null ? 43 : this.scale.hashCode()); + result = + (result * PRIME) + + (this.networkConfig == null ? 43 : this.networkConfig.hashCode()); + result = (result * PRIME) + (this.logConfig == null ? 43 : this.logConfig.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ActivateIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ActivateIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..3a0fe84a799 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ActivateIotFlowRuntimeRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use + * ActivateIotFlowRuntimeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ActivateIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateIotFlowRuntimeRequest, 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ActivateIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateIotFlowRuntimeRequest 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 ActivateIotFlowRuntimeRequest + */ + public ActivateIotFlowRuntimeRequest build() { + ActivateIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ActivateIotFlowRuntimeRequest 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 ActivateIotFlowRuntimeRequest + */ + public ActivateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + ActivateIotFlowRuntimeRequest request = new ActivateIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ActivateIotFlowRuntimeRequest(iotFlowRuntimeId, ifMatch, opcRequestId, + // opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .iotFlowRuntimeId(iotFlowRuntimeId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateIotFlowRuntimeRequest)) { + return false; + } + + ActivateIotFlowRuntimeRequest other = (ActivateIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ChangeIotFlowRuntimeCompartmentRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ChangeIotFlowRuntimeCompartmentRequest.java new file mode 100644 index 00000000000..ed4bbb5db75 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ChangeIotFlowRuntimeCompartmentRequest.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use + * ChangeIotFlowRuntimeCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ChangeIotFlowRuntimeCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** Details for changing the IoT flow runtime compartment. */ + private com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + changeIotFlowRuntimeCompartmentDetails; + + /** Details for changing the IoT flow runtime compartment. */ + public com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + getChangeIotFlowRuntimeCompartmentDetails() { + return changeIotFlowRuntimeCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails getBody$() { + return changeIotFlowRuntimeCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeIotFlowRuntimeCompartmentRequest, + com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails> { + 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** Details for changing the IoT flow runtime compartment. */ + private com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + changeIotFlowRuntimeCompartmentDetails = null; + + /** + * Details for changing the IoT flow runtime compartment. + * + * @param changeIotFlowRuntimeCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeIotFlowRuntimeCompartmentDetails( + com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + changeIotFlowRuntimeCompartmentDetails) { + this.changeIotFlowRuntimeCompartmentDetails = changeIotFlowRuntimeCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ChangeIotFlowRuntimeCompartmentRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + changeIotFlowRuntimeCompartmentDetails(o.getChangeIotFlowRuntimeCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeIotFlowRuntimeCompartmentRequest 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 ChangeIotFlowRuntimeCompartmentRequest + */ + public ChangeIotFlowRuntimeCompartmentRequest build() { + ChangeIotFlowRuntimeCompartmentRequest 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.iot.model.ChangeIotFlowRuntimeCompartmentDetails body) { + changeIotFlowRuntimeCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeIotFlowRuntimeCompartmentRequest 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 ChangeIotFlowRuntimeCompartmentRequest + */ + public ChangeIotFlowRuntimeCompartmentRequest buildWithoutInvocationCallback() { + ChangeIotFlowRuntimeCompartmentRequest request = + new ChangeIotFlowRuntimeCompartmentRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.changeIotFlowRuntimeCompartmentDetails = changeIotFlowRuntimeCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeIotFlowRuntimeCompartmentRequest(iotFlowRuntimeId, + // changeIotFlowRuntimeCompartmentDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .iotFlowRuntimeId(iotFlowRuntimeId) + .changeIotFlowRuntimeCompartmentDetails(changeIotFlowRuntimeCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",changeIotFlowRuntimeCompartmentDetails=") + .append(String.valueOf(this.changeIotFlowRuntimeCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeIotFlowRuntimeCompartmentRequest)) { + return false; + } + + ChangeIotFlowRuntimeCompartmentRequest other = (ChangeIotFlowRuntimeCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals( + this.changeIotFlowRuntimeCompartmentDetails, + other.changeIotFlowRuntimeCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = + (result * PRIME) + + (this.changeIotFlowRuntimeCompartmentDetails == null + ? 43 + : this.changeIotFlowRuntimeCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/CreateIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/CreateIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..811fe261ccd --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/CreateIotFlowRuntimeRequest.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use CreateIotFlowRuntimeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class CreateIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails> { + + /** Details for creating the IoT flow runtime. */ + private com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails createIotFlowRuntimeDetails; + + /** Details for creating the IoT flow runtime. */ + public com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails getCreateIotFlowRuntimeDetails() { + return createIotFlowRuntimeDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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.iot.model.CreateIotFlowRuntimeDetails getBody$() { + return createIotFlowRuntimeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateIotFlowRuntimeRequest, + com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for creating the IoT flow runtime. */ + private com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails createIotFlowRuntimeDetails = + null; + + /** + * Details for creating the IoT flow runtime. + * + * @param createIotFlowRuntimeDetails the value to set + * @return this builder instance + */ + public Builder createIotFlowRuntimeDetails( + com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails createIotFlowRuntimeDetails) { + this.createIotFlowRuntimeDetails = createIotFlowRuntimeDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(CreateIotFlowRuntimeRequest o) { + createIotFlowRuntimeDetails(o.getCreateIotFlowRuntimeDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateIotFlowRuntimeRequest 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 CreateIotFlowRuntimeRequest + */ + public CreateIotFlowRuntimeRequest build() { + CreateIotFlowRuntimeRequest 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.iot.model.CreateIotFlowRuntimeDetails body) { + createIotFlowRuntimeDetails(body); + return this; + } + + /** + * Build the instance of CreateIotFlowRuntimeRequest 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 CreateIotFlowRuntimeRequest + */ + public CreateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + CreateIotFlowRuntimeRequest request = new CreateIotFlowRuntimeRequest(); + request.createIotFlowRuntimeDetails = createIotFlowRuntimeDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateIotFlowRuntimeRequest(createIotFlowRuntimeDetails, 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() + .createIotFlowRuntimeDetails(createIotFlowRuntimeDetails) + .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(",createIotFlowRuntimeDetails=") + .append(String.valueOf(this.createIotFlowRuntimeDetails)); + 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 CreateIotFlowRuntimeRequest)) { + return false; + } + + CreateIotFlowRuntimeRequest other = (CreateIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createIotFlowRuntimeDetails, other.createIotFlowRuntimeDetails) + && 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.createIotFlowRuntimeDetails == null + ? 43 + : this.createIotFlowRuntimeDetails.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-iot/src/main/java/com/oracle/bmc/iot/requests/DeactivateIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeactivateIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..0f4a776ad80 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeactivateIotFlowRuntimeRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use + * DeactivateIotFlowRuntimeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeactivateIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeactivateIotFlowRuntimeRequest, 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(DeactivateIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeactivateIotFlowRuntimeRequest 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 DeactivateIotFlowRuntimeRequest + */ + public DeactivateIotFlowRuntimeRequest build() { + DeactivateIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeactivateIotFlowRuntimeRequest 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 DeactivateIotFlowRuntimeRequest + */ + public DeactivateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + DeactivateIotFlowRuntimeRequest request = new DeactivateIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new DeactivateIotFlowRuntimeRequest(iotFlowRuntimeId, ifMatch, opcRequestId, + // opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .iotFlowRuntimeId(iotFlowRuntimeId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateIotFlowRuntimeRequest)) { + return false; + } + + DeactivateIotFlowRuntimeRequest other = (DeactivateIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeleteIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeleteIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..11745ab9455 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeleteIotFlowRuntimeRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use DeleteIotFlowRuntimeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeleteIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteIotFlowRuntimeRequest, 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(DeleteIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteIotFlowRuntimeRequest 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 DeleteIotFlowRuntimeRequest + */ + public DeleteIotFlowRuntimeRequest build() { + DeleteIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteIotFlowRuntimeRequest 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 DeleteIotFlowRuntimeRequest + */ + public DeleteIotFlowRuntimeRequest buildWithoutInvocationCallback() { + DeleteIotFlowRuntimeRequest request = new DeleteIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteIotFlowRuntimeRequest(iotFlowRuntimeId, 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() + .iotFlowRuntimeId(iotFlowRuntimeId) + .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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + 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 DeleteIotFlowRuntimeRequest)) { + return false; + } + + DeleteIotFlowRuntimeRequest other = (DeleteIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && 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.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.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-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeFlowsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeFlowsRequest.java new file mode 100644 index 00000000000..e96089341cc --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeFlowsRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use + * GetIotFlowRuntimeFlowsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeFlowsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetIotFlowRuntimeFlowsRequest, 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(GetIotFlowRuntimeFlowsRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetIotFlowRuntimeFlowsRequest 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 GetIotFlowRuntimeFlowsRequest + */ + public GetIotFlowRuntimeFlowsRequest build() { + GetIotFlowRuntimeFlowsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetIotFlowRuntimeFlowsRequest 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 GetIotFlowRuntimeFlowsRequest + */ + public GetIotFlowRuntimeFlowsRequest buildWithoutInvocationCallback() { + GetIotFlowRuntimeFlowsRequest request = new GetIotFlowRuntimeFlowsRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.opcRequestId = opcRequestId; + return request; + // new GetIotFlowRuntimeFlowsRequest(iotFlowRuntimeId, 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().iotFlowRuntimeId(iotFlowRuntimeId).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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + 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 GetIotFlowRuntimeFlowsRequest)) { + return false; + } + + GetIotFlowRuntimeFlowsRequest other = (GetIotFlowRuntimeFlowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..5568d7d07dc --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use GetIotFlowRuntimeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetIotFlowRuntimeRequest, 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(GetIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetIotFlowRuntimeRequest 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 GetIotFlowRuntimeRequest + */ + public GetIotFlowRuntimeRequest build() { + GetIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetIotFlowRuntimeRequest 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 GetIotFlowRuntimeRequest + */ + public GetIotFlowRuntimeRequest buildWithoutInvocationCallback() { + GetIotFlowRuntimeRequest request = new GetIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.opcRequestId = opcRequestId; + return request; + // new GetIotFlowRuntimeRequest(iotFlowRuntimeId, 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().iotFlowRuntimeId(iotFlowRuntimeId).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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + 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 GetIotFlowRuntimeRequest)) { + return false; + } + + GetIotFlowRuntimeRequest other = (GetIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java index de213ebcf8d..48c42fc96d0 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java @@ -17,13 +17,13 @@ public class ListDigitalTwinAdaptersRequest /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ private String iotDomainId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ public String getIotDomainId() { return iotDomainId; @@ -214,13 +214,13 @@ public static class Builder /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. */ private String iotDomainId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance 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 abcaed986f9..38c3dbfe11e 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 @@ -17,13 +17,13 @@ public class ListDigitalTwinInstancesRequest /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ private String iotDomainId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ public String getIotDomainId() { return iotDomainId; @@ -221,13 +221,13 @@ public static class Builder /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. */ private String iotDomainId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java index 1582aee6fec..cb9fb9547b0 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java @@ -17,13 +17,13 @@ public class ListDigitalTwinModelsRequest /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ private String iotDomainId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ public String getIotDomainId() { return iotDomainId; @@ -207,13 +207,13 @@ public static class Builder /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. */ private String iotDomainId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java index 75869d179fa..c1dc2a73d8d 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java @@ -17,13 +17,13 @@ public class ListDigitalTwinRelationshipsRequest /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ private String iotDomainId; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT - * domain in which to list digital twin resources. + * domain in which to list IoT resources. */ public String getIotDomainId() { return iotDomainId; @@ -229,13 +229,13 @@ public static class Builder /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. */ private String iotDomainId = null; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * IoT domain in which to list digital twin resources. + * IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java index 7293a287f4c..c9917114d7a 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java @@ -55,10 +55,16 @@ public String getDisplayName() { public com.oracle.bmc.iot.model.IotDomainGroup.LifecycleState getLifecycleState() { return lifecycleState; } - /** Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. */ + /** + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and + * STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. + */ private com.oracle.bmc.iot.model.IotDomainGroup.Type type; - /** Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. */ + /** + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and + * STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. + */ public com.oracle.bmc.iot.model.IotDomainGroup.Type getType() { return type; } @@ -270,11 +276,15 @@ public Builder lifecycleState( return this; } - /** Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. */ + /** + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and + * STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. + */ private com.oracle.bmc.iot.model.IotDomainGroup.Type type = null; /** - * Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and + * STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. * * @param type the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotFlowRuntimesRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotFlowRuntimesRequest.java new file mode 100644 index 00000000000..093e2ae8e00 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotFlowRuntimesRequest.java @@ -0,0 +1,567 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use ListIotFlowRuntimesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ListIotFlowRuntimesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Filter resources by + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a + * valid OCID of the resource type. + */ + private String id; + + /** + * Filter resources by + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a + * valid OCID of the resource type. + */ + public String getId() { + return id; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT + * domain in which to list flow runtime. + */ + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT + * domain in which to list flow runtime. + */ + public String getIotDomainId() { + return iotDomainId; + } + /** Filter resources whose display name matches the specified value. */ + private String displayName; + + /** Filter resources whose display name matches the specified value. */ + public String getDisplayName() { + return displayName; + } + /** Filter resources whose lifecycleState matches the specified value. */ + private com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState lifecycleState; + + /** Filter resources whose lifecycleState matches the specified value. */ + public com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination: The value of the opc-next-page response header from the previous "List" + * call. For important details on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination: The value of the opc-next-page response header from the previous "List" + * call. For important details on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** Specifies sort order to use, either ASC (ascending) or DESC (descending). */ + private SortOrder sortOrder; + + /** Specifies sort order to use, either ASC (ascending) or DESC (descending). */ + 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); + } + }; + + /** Specifies sort order to use, either ASC (ascending) or DESC (descending). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy 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. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListIotFlowRuntimesRequest, 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; + } + + /** + * Filter resources by + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a + * valid OCID of the resource type. + */ + private String id = null; + + /** + * Filter resources by + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a + * valid OCID of the resource type. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain in which to list flow runtime. + */ + private String iotDomainId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * IoT domain in which to list flow runtime. + * + * @param iotDomainId the value to set + * @return this builder instance + */ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + return this; + } + + /** Filter resources whose display name matches the specified value. */ + private String displayName = null; + + /** + * Filter resources whose display name matches the specified value. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Filter resources whose lifecycleState matches the specified value. */ + private com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState lifecycleState = null; + + /** + * Filter resources whose lifecycleState matches the specified value. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination: The value of the opc-next-page response header from the previous + * "List" call. For important details on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination: The value of the opc-next-page response header from the previous + * "List" call. For important details on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Specifies sort order to use, either ASC (ascending) or DESC (descending). */ + private SortOrder sortOrder = null; + + /** + * Specifies sort order to use, either ASC (ascending) or DESC (descending). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(ListIotFlowRuntimesRequest o) { + compartmentId(o.getCompartmentId()); + id(o.getId()); + iotDomainId(o.getIotDomainId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListIotFlowRuntimesRequest 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 ListIotFlowRuntimesRequest + */ + public ListIotFlowRuntimesRequest build() { + ListIotFlowRuntimesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListIotFlowRuntimesRequest 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 ListIotFlowRuntimesRequest + */ + public ListIotFlowRuntimesRequest buildWithoutInvocationCallback() { + ListIotFlowRuntimesRequest request = new ListIotFlowRuntimesRequest(); + request.compartmentId = compartmentId; + request.id = id; + request.iotDomainId = iotDomainId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListIotFlowRuntimesRequest(compartmentId, id, iotDomainId, displayName, + // lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .id(id) + .iotDomainId(iotDomainId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListIotFlowRuntimesRequest)) { + return false; + } + + ListIotFlowRuntimesRequest other = (ListIotFlowRuntimesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeFlowsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeFlowsRequest.java new file mode 100644 index 00000000000..45e0f7c359a --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeFlowsRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use + * UpdateIotFlowRuntimeFlowsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeFlowsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** The opaque flows document for the IoT flow runtime. */ + private Object flowsDocument; + + /** The opaque flows document for the IoT flow runtime. */ + public Object getFlowsDocument() { + return flowsDocument; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public Object getBody$() { + return flowsDocument; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateIotFlowRuntimeFlowsRequest, Object> { + 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** The opaque flows document for the IoT flow runtime. */ + private Object flowsDocument = null; + + /** + * The opaque flows document for the IoT flow runtime. + * + * @param flowsDocument the value to set + * @return this builder instance + */ + public Builder flowsDocument(Object flowsDocument) { + this.flowsDocument = flowsDocument; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(UpdateIotFlowRuntimeFlowsRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + flowsDocument(o.getFlowsDocument()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeFlowsRequest 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 UpdateIotFlowRuntimeFlowsRequest + */ + public UpdateIotFlowRuntimeFlowsRequest build() { + UpdateIotFlowRuntimeFlowsRequest 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$(Object body) { + flowsDocument(body); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeFlowsRequest 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 UpdateIotFlowRuntimeFlowsRequest + */ + public UpdateIotFlowRuntimeFlowsRequest buildWithoutInvocationCallback() { + UpdateIotFlowRuntimeFlowsRequest request = new UpdateIotFlowRuntimeFlowsRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.flowsDocument = flowsDocument; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateIotFlowRuntimeFlowsRequest(iotFlowRuntimeId, flowsDocument, 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() + .iotFlowRuntimeId(iotFlowRuntimeId) + .flowsDocument(flowsDocument) + .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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",flowsDocument=").append(String.valueOf(this.flowsDocument)); + 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 UpdateIotFlowRuntimeFlowsRequest)) { + return false; + } + + UpdateIotFlowRuntimeFlowsRequest other = (UpdateIotFlowRuntimeFlowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.flowsDocument, other.flowsDocument) + && 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.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = + (result * PRIME) + + (this.flowsDocument == null ? 43 : this.flowsDocument.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-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..b588adb46fb --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeRequest.java @@ -0,0 +1,321 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use UpdateIotFlowRuntimeRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT + * flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** The IoT flow runtime details to be updated. */ + private com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails updateIotFlowRuntimeDetails; + + /** The IoT flow runtime details to be updated. */ + public com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails getUpdateIotFlowRuntimeDetails() { + return updateIotFlowRuntimeDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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.iot.model.UpdateIotFlowRuntimeDetails getBody$() { + return updateIotFlowRuntimeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateIotFlowRuntimeRequest, + com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails> { + 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 an + * IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an + * IoT flow runtime. + * + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** The IoT flow runtime details to be updated. */ + private com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails updateIotFlowRuntimeDetails = + null; + + /** + * The IoT flow runtime details to be updated. + * + * @param updateIotFlowRuntimeDetails the value to set + * @return this builder instance + */ + public Builder updateIotFlowRuntimeDetails( + com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails updateIotFlowRuntimeDetails) { + this.updateIotFlowRuntimeDetails = updateIotFlowRuntimeDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(UpdateIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + updateIotFlowRuntimeDetails(o.getUpdateIotFlowRuntimeDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeRequest 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 UpdateIotFlowRuntimeRequest + */ + public UpdateIotFlowRuntimeRequest build() { + UpdateIotFlowRuntimeRequest 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.iot.model.UpdateIotFlowRuntimeDetails body) { + updateIotFlowRuntimeDetails(body); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeRequest 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 UpdateIotFlowRuntimeRequest + */ + public UpdateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + UpdateIotFlowRuntimeRequest request = new UpdateIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.updateIotFlowRuntimeDetails = updateIotFlowRuntimeDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateIotFlowRuntimeRequest(iotFlowRuntimeId, updateIotFlowRuntimeDetails, + // 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() + .iotFlowRuntimeId(iotFlowRuntimeId) + .updateIotFlowRuntimeDetails(updateIotFlowRuntimeDetails) + .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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",updateIotFlowRuntimeDetails=") + .append(String.valueOf(this.updateIotFlowRuntimeDetails)); + 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 UpdateIotFlowRuntimeRequest)) { + return false; + } + + UpdateIotFlowRuntimeRequest other = (UpdateIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals( + this.updateIotFlowRuntimeDetails, other.updateIotFlowRuntimeDetails) + && 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.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = + (result * PRIME) + + (this.updateIotFlowRuntimeDetails == null + ? 43 + : this.updateIotFlowRuntimeDetails.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-iot/src/main/java/com/oracle/bmc/iot/responses/ActivateIotFlowRuntimeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ActivateIotFlowRuntimeResponse.java new file mode 100644 index 00000000000..2569c0774bc --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ActivateIotFlowRuntimeResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ActivateIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ActivateIotFlowRuntimeResponse( + 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< + ActivateIotFlowRuntimeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(ActivateIotFlowRuntimeResponse 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 ActivateIotFlowRuntimeResponse build() { + return new ActivateIotFlowRuntimeResponse( + __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 ActivateIotFlowRuntimeResponse)) { + return false; + } + + ActivateIotFlowRuntimeResponse other = (ActivateIotFlowRuntimeResponse) 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-iot/src/main/java/com/oracle/bmc/iot/responses/ChangeIotFlowRuntimeCompartmentResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ChangeIotFlowRuntimeCompartmentResponse.java new file mode 100644 index 00000000000..d107edb3a0a --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ChangeIotFlowRuntimeCompartmentResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ChangeIotFlowRuntimeCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 ChangeIotFlowRuntimeCompartmentResponse( + 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< + ChangeIotFlowRuntimeCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(ChangeIotFlowRuntimeCompartmentResponse 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 ChangeIotFlowRuntimeCompartmentResponse build() { + return new ChangeIotFlowRuntimeCompartmentResponse( + __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 ChangeIotFlowRuntimeCompartmentResponse)) { + return false; + } + + ChangeIotFlowRuntimeCompartmentResponse other = (ChangeIotFlowRuntimeCompartmentResponse) 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-iot/src/main/java/com/oracle/bmc/iot/responses/CreateIotFlowRuntimeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/CreateIotFlowRuntimeResponse.java new file mode 100644 index 00000000000..f8f96de6fbd --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/CreateIotFlowRuntimeResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class CreateIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { + /** The URI of the created IoT flow runtime. */ + private String location; + + /** + * The URI of the created IoT flow runtime. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 IotFlowRuntime} instance. */ + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; + + /** + * The returned {@code IotFlowRuntime} instance. + * + * @return the value + */ + public com.oracle.bmc.iot.model.IotFlowRuntime getIotFlowRuntime() { + return iotFlowRuntime; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "iotFlowRuntime" + }) + private CreateIotFlowRuntimeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.iotFlowRuntime = iotFlowRuntime; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** The URI of the created IoT flow runtime. */ + private String location; + + /** + * The URI of the created IoT flow runtime. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + 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 [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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 IotFlowRuntime} instance. */ + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; + + /** + * The returned {@code IotFlowRuntime} instance. + * + * @param iotFlowRuntime the value to set + * @return this builder + */ + public Builder iotFlowRuntime(com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { + this.iotFlowRuntime = iotFlowRuntime; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateIotFlowRuntimeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + iotFlowRuntime(o.getIotFlowRuntime()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateIotFlowRuntimeResponse build() { + return new CreateIotFlowRuntimeResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + iotFlowRuntime); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",iotFlowRuntime=").append(String.valueOf(iotFlowRuntime)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateIotFlowRuntimeResponse)) { + return false; + } + + CreateIotFlowRuntimeResponse other = (CreateIotFlowRuntimeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && 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.iotFlowRuntime, other.iotFlowRuntime); + } + + @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.contentLocation == null ? 43 : this.contentLocation.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.iotFlowRuntime == null ? 43 : this.iotFlowRuntime.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeactivateIotFlowRuntimeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeactivateIotFlowRuntimeResponse.java new file mode 100644 index 00000000000..13992da9a0d --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeactivateIotFlowRuntimeResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeactivateIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeactivateIotFlowRuntimeResponse( + 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< + DeactivateIotFlowRuntimeResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(DeactivateIotFlowRuntimeResponse 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 DeactivateIotFlowRuntimeResponse build() { + return new DeactivateIotFlowRuntimeResponse( + __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 DeactivateIotFlowRuntimeResponse)) { + return false; + } + + DeactivateIotFlowRuntimeResponse other = (DeactivateIotFlowRuntimeResponse) 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-iot/src/main/java/com/oracle/bmc/iot/responses/DeleteIotFlowRuntimeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeleteIotFlowRuntimeResponse.java new file mode 100644 index 00000000000..36662869b40 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeleteIotFlowRuntimeResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeleteIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 DeleteIotFlowRuntimeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(DeleteIotFlowRuntimeResponse 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 DeleteIotFlowRuntimeResponse build() { + return new DeleteIotFlowRuntimeResponse( + __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 DeleteIotFlowRuntimeResponse)) { + return false; + } + + DeleteIotFlowRuntimeResponse other = (DeleteIotFlowRuntimeResponse) 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-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeFlowsResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeFlowsResponse.java new file mode 100644 index 00000000000..18bfdb185b1 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeFlowsResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import com.oracle.bmc.InternalSdk; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeFlowsResponse 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.util.Map} instance. */ + private java.util.Map map; + + /** + * The returned {@code java.util.Map} instance. + * + * @return the value + */ + public java.util.Map getMap() { + return map; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "map" + }) + private GetIotFlowRuntimeFlowsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + java.util.Map map) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.map = map; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetIotFlowRuntimeFlowsResponse> { + 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.util.Map} instance. */ + private java.util.Map map; + + /** + * The returned {@code java.util.Map} instance. + * + * @param map the value to set + * @return this builder + */ + public Builder map(java.util.Map map) { + this.map = map; + return this; + } + + /** + * The returned {@code java.util.Map<String, Object>} instance. + * + *

This method allows setting the result using the {@link ResultWrapper} type. + * + * @param resultWrapper the response body type wrapper + * @return this builder + */ + @InternalSdk + public Builder resultWrapper(ResultWrapper resultWrapper) { + this.map = resultWrapper.result; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetIotFlowRuntimeFlowsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + map(o.getMap()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetIotFlowRuntimeFlowsResponse build() { + return new GetIotFlowRuntimeFlowsResponse( + __httpStatusCode__, headers, etag, opcRequestId, map); + } + } + + /** + * A wrapper for the response body type. + *

The wrapper simplifies the deserialization and serialization of the + * {@code java.util.Map as it contains generic parameters.

+ */ + @InternalSdk + public static class ResultWrapper { + + private final java.util.Map result; + + /** Create the wrapper given the response body. */ + @InternalSdk + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public ResultWrapper(java.util.Map result) { + this.result = result; + } + + /** Get the response body. */ + @JsonValue + public java.util.Map getResult() { + return result; + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",map=").append(String.valueOf(map)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetIotFlowRuntimeFlowsResponse)) { + return false; + } + + GetIotFlowRuntimeFlowsResponse other = (GetIotFlowRuntimeFlowsResponse) 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.map, other.map); + } + + @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.map == null ? 43 : this.map.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeResponse.java new file mode 100644 index 00000000000..065a5aaac7f --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeResponse 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 IotFlowRuntime} instance. */ + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; + + /** + * The returned {@code IotFlowRuntime} instance. + * + * @return the value + */ + public com.oracle.bmc.iot.model.IotFlowRuntime getIotFlowRuntime() { + return iotFlowRuntime; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "iotFlowRuntime" + }) + private GetIotFlowRuntimeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.iotFlowRuntime = iotFlowRuntime; + } + + 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 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 IotFlowRuntime} instance. */ + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; + + /** + * The returned {@code IotFlowRuntime} instance. + * + * @param iotFlowRuntime the value to set + * @return this builder + */ + public Builder iotFlowRuntime(com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { + this.iotFlowRuntime = iotFlowRuntime; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetIotFlowRuntimeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + iotFlowRuntime(o.getIotFlowRuntime()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetIotFlowRuntimeResponse build() { + return new GetIotFlowRuntimeResponse( + __httpStatusCode__, headers, etag, opcRequestId, iotFlowRuntime); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",iotFlowRuntime=").append(String.valueOf(iotFlowRuntime)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetIotFlowRuntimeResponse)) { + return false; + } + + GetIotFlowRuntimeResponse other = (GetIotFlowRuntimeResponse) 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.iotFlowRuntime, other.iotFlowRuntime); + } + + @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.iotFlowRuntime == null ? 43 : this.iotFlowRuntime.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ListIotFlowRuntimesResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ListIotFlowRuntimesResponse.java new file mode 100644 index 00000000000..315f31edac1 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ListIotFlowRuntimesResponse.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ListIotFlowRuntimesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code IotFlowRuntimeCollection} instance. */ + private com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection; + + /** + * The returned {@code IotFlowRuntimeCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.iot.model.IotFlowRuntimeCollection getIotFlowRuntimeCollection() { + return iotFlowRuntimeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "iotFlowRuntimeCollection" + }) + private ListIotFlowRuntimesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.iotFlowRuntimeCollection = iotFlowRuntimeCollection; + } + + 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 list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcPrevPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code IotFlowRuntimeCollection} instance. */ + private com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection; + + /** + * The returned {@code IotFlowRuntimeCollection} instance. + * + * @param iotFlowRuntimeCollection the value to set + * @return this builder + */ + public Builder iotFlowRuntimeCollection( + com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection) { + this.iotFlowRuntimeCollection = iotFlowRuntimeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListIotFlowRuntimesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + iotFlowRuntimeCollection(o.getIotFlowRuntimeCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListIotFlowRuntimesResponse build() { + return new ListIotFlowRuntimesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + iotFlowRuntimeCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcPrevPage=").append(String.valueOf(opcPrevPage)); + sb.append(",iotFlowRuntimeCollection=").append(String.valueOf(iotFlowRuntimeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListIotFlowRuntimesResponse)) { + return false; + } + + ListIotFlowRuntimesResponse other = (ListIotFlowRuntimesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcPrevPage, other.opcPrevPage) + && java.util.Objects.equals( + this.iotFlowRuntimeCollection, other.iotFlowRuntimeCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcPrevPage == null ? 43 : this.opcPrevPage.hashCode()); + result = + (result * PRIME) + + (this.iotFlowRuntimeCollection == null + ? 43 + : this.iotFlowRuntimeCollection.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeFlowsResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeFlowsResponse.java new file mode 100644 index 00000000000..5dc286cff8b --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeFlowsResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import com.oracle.bmc.InternalSdk; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeFlowsResponse 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.util.Map} instance. */ + private java.util.Map map; + + /** + * The returned {@code java.util.Map} instance. + * + * @return the value + */ + public java.util.Map getMap() { + return map; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "map" + }) + private UpdateIotFlowRuntimeFlowsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + java.util.Map map) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.map = map; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateIotFlowRuntimeFlowsResponse> { + 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.util.Map} instance. */ + private java.util.Map map; + + /** + * The returned {@code java.util.Map} instance. + * + * @param map the value to set + * @return this builder + */ + public Builder map(java.util.Map map) { + this.map = map; + return this; + } + + /** + * The returned {@code java.util.Map<String, Object>} instance. + * + *

This method allows setting the result using the {@link ResultWrapper} type. + * + * @param resultWrapper the response body type wrapper + * @return this builder + */ + @InternalSdk + public Builder resultWrapper(ResultWrapper resultWrapper) { + this.map = resultWrapper.result; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateIotFlowRuntimeFlowsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + map(o.getMap()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateIotFlowRuntimeFlowsResponse build() { + return new UpdateIotFlowRuntimeFlowsResponse( + __httpStatusCode__, headers, etag, opcRequestId, map); + } + } + + /** + * A wrapper for the response body type. + *

The wrapper simplifies the deserialization and serialization of the + * {@code java.util.Map as it contains generic parameters.

+ */ + @InternalSdk + public static class ResultWrapper { + + private final java.util.Map result; + + /** Create the wrapper given the response body. */ + @InternalSdk + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public ResultWrapper(java.util.Map result) { + this.result = result; + } + + /** Get the response body. */ + @JsonValue + public java.util.Map getResult() { + return result; + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",map=").append(String.valueOf(map)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateIotFlowRuntimeFlowsResponse)) { + return false; + } + + UpdateIotFlowRuntimeFlowsResponse other = (UpdateIotFlowRuntimeFlowsResponse) 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.map, other.map); + } + + @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.map == null ? 43 : this.map.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeResponse.java new file mode 100644 index 00000000000..dae59e1e5cf --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 UpdateIotFlowRuntimeResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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(UpdateIotFlowRuntimeResponse 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 UpdateIotFlowRuntimeResponse build() { + return new UpdateIotFlowRuntimeResponse( + __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 UpdateIotFlowRuntimeResponse)) { + return false; + } + + UpdateIotFlowRuntimeResponse other = (UpdateIotFlowRuntimeResponse) 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-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 cad1bd54769..0617e7ef772 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 @@ -67,6 +67,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.ConfigureIotDomainDataAccessDetails", @@ -184,6 +198,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails$Scale", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.DataRetentionPeriodsInDays", @@ -469,6 +503,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.FileFamily", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.FileFamily$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.FileStorageMountDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.FileStorageMountDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.InvokeRawBinaryCommandDetails", @@ -632,12 +694,142 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntime", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntime$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntime$Scale", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntime$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntimeCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntimeCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntimeSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntimeSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.IotFlowRuntimeSummary$Scale", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.LifecycleState", "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.Log", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.Log$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.LogConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.LogConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.LogGroup", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.LogGroup$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.NetworkConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.NetworkConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.NetworkSecurityGroup", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.NetworkSecurityGroup$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.OperationStatus", @@ -664,6 +856,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.Subnet", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.Subnet$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.UpdateDigitalTwinAdapterDetails", @@ -748,6 +954,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails$Scale", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.iot.model.Vcn", @@ -893,5 +1119,19 @@ "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse$ResultWrapper", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse$ResultWrapper", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true } ] \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 8899fdb52ab..26e2fb5a4f2 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 066ee49e048..0a078cb63f5 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 7a8386fc394..bc52c70d822 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index c561d643837..5f48fcdb941 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 88b0038edf3..b5e4bccb36b 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index d8c5ae3b61f..93a0fe72ffe 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 8c28f52a960..bc31bbffa4d 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 9720709510c..0db5e0020d2 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 5b67463ca81..8b913bf4d09 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 80a60bb8d0e..2438a359cc8 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 4cbf556510a..b1e52c3ac60 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 248e9a7e443..3cdf9c054a9 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 3c4c1d847e4..6154e2cd934 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 96d2038f3c2..d1672d2d420 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 3bff66823d8..b6d497a6b42 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index d28c1011332..21be8679350 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 91fcd802ce3..01e477bad85 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index e9df9bbd430..6aad4f485b0 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index e555008be62..f9d71846d6f 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 0d9c06aa4b7..974b0c69917 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 7342ec6c19e..33562bfe541 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index e34d4fc827a..70e714c06a8 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 68cad40fef5..a643cb14d21 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 63b89bbf25c..6d1a5b40e92 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index c4e47146c54..afd933798b8 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index b4ae299b535..18df49e723d 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 0c1daecd556..9b5d8508bb9 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 47a0ebf40be..421b99d4e9a 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 2623ddbd122..3e70e1c0409 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ 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 7502965dcb9..27a0b511e69 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.95.0 + 3.95.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.95.0 + 3.95.1 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 25d78fe3f95..ac8b5c83079 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.95.0 + 3.95.1 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.95.0 + 3.95.1 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index f8850c29b4c..29ab974bb3a 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.95.0 + 3.95.1 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index af0d8a6bb87..c61a0514716 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 0bd8a3fbedd..72a9833cabb 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index dee28a08f0f..755e54d04be 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index d19906992c6..c90d42ed033 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index a6e4f684120..e7e25d55ae1 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index da411d9fb7e..5d92b29e726 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 0ee88687707..97092d5a398 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index e51af203ec0..d3f35149076 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 7ee963c49ac..6867dde16a6 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index c101e52c5d9..30c00d45921 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 0571f48c6dc..5b759f1d121 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 3d11c0a8424..7cced4fe153 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 1f6ea48d6e8..33f7191c1fb 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 5e6bdfbebda..1c9a0312997 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 61587fc88d9..04a808868b0 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index fe970eb959d..465230ca158 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 39c105964fc..e1b8c1f271e 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 425c9604e18..93c5b85f4c6 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ 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 3c8ebdb5647..c0d0cf8669c 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.95.0 + 3.95.1 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.95.0 + 3.95.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.0 + 3.95.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 71a507bc2ed..4e561f8b579 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.95.0 + 3.95.1 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.95.0 + 3.95.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.95.0 + 3.95.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.95.0 + 3.95.1 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index ca3c0ac82f0..8143e9d76f5 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.95.0 + 3.95.1 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.95.0 + 3.95.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.95.0 + 3.95.1 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 99183f1e212..06c31947901 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.95.0 + 3.95.1 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index b153d7834e0..825a958cd51 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index cc245d46ce2..e9a3a4c456f 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index ed5601cd7bc..10a96538585 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index ea166c43115..00bd65a92fb 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 6ad62597a0d..51bfa75cef9 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 9e820e3bd34..cfe0c1749d5 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index a78a43d086c..24bd218c4ce 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 56e35a6746a..45be93260ea 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index d714c391bea..5eab090ca1f 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 263d56efbb7..795b3aab410 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index f33d6d2821f..a1bac7c2b24 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 50be2ad6ca9..f0108cf3b78 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 17a75804fae..b547a80f337 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index 13be350096c..1ea1108faf3 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index f028e2b0421..23c6e0fc4a5 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index c60e8bd38ff..2419e845156 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ 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 a4690475afa..e13f318e86f 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.95.0 + 3.95.1 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 74fd1714722..4110b471892 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index e4bad7aec31..b3051b6becf 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index c56d26f9286..40206b3690d 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index fa48072ea89..099dfc4230e 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 82751672496..fee5f2cebe3 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 83ee7f24d47..b375ed99bff 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 65fb4b7c353..3d8d4cdb2ef 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 933177f57e6..e63b501274b 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index a3a5c2baf69..5fbe9eb62a5 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index ad40f642279..8d09e576b07 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 96ae69a761f..940ba75e086 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 7db2de69780..068e21d50c5 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index adb645386ac..c20af5dfcb7 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 96bf2597fb8..88572aae3c9 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index e88a8cd391a..51df0b8a922 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 9f0bef5f581..66ef8192eb5 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index ad1d8d75579..7b1e33d4401 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 0d6a4e10fda..adf7bdec23e 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.95.0 + 3.95.1 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0272e6fe3e3..b592aade6db 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.95.0 + 3.95.1 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -682,6 +682,7 @@ bmc-datacc bmc-ddfs bmc-distributeddatabasev26 + bmc-clusterhealth bmc-containerengine bmc-keymanagement bmc-resourcesearch