diff --git a/CHANGELOG.md b/CHANGELOG.md index 9856c922d91..de82d7e4a75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.41.2 - 2024-05-14 +### Added +- Support for the Marketplace Private Offer service +- Support for resizing local file systems in the Database service +- Support for PPv2 (Proxy Protocol version 2) in the Load Balancer service +- Support for custom return path for sent emails in the Email Delivery service +- Support for session resumption in the Load Balancer service + ## 3.41.1 - 2024-05-07 ### Added - Support for resizing of local file systems in the Database service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 903f7a93dfe..eb38918a427 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index c7f0bc20608..e9f1e44bde9 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.41.1 + 3.41.2 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.1 + 3.41.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 3d765b219be..bc1322c6f1d 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.41.1 + 3.41.2 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.1 + 3.41.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.1 + 3.41.2 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index d26f854b519..d449e67097b 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.41.1 + 3.41.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 1966cda98fa..a36b0a2b4a5 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.41.1 + 3.41.2 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 compile com.oracle.oci.sdk oci-java-sdk-core - 3.41.1 + 3.41.2 test com.oracle.oci.sdk oci-java-sdk-identity - 3.41.1 + 3.41.2 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.41.1 + 3.41.2 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 0ce59fcab24..c2e9c222907 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.41.1 + 3.41.2 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index a695de14f1b..6cfd017f501 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.41.1 + 3.41.2 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.41.1 + 3.41.2 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.41.1 + 3.41.2 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index ae7684196fd..df540fc2b82 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.41.1 + 3.41.2 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 232013f600e..fb004045945 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.41.1 + 3.41.2 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.41.1 + 3.41.2 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.1 + 3.41.2 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 9b7d50936c8..cec3c15e80e 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.41.1 + 3.41.2 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.41.1 + 3.41.2 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index c6d302fc266..b9655b3b2b3 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index fc5a2a41fbe..78a9d113940 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index e5ee3198d04..218ebb49998 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index dff7e92b2eb..c4a35af96ee 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index a5700011a5c..a43072e7b49 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 8cd0a165dbb..0020f8d7cb4 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 5e92a24b3b0..d0e80d41732 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 1945be6f52d..91d7edf175d 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index c447626ac4d..d6a36e50bbb 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 2f9d551ffdc..a6c4710ed1f 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 761dfdc04c0..8ef1330a8b2 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 8784a72b1b7..519a2babaff 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index eac498a3c7d..f428d5b783e 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index d52256ae8cf..c827457edec 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 41526205177..7e27999eefa 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 096f3a27800..dc9736e7c8a 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index f3e785bfa0d..8dc41f2cc44 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 5094ffeba37..a9a548c1e66 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 742c0637253..ab29ae5d572 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 8c2788f37e0..6a1a8789f34 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 3cb49d30772..1f8b2756909 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index a733299b777..f3c5c9648b9 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.41.1 + 3.41.2 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,915 +38,921 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-audit - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-core - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-database - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-dns - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-email - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-identity - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-waas - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-ons - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-budget - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-limits - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-functions - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-events - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-dts - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-oce - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-oda - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-integration - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-vault - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-bds - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-cims - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-logging - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-sch - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-rover - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-jms - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-devops - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-waf - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-usage - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-adm - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-waa - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-opa - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-queue - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-redis - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-psql - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.41.1 + 3.41.2 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.41.1 + 3.41.2 + false + + + com.oracle.oci.sdk + oci-java-sdk-marketplaceprivateoffer + 3.41.2 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 6f0f84164e7..305e4bd9eb8 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 9cced20ba22..22b244e72d8 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 0885d6f4c7e..c684c67a678 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index ba5cf38b320..1cbc8e707f4 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 2689301a84a..5fc4c72dd54 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 1768a1ae14e..cd9d5af5ce2 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 4828c955923..c14f2261f4e 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index f75f0d1a7a5..996387aa479 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index d79a35fb721..a3f68eb1786 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 31635cbc129..a4126414f54 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index bae3910760c..bcbc810e80e 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.41.1 + 3.41.2 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.41.1 + 3.41.2 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.1 + 3.41.2 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 d83ae71da8d..7dc8f9d0eee 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.41.1 + 3.41.2 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.41.1 + 3.41.2 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.1 + 3.41.2 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 6e00b708ae8..512cde6e9c4 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.41.1 + 3.41.2 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 8ecd2527b7a..c05ae5e3bac 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.41.1 + 3.41.2 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 316b2712204..f1971787172 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index a524f123f92..120e4ae6ee3 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 01db4fc496b..86129c6e2c8 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 8d71b6c035b..c86b27e041c 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index b7e41760af1..c4816c22191 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 2d59e0cd9b9..4d1e7a0d8cf 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.1 + 3.41.2 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 8165fa2a98d..d62ebfd9465 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index c02bd98ffd0..ae26989272f 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.1 + 3.41.2 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java index bad7b4668e0..a0b9c36dd5a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateVmClusterDetails.java @@ -47,7 +47,8 @@ public final class CreateVmClusterDetails "freeformTags", "definedTags", "dataCollectionOptions", - "systemVersion" + "systemVersion", + "fileSystemConfigurationDetails" }) public CreateVmClusterDetails( String compartmentId, @@ -70,7 +71,8 @@ public CreateVmClusterDetails( java.util.Map freeformTags, java.util.Map> definedTags, DataCollectionOptions dataCollectionOptions, - String systemVersion) { + String systemVersion, + java.util.List fileSystemConfigurationDetails) { super(); this.compartmentId = compartmentId; this.displayName = displayName; @@ -93,6 +95,7 @@ public CreateVmClusterDetails( this.definedTags = definedTags; this.dataCollectionOptions = dataCollectionOptions; this.systemVersion = systemVersion; + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -457,6 +460,22 @@ public Builder systemVersion(String systemVersion) { this.__explicitlySet__.add("systemVersion"); return this; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @param fileSystemConfigurationDetails the value to set + * @return this builder + */ + public Builder fileSystemConfigurationDetails( + java.util.List fileSystemConfigurationDetails) { + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; + this.__explicitlySet__.add("fileSystemConfigurationDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -484,7 +503,8 @@ public CreateVmClusterDetails build() { this.freeformTags, this.definedTags, this.dataCollectionOptions, - this.systemVersion); + this.systemVersion, + this.fileSystemConfigurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -556,6 +576,9 @@ public Builder copy(CreateVmClusterDetails model) { if (model.wasPropertyExplicitlySet("systemVersion")) { this.systemVersion(model.getSystemVersion()); } + if (model.wasPropertyExplicitlySet("fileSystemConfigurationDetails")) { + this.fileSystemConfigurationDetails(model.getFileSystemConfigurationDetails()); + } return this; } } @@ -920,6 +943,19 @@ public String getSystemVersion() { return systemVersion; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private final java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @return the value + */ + public java.util.List getFileSystemConfigurationDetails() { + return fileSystemConfigurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -958,6 +994,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); sb.append(", systemVersion=").append(String.valueOf(this.systemVersion)); + sb.append(", fileSystemConfigurationDetails=") + .append(String.valueOf(this.fileSystemConfigurationDetails)); sb.append(")"); return sb.toString(); } @@ -996,6 +1034,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) && java.util.Objects.equals(this.systemVersion, other.systemVersion) + && java.util.Objects.equals( + this.fileSystemConfigurationDetails, other.fileSystemConfigurationDetails) && super.equals(other); } @@ -1064,6 +1104,11 @@ public int hashCode() { result = (result * PRIME) + (this.systemVersion == null ? 43 : this.systemVersion.hashCode()); + result = + (result * PRIME) + + (this.fileSystemConfigurationDetails == null + ? 43 + : this.fileSystemConfigurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java index 70af80adaba..261c8d7070d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java @@ -70,6 +70,7 @@ public final class ExadataInfrastructure "isCpsOfflineReportEnabled", "networkBondingModeDetails", "availabilityDomain", + "definedFileSystemConfigurations", "freeformTags", "definedTags" }) @@ -120,6 +121,7 @@ public ExadataInfrastructure( Boolean isCpsOfflineReportEnabled, NetworkBondingModeDetails networkBondingModeDetails, String availabilityDomain, + java.util.List definedFileSystemConfigurations, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -169,6 +171,7 @@ public ExadataInfrastructure( this.isCpsOfflineReportEnabled = isCpsOfflineReportEnabled; this.networkBondingModeDetails = networkBondingModeDetails; this.availabilityDomain = availabilityDomain; + this.definedFileSystemConfigurations = definedFileSystemConfigurations; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -917,6 +920,22 @@ public Builder availabilityDomain(String availabilityDomain) { this.__explicitlySet__.add("availabilityDomain"); return this; } + /** Details of the file system configuration of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("definedFileSystemConfigurations") + private java.util.List definedFileSystemConfigurations; + + /** + * Details of the file system configuration of the Exadata infrastructure. + * + * @param definedFileSystemConfigurations the value to set + * @return this builder + */ + public Builder definedFileSystemConfigurations( + java.util.List definedFileSystemConfigurations) { + this.definedFileSystemConfigurations = definedFileSystemConfigurations; + this.__explicitlySet__.add("definedFileSystemConfigurations"); + 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 @@ -1017,6 +1036,7 @@ public ExadataInfrastructure build() { this.isCpsOfflineReportEnabled, this.networkBondingModeDetails, this.availabilityDomain, + this.definedFileSystemConfigurations, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -1165,6 +1185,9 @@ public Builder copy(ExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("availabilityDomain")) { this.availabilityDomain(model.getAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("definedFileSystemConfigurations")) { + this.definedFileSystemConfigurations(model.getDefinedFileSystemConfigurations()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1988,6 +2011,19 @@ public String getAvailabilityDomain() { return availabilityDomain; } + /** Details of the file system configuration of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("definedFileSystemConfigurations") + private final java.util.List definedFileSystemConfigurations; + + /** + * Details of the file system configuration of the Exadata infrastructure. + * + * @return the value + */ + public java.util.List getDefinedFileSystemConfigurations() { + return definedFileSystemConfigurations; + } + /** * 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 @@ -2105,6 +2141,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkBondingModeDetails=") .append(String.valueOf(this.networkBondingModeDetails)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", definedFileSystemConfigurations=") + .append(String.valueOf(this.definedFileSystemConfigurations)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -2177,6 +2215,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.networkBondingModeDetails, other.networkBondingModeDetails) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -2332,6 +2372,11 @@ public int hashCode() { + (this.availabilityDomain == null ? 43 : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.definedFileSystemConfigurations == null + ? 43 + : this.definedFileSystemConfigurations.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java index aa0ed721f6e..203895d5b73 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java @@ -73,6 +73,7 @@ public final class ExadataInfrastructureSummary "isCpsOfflineReportEnabled", "networkBondingModeDetails", "availabilityDomain", + "definedFileSystemConfigurations", "freeformTags", "definedTags" }) @@ -123,6 +124,7 @@ public ExadataInfrastructureSummary( Boolean isCpsOfflineReportEnabled, NetworkBondingModeDetails networkBondingModeDetails, String availabilityDomain, + java.util.List definedFileSystemConfigurations, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -172,6 +174,7 @@ public ExadataInfrastructureSummary( this.isCpsOfflineReportEnabled = isCpsOfflineReportEnabled; this.networkBondingModeDetails = networkBondingModeDetails; this.availabilityDomain = availabilityDomain; + this.definedFileSystemConfigurations = definedFileSystemConfigurations; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -920,6 +923,22 @@ public Builder availabilityDomain(String availabilityDomain) { this.__explicitlySet__.add("availabilityDomain"); return this; } + /** Details of the file system configuration of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("definedFileSystemConfigurations") + private java.util.List definedFileSystemConfigurations; + + /** + * Details of the file system configuration of the Exadata infrastructure. + * + * @param definedFileSystemConfigurations the value to set + * @return this builder + */ + public Builder definedFileSystemConfigurations( + java.util.List definedFileSystemConfigurations) { + this.definedFileSystemConfigurations = definedFileSystemConfigurations; + this.__explicitlySet__.add("definedFileSystemConfigurations"); + 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 @@ -1020,6 +1039,7 @@ public ExadataInfrastructureSummary build() { this.isCpsOfflineReportEnabled, this.networkBondingModeDetails, this.availabilityDomain, + this.definedFileSystemConfigurations, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -1168,6 +1188,9 @@ public Builder copy(ExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("availabilityDomain")) { this.availabilityDomain(model.getAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("definedFileSystemConfigurations")) { + this.definedFileSystemConfigurations(model.getDefinedFileSystemConfigurations()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1991,6 +2014,19 @@ public String getAvailabilityDomain() { return availabilityDomain; } + /** Details of the file system configuration of the Exadata infrastructure. */ + @com.fasterxml.jackson.annotation.JsonProperty("definedFileSystemConfigurations") + private final java.util.List definedFileSystemConfigurations; + + /** + * Details of the file system configuration of the Exadata infrastructure. + * + * @return the value + */ + public java.util.List getDefinedFileSystemConfigurations() { + return definedFileSystemConfigurations; + } + /** * 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 @@ -2108,6 +2144,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkBondingModeDetails=") .append(String.valueOf(this.networkBondingModeDetails)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", definedFileSystemConfigurations=") + .append(String.valueOf(this.definedFileSystemConfigurations)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -2180,6 +2218,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.networkBondingModeDetails, other.networkBondingModeDetails) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.definedFileSystemConfigurations, other.definedFileSystemConfigurations) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -2335,6 +2375,11 @@ public int hashCode() { + (this.availabilityDomain == null ? 43 : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.definedFileSystemConfigurations == null + ? 43 + : this.definedFileSystemConfigurations.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java index e48f8284baa..ec65087cc39 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateVmClusterDetails.java @@ -39,7 +39,8 @@ public final class UpdateVmClusterDetails "updateDetails", "freeformTags", "definedTags", - "dataCollectionOptions" + "dataCollectionOptions", + "fileSystemConfigurationDetails" }) public UpdateVmClusterDetails( Integer cpuCoreCount, @@ -54,7 +55,8 @@ public UpdateVmClusterDetails( VmClusterUpdateDetails updateDetails, java.util.Map freeformTags, java.util.Map> definedTags, - DataCollectionOptions dataCollectionOptions) { + DataCollectionOptions dataCollectionOptions, + java.util.List fileSystemConfigurationDetails) { super(); this.cpuCoreCount = cpuCoreCount; this.ocpuCount = ocpuCount; @@ -69,6 +71,7 @@ public UpdateVmClusterDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.dataCollectionOptions = dataCollectionOptions; + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -277,6 +280,22 @@ public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions this.__explicitlySet__.add("dataCollectionOptions"); return this; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @param fileSystemConfigurationDetails the value to set + * @return this builder + */ + public Builder fileSystemConfigurationDetails( + java.util.List fileSystemConfigurationDetails) { + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; + this.__explicitlySet__.add("fileSystemConfigurationDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -296,7 +315,8 @@ public UpdateVmClusterDetails build() { this.updateDetails, this.freeformTags, this.definedTags, - this.dataCollectionOptions); + this.dataCollectionOptions, + this.fileSystemConfigurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -344,6 +364,9 @@ public Builder copy(UpdateVmClusterDetails model) { if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { this.dataCollectionOptions(model.getDataCollectionOptions()); } + if (model.wasPropertyExplicitlySet("fileSystemConfigurationDetails")) { + this.fileSystemConfigurationDetails(model.getFileSystemConfigurationDetails()); + } return this; } } @@ -568,6 +591,19 @@ public DataCollectionOptions getDataCollectionOptions() { return dataCollectionOptions; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private final java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @return the value + */ + public java.util.List getFileSystemConfigurationDetails() { + return fileSystemConfigurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -596,6 +632,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", fileSystemConfigurationDetails=") + .append(String.valueOf(this.fileSystemConfigurationDetails)); sb.append(")"); return sb.toString(); } @@ -624,6 +662,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals( + this.fileSystemConfigurationDetails, other.fileSystemConfigurationDetails) && super.equals(other); } @@ -666,6 +706,11 @@ public int hashCode() { + (this.dataCollectionOptions == null ? 43 : this.dataCollectionOptions.hashCode()); + result = + (result * PRIME) + + (this.fileSystemConfigurationDetails == null + ? 43 + : this.fileSystemConfigurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java index e41d597e75a..7f3c8a39c08 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java @@ -50,7 +50,8 @@ public final class VmCluster extends com.oracle.bmc.http.client.internal.Explici "freeformTags", "definedTags", "dataCollectionOptions", - "giSoftwareImageId" + "giSoftwareImageId", + "fileSystemConfigurationDetails" }) public VmCluster( String id, @@ -81,7 +82,8 @@ public VmCluster( java.util.Map freeformTags, java.util.Map> definedTags, DataCollectionOptions dataCollectionOptions, - String giSoftwareImageId) { + String giSoftwareImageId, + java.util.List fileSystemConfigurationDetails) { super(); this.id = id; this.compartmentId = compartmentId; @@ -112,6 +114,7 @@ public VmCluster( this.definedTags = definedTags; this.dataCollectionOptions = dataCollectionOptions; this.giSoftwareImageId = giSoftwareImageId; + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -612,6 +615,22 @@ public Builder giSoftwareImageId(String giSoftwareImageId) { this.__explicitlySet__.add("giSoftwareImageId"); return this; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @param fileSystemConfigurationDetails the value to set + * @return this builder + */ + public Builder fileSystemConfigurationDetails( + java.util.List fileSystemConfigurationDetails) { + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; + this.__explicitlySet__.add("fileSystemConfigurationDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -647,7 +666,8 @@ public VmCluster build() { this.freeformTags, this.definedTags, this.dataCollectionOptions, - this.giSoftwareImageId); + this.giSoftwareImageId, + this.fileSystemConfigurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -743,6 +763,9 @@ public Builder copy(VmCluster model) { if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { this.giSoftwareImageId(model.getGiSoftwareImageId()); } + if (model.wasPropertyExplicitlySet("fileSystemConfigurationDetails")) { + this.fileSystemConfigurationDetails(model.getFileSystemConfigurationDetails()); + } return this; } } @@ -1286,6 +1309,19 @@ public String getGiSoftwareImageId() { return giSoftwareImageId; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private final java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @return the value + */ + public java.util.List getFileSystemConfigurationDetails() { + return fileSystemConfigurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -1333,6 +1369,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); + sb.append(", fileSystemConfigurationDetails=") + .append(String.valueOf(this.fileSystemConfigurationDetails)); sb.append(")"); return sb.toString(); } @@ -1380,6 +1418,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) + && java.util.Objects.equals( + this.fileSystemConfigurationDetails, other.fileSystemConfigurationDetails) && super.equals(other); } @@ -1470,6 +1510,11 @@ public int hashCode() { result = (result * PRIME) + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); + result = + (result * PRIME) + + (this.fileSystemConfigurationDetails == null + ? 43 + : this.fileSystemConfigurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java index 0b0616913ed..479d3a31451 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java @@ -51,7 +51,8 @@ public final class VmClusterSummary "freeformTags", "definedTags", "dataCollectionOptions", - "giSoftwareImageId" + "giSoftwareImageId", + "fileSystemConfigurationDetails" }) public VmClusterSummary( String id, @@ -82,7 +83,8 @@ public VmClusterSummary( java.util.Map freeformTags, java.util.Map> definedTags, DataCollectionOptions dataCollectionOptions, - String giSoftwareImageId) { + String giSoftwareImageId, + java.util.List fileSystemConfigurationDetails) { super(); this.id = id; this.compartmentId = compartmentId; @@ -113,6 +115,7 @@ public VmClusterSummary( this.definedTags = definedTags; this.dataCollectionOptions = dataCollectionOptions; this.giSoftwareImageId = giSoftwareImageId; + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -613,6 +616,22 @@ public Builder giSoftwareImageId(String giSoftwareImageId) { this.__explicitlySet__.add("giSoftwareImageId"); return this; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @param fileSystemConfigurationDetails the value to set + * @return this builder + */ + public Builder fileSystemConfigurationDetails( + java.util.List fileSystemConfigurationDetails) { + this.fileSystemConfigurationDetails = fileSystemConfigurationDetails; + this.__explicitlySet__.add("fileSystemConfigurationDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -648,7 +667,8 @@ public VmClusterSummary build() { this.freeformTags, this.definedTags, this.dataCollectionOptions, - this.giSoftwareImageId); + this.giSoftwareImageId, + this.fileSystemConfigurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -744,6 +764,9 @@ public Builder copy(VmClusterSummary model) { if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { this.giSoftwareImageId(model.getGiSoftwareImageId()); } + if (model.wasPropertyExplicitlySet("fileSystemConfigurationDetails")) { + this.fileSystemConfigurationDetails(model.getFileSystemConfigurationDetails()); + } return this; } } @@ -1287,6 +1310,19 @@ public String getGiSoftwareImageId() { return giSoftwareImageId; } + /** Details of the file system configuration of the VM cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileSystemConfigurationDetails") + private final java.util.List fileSystemConfigurationDetails; + + /** + * Details of the file system configuration of the VM cluster. + * + * @return the value + */ + public java.util.List getFileSystemConfigurationDetails() { + return fileSystemConfigurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -1334,6 +1370,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); + sb.append(", fileSystemConfigurationDetails=") + .append(String.valueOf(this.fileSystemConfigurationDetails)); sb.append(")"); return sb.toString(); } @@ -1381,6 +1419,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) + && java.util.Objects.equals( + this.fileSystemConfigurationDetails, other.fileSystemConfigurationDetails) && super.equals(other); } @@ -1471,6 +1511,11 @@ public int hashCode() { result = (result * PRIME) + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); + result = + (result * PRIME) + + (this.fileSystemConfigurationDetails == null + ? 43 + : this.fileSystemConfigurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index efdf61c9743..813b380cbe1 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index a0e5fa9140f..06436317bc0 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index f43dec5cdb8..1352322c657 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index f1ee8065bde..f11f2f1e595 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 8fa6bc4abe3..d57624c9f0f 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 7393a2b20d2..b3170a6ab1d 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 5e2d0e839c9..48beeff4a32 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index c54e42b60d2..ae34daf67fe 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 4aa1c9320c6..6d028f2a7c9 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 86834c7f13d..bf455db3330 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 178156a3e84..ed86bb99943 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index f06729a3505..8cd8998c71a 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index ef352442f06..c695fdb8a08 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 592f8d98ca0..d332d3cd8c5 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.1 + 3.41.2 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index c01246dda78..b995b204afd 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 3c4dde918d8..d709ba633fd 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/Email.java b/bmc-email/src/main/java/com/oracle/bmc/email/Email.java index 4a478245cbd..53722eb3d71 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/Email.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/Email.java @@ -145,6 +145,22 @@ ChangeEmailDomainCompartmentResponse changeEmailDomainCompartment( */ CreateEmailDomainResponse createEmailDomain(CreateEmailDomainRequest request); + /** + * Creates a new email return path. Avoid entering confidential information. + * + * @param request The request 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 + * CreateEmailReturnPath API. + */ + CreateEmailReturnPathResponse createEmailReturnPath(CreateEmailReturnPathRequest request); + /** * Creates a sender for a tenancy in a given compartment. * @@ -213,6 +229,22 @@ ChangeEmailDomainCompartmentResponse changeEmailDomainCompartment( */ DeleteEmailDomainResponse deleteEmailDomain(DeleteEmailDomainRequest request); + /** + * Deletes an email return path. + * + * @param request The request 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 + * DeleteEmailReturnPath API. + */ + DeleteEmailReturnPathResponse deleteEmailReturnPath(DeleteEmailReturnPathRequest request); + /** * Deletes an approved sender for a tenancy in a given compartment for a provided `senderId`. * @@ -291,6 +323,22 @@ ChangeEmailDomainCompartmentResponse changeEmailDomainCompartment( */ GetEmailDomainResponse getEmailDomain(GetEmailDomainRequest request); + /** + * Retrieves the specified email return path. + * + * @param request The request 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 GetEmailReturnPath + * API. + */ + GetEmailReturnPathResponse getEmailReturnPath(GetEmailReturnPathRequest request); + /** * Gets an approved sender for a given `senderId`. * @@ -368,6 +416,22 @@ ChangeEmailDomainCompartmentResponse changeEmailDomainCompartment( */ ListEmailDomainsResponse listEmailDomains(ListEmailDomainsRequest request); + /** + * Lists email return paths in the specified compartment or emaildomain. + * + * @param request The request 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 + * ListEmailReturnPaths API. + */ + ListEmailReturnPathsResponse listEmailReturnPaths(ListEmailReturnPathsRequest request); + /** * Gets a collection of approved sender email addresses and sender IDs. * @@ -480,6 +544,22 @@ ChangeEmailDomainCompartmentResponse changeEmailDomainCompartment( */ UpdateEmailDomainResponse updateEmailDomain(UpdateEmailDomainRequest request); + /** + * Modifies an email return path. + * + * @param request The request 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 + * UpdateEmailReturnPath API. + */ + UpdateEmailReturnPathResponse updateEmailReturnPath(UpdateEmailReturnPathRequest request); + /** * Replaces the set of tags for a sender with the tags provided. If either freeform or defined * tags are omitted, the tags for that set remain the same. Each set must include the full set diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsync.java b/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsync.java index 982943eae67..11279ee6196 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsync.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsync.java @@ -141,6 +141,22 @@ java.util.concurrent.Future createEmailDomain( CreateEmailDomainRequest, CreateEmailDomainResponse> handler); + /** + * Creates a new email return path. Avoid entering confidential information. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createEmailReturnPath( + CreateEmailReturnPathRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateEmailReturnPathRequest, CreateEmailReturnPathResponse> + handler); + /** * Creates a sender for a tenancy in a given compartment. * @@ -208,6 +224,22 @@ java.util.concurrent.Future deleteEmailDomain( DeleteEmailDomainRequest, DeleteEmailDomainResponse> handler); + /** + * Deletes an email return path. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteEmailReturnPath( + DeleteEmailReturnPathRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteEmailReturnPathRequest, DeleteEmailReturnPathResponse> + handler); + /** * Deletes an approved sender for a tenancy in a given compartment for a provided `senderId`. * @@ -285,6 +317,22 @@ java.util.concurrent.Future getEmailDomain( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Retrieves the specified email return path. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getEmailReturnPath( + GetEmailReturnPathRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetEmailReturnPathRequest, GetEmailReturnPathResponse> + handler); + /** * Gets an approved sender for a given `senderId`. * @@ -359,6 +407,22 @@ java.util.concurrent.Future listEmailDomains( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists email return paths in the specified compartment or emaildomain. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listEmailReturnPaths( + ListEmailReturnPathsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListEmailReturnPathsRequest, ListEmailReturnPathsResponse> + handler); + /** * Gets a collection of approved sender email addresses and sender IDs. * @@ -467,6 +531,22 @@ java.util.concurrent.Future updateEmailDomain( UpdateEmailDomainRequest, UpdateEmailDomainResponse> handler); + /** + * Modifies an email return path. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateEmailReturnPath( + UpdateEmailReturnPathRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateEmailReturnPathRequest, UpdateEmailReturnPathResponse> + handler); + /** * Replaces the set of tags for a sender with the tags provided. If either freeform or defined * tags are omitted, the tags for that set remain the same. Each set must include the full set diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java b/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java index 09b02038e1c..4edfa6c9987 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java @@ -239,6 +239,46 @@ public java.util.concurrent.Future createEmailDomain( .callAsync(handler); } + @Override + public java.util.concurrent.Future createEmailReturnPath( + CreateEmailReturnPathRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateEmailReturnPathRequest, CreateEmailReturnPathResponse> + handler) { + Objects.requireNonNull( + request.getCreateEmailReturnPathDetails(), + "createEmailReturnPathDetails is required"); + + return clientCall(request, CreateEmailReturnPathResponse::builder) + .logger(LOG, "createEmailReturnPath") + .serviceDetails( + "Email", + "CreateEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/CreateEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.email.model.EmailReturnPath.class, + CreateEmailReturnPathResponse.Builder::emailReturnPath) + .handleResponseHeaderString( + "Content-Location", CreateEmailReturnPathResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateEmailReturnPathResponse.Builder::etag) + .handleResponseHeaderString( + "Location", CreateEmailReturnPathResponse.Builder::location) + .handleResponseHeaderString( + "opc-request-id", CreateEmailReturnPathResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateEmailReturnPathResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createSender( CreateSenderRequest request, @@ -357,6 +397,37 @@ public java.util.concurrent.Future deleteEmailDomain( .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteEmailReturnPath( + DeleteEmailReturnPathRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteEmailReturnPathRequest, DeleteEmailReturnPathResponse> + handler) { + + Validate.notBlank(request.getEmailReturnPathId(), "emailReturnPathId must not be blank"); + + return clientCall(request, DeleteEmailReturnPathResponse::builder) + .logger(LOG, "deleteEmailReturnPath") + .serviceDetails( + "Email", + "DeleteEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/DeleteEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendPathParam(request.getEmailReturnPathId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteEmailReturnPathResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteEmailReturnPathResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteSender( DeleteSenderRequest request, @@ -497,6 +568,37 @@ public java.util.concurrent.Future getEmailDomain( .callAsync(handler); } + @Override + public java.util.concurrent.Future getEmailReturnPath( + GetEmailReturnPathRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetEmailReturnPathRequest, GetEmailReturnPathResponse> + handler) { + + Validate.notBlank(request.getEmailReturnPathId(), "emailReturnPathId must not be blank"); + + return clientCall(request, GetEmailReturnPathResponse::builder) + .logger(LOG, "getEmailReturnPath") + .serviceDetails( + "Email", + "GetEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/GetEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendPathParam(request.getEmailReturnPathId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.email.model.EmailReturnPath.class, + GetEmailReturnPathResponse.Builder::emailReturnPath) + .handleResponseHeaderString("etag", GetEmailReturnPathResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetEmailReturnPathResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getSender( GetSenderRequest request, @@ -662,6 +764,44 @@ public java.util.concurrent.Future listEmailDomains( .callAsync(handler); } + @Override + public java.util.concurrent.Future listEmailReturnPaths( + ListEmailReturnPathsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListEmailReturnPathsRequest, ListEmailReturnPathsResponse> + handler) { + + return clientCall(request, ListEmailReturnPathsResponse::builder) + .logger(LOG, "listEmailReturnPaths") + .serviceDetails( + "Email", + "ListEmailReturnPaths", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/ListEmailReturnPaths") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListEmailReturnPathsRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("parentResourceId", request.getParentResourceId()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.email.model.EmailReturnPathCollection.class, + ListEmailReturnPathsResponse.Builder::emailReturnPathCollection) + .handleResponseHeaderString( + "opc-next-page", ListEmailReturnPathsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListEmailReturnPathsResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listSenders( ListSendersRequest request, @@ -913,6 +1053,41 @@ public java.util.concurrent.Future updateEmailDomain( .callAsync(handler); } + @Override + public java.util.concurrent.Future updateEmailReturnPath( + UpdateEmailReturnPathRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateEmailReturnPathRequest, UpdateEmailReturnPathResponse> + handler) { + + Validate.notBlank(request.getEmailReturnPathId(), "emailReturnPathId must not be blank"); + Objects.requireNonNull( + request.getUpdateEmailReturnPathDetails(), + "updateEmailReturnPathDetails is required"); + + return clientCall(request, UpdateEmailReturnPathResponse::builder) + .logger(LOG, "updateEmailReturnPath") + .serviceDetails( + "Email", + "UpdateEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/UpdateEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendPathParam(request.getEmailReturnPathId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateEmailReturnPathResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateEmailReturnPathResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateSender( UpdateSenderRequest request, diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/EmailClient.java b/bmc-email/src/main/java/com/oracle/bmc/email/EmailClient.java index 5670d75243c..9f921671dda 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/EmailClient.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/EmailClient.java @@ -251,6 +251,43 @@ public CreateEmailDomainResponse createEmailDomain(CreateEmailDomainRequest requ .callSync(); } + @Override + public CreateEmailReturnPathResponse createEmailReturnPath( + CreateEmailReturnPathRequest request) { + Objects.requireNonNull( + request.getCreateEmailReturnPathDetails(), + "createEmailReturnPathDetails is required"); + + return clientCall(request, CreateEmailReturnPathResponse::builder) + .logger(LOG, "createEmailReturnPath") + .serviceDetails( + "Email", + "CreateEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/CreateEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.email.model.EmailReturnPath.class, + CreateEmailReturnPathResponse.Builder::emailReturnPath) + .handleResponseHeaderString( + "Content-Location", CreateEmailReturnPathResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateEmailReturnPathResponse.Builder::etag) + .handleResponseHeaderString( + "Location", CreateEmailReturnPathResponse.Builder::location) + .handleResponseHeaderString( + "opc-request-id", CreateEmailReturnPathResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateEmailReturnPathResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public CreateSenderResponse createSender(CreateSenderRequest request) { Objects.requireNonNull(request.getCreateSenderDetails(), "createSenderDetails is required"); @@ -355,6 +392,34 @@ public DeleteEmailDomainResponse deleteEmailDomain(DeleteEmailDomainRequest requ .callSync(); } + @Override + public DeleteEmailReturnPathResponse deleteEmailReturnPath( + DeleteEmailReturnPathRequest request) { + + Validate.notBlank(request.getEmailReturnPathId(), "emailReturnPathId must not be blank"); + + return clientCall(request, DeleteEmailReturnPathResponse::builder) + .logger(LOG, "deleteEmailReturnPath") + .serviceDetails( + "Email", + "DeleteEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/DeleteEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendPathParam(request.getEmailReturnPathId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteEmailReturnPathResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteEmailReturnPathResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteSenderResponse deleteSender(DeleteSenderRequest request) { @@ -479,6 +544,33 @@ public GetEmailDomainResponse getEmailDomain(GetEmailDomainRequest request) { .callSync(); } + @Override + public GetEmailReturnPathResponse getEmailReturnPath(GetEmailReturnPathRequest request) { + + Validate.notBlank(request.getEmailReturnPathId(), "emailReturnPathId must not be blank"); + + return clientCall(request, GetEmailReturnPathResponse::builder) + .logger(LOG, "getEmailReturnPath") + .serviceDetails( + "Email", + "GetEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/GetEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendPathParam(request.getEmailReturnPathId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.email.model.EmailReturnPath.class, + GetEmailReturnPathResponse.Builder::emailReturnPath) + .handleResponseHeaderString("etag", GetEmailReturnPathResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetEmailReturnPathResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetSenderResponse getSender(GetSenderRequest request) { @@ -626,6 +718,40 @@ public ListEmailDomainsResponse listEmailDomains(ListEmailDomainsRequest request .callSync(); } + @Override + public ListEmailReturnPathsResponse listEmailReturnPaths(ListEmailReturnPathsRequest request) { + + return clientCall(request, ListEmailReturnPathsResponse::builder) + .logger(LOG, "listEmailReturnPaths") + .serviceDetails( + "Email", + "ListEmailReturnPaths", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/ListEmailReturnPaths") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListEmailReturnPathsRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("parentResourceId", request.getParentResourceId()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.email.model.EmailReturnPathCollection.class, + ListEmailReturnPathsResponse.Builder::emailReturnPathCollection) + .handleResponseHeaderString( + "opc-next-page", ListEmailReturnPathsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListEmailReturnPathsResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListSendersResponse listSenders(ListSendersRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); @@ -852,6 +978,38 @@ public UpdateEmailDomainResponse updateEmailDomain(UpdateEmailDomainRequest requ .callSync(); } + @Override + public UpdateEmailReturnPathResponse updateEmailReturnPath( + UpdateEmailReturnPathRequest request) { + + Validate.notBlank(request.getEmailReturnPathId(), "emailReturnPathId must not be blank"); + Objects.requireNonNull( + request.getUpdateEmailReturnPathDetails(), + "updateEmailReturnPathDetails is required"); + + return clientCall(request, UpdateEmailReturnPathResponse::builder) + .logger(LOG, "updateEmailReturnPath") + .serviceDetails( + "Email", + "UpdateEmailReturnPath", + "https://docs.oracle.com/iaas/api/#/en/emaildelivery/20170907/EmailReturnPath/UpdateEmailReturnPath") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateEmailReturnPathRequest::builder) + .basePath("/20170907") + .appendPathParam("emailReturnPaths") + .appendPathParam(request.getEmailReturnPathId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateEmailReturnPathResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateEmailReturnPathResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateSenderResponse updateSender(UpdateSenderRequest request) { diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/EmailPaginators.java b/bmc-email/src/main/java/com/oracle/bmc/email/EmailPaginators.java index 30cb8f91b45..5fe46e1cd8b 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/EmailPaginators.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/EmailPaginators.java @@ -270,6 +270,124 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listEmailReturnPaths 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 listEmailReturnPathsResponseIterator( + final ListEmailReturnPathsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListEmailReturnPathsRequest.Builder, + ListEmailReturnPathsRequest, + ListEmailReturnPathsResponse>( + new java.util.function.Supplier() { + @Override + public ListEmailReturnPathsRequest.Builder get() { + return ListEmailReturnPathsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListEmailReturnPathsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailReturnPathsRequest.Builder>, + ListEmailReturnPathsRequest>() { + @Override + public ListEmailReturnPathsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailReturnPathsRequest.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< + ListEmailReturnPathsRequest, ListEmailReturnPathsResponse>() { + @Override + public ListEmailReturnPathsResponse apply(ListEmailReturnPathsRequest request) { + return client.listEmailReturnPaths(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.email.model.EmailReturnPathSummary} objects contained in responses from the + * listEmailReturnPaths 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.email.model.EmailReturnPathSummary} objects contained in responses + * received from the service. + */ + public Iterable + listEmailReturnPathsRecordIterator(final ListEmailReturnPathsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListEmailReturnPathsRequest.Builder, + ListEmailReturnPathsRequest, + ListEmailReturnPathsResponse, + com.oracle.bmc.email.model.EmailReturnPathSummary>( + new java.util.function.Supplier() { + @Override + public ListEmailReturnPathsRequest.Builder get() { + return ListEmailReturnPathsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListEmailReturnPathsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailReturnPathsRequest.Builder>, + ListEmailReturnPathsRequest>() { + @Override + public ListEmailReturnPathsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEmailReturnPathsRequest.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< + ListEmailReturnPathsRequest, ListEmailReturnPathsResponse>() { + @Override + public ListEmailReturnPathsResponse apply(ListEmailReturnPathsRequest request) { + return client.listEmailReturnPaths(request); + } + }, + new java.util.function.Function< + ListEmailReturnPathsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListEmailReturnPathsResponse response) { + return response.getEmailReturnPathCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listSenders * operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/EmailWaiters.java b/bmc-email/src/main/java/com/oracle/bmc/email/EmailWaiters.java index 34f0d0f0c89..56cb94e391d 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/EmailWaiters.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/EmailWaiters.java @@ -226,6 +226,112 @@ public boolean test(GetEmailDomainResponse 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 + forEmailReturnPath( + GetEmailReturnPathRequest request, + com.oracle.bmc.email.model.EmailReturnPath.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 forEmailReturnPath( + 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 + forEmailReturnPath( + GetEmailReturnPathRequest request, + com.oracle.bmc.email.model.EmailReturnPath.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 forEmailReturnPath( + 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 + forEmailReturnPath( + GetEmailReturnPathRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.email.model.EmailReturnPath.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 forEmailReturnPath( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for EmailReturnPath. + private com.oracle.bmc.waiter.Waiter + forEmailReturnPath( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetEmailReturnPathRequest request, + final com.oracle.bmc.email.model.EmailReturnPath.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< + GetEmailReturnPathRequest, GetEmailReturnPathResponse>() { + @Override + public GetEmailReturnPathResponse apply( + GetEmailReturnPathRequest request) { + return client.getEmailReturnPath(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetEmailReturnPathResponse response) { + return targetStatesSet.contains( + response.getEmailReturnPath().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.email.model.EmailReturnPath.LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateEmailDomainDetails.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateEmailDomainDetails.java index 5fd2ec0d938..d2a7b693cf3 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateEmailDomainDetails.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateEmailDomainDetails.java @@ -26,6 +26,7 @@ public final class CreateEmailDomainDetails @java.beans.ConstructorProperties({ "name", "compartmentId", + "domainVerificationId", "description", "freeformTags", "definedTags" @@ -33,12 +34,14 @@ public final class CreateEmailDomainDetails public CreateEmailDomainDetails( String name, String compartmentId, + String domainVerificationId, String description, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.name = name; this.compartmentId = compartmentId; + this.domainVerificationId = domainVerificationId; this.description = description; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -92,6 +95,25 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationId") + private String domainVerificationId; + + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method + * used. + * + * @param domainVerificationId the value to set + * @return this builder + */ + public Builder domainVerificationId(String domainVerificationId) { + this.domainVerificationId = domainVerificationId; + this.__explicitlySet__.add("domainVerificationId"); + return this; + } /** * A string that describes the details about the domain. It does not have to be unique, and * you can change it. Avoid entering confidential information. @@ -171,6 +193,7 @@ public CreateEmailDomainDetails build() { new CreateEmailDomainDetails( this.name, this.compartmentId, + this.domainVerificationId, this.description, this.freeformTags, this.definedTags); @@ -188,6 +211,9 @@ public Builder copy(CreateEmailDomainDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("domainVerificationId")) { + this.domainVerificationId(model.getDomainVerificationId()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -252,6 +278,21 @@ public String getCompartmentId() { return compartmentId; } + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationId") + private final String domainVerificationId; + + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method used. + * + * @return the value + */ + public String getDomainVerificationId() { + return domainVerificationId; + } + /** * A string that describes the details about the domain. It does not have to be unique, and you * can change it. Avoid entering confidential information. @@ -332,6 +373,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("name=").append(String.valueOf(this.name)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", domainVerificationId=").append(String.valueOf(this.domainVerificationId)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -351,6 +393,7 @@ public boolean equals(Object o) { CreateEmailDomainDetails other = (CreateEmailDomainDetails) o; return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.domainVerificationId, other.domainVerificationId) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -365,6 +408,11 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.domainVerificationId == null + ? 43 + : this.domainVerificationId.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateEmailReturnPathDetails.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateEmailReturnPathDetails.java new file mode 100644 index 00000000000..d29219d2eb4 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateEmailReturnPathDetails.java @@ -0,0 +1,385 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.model; + +/** + * Properties to create a new email return path. The new object will be created in the same + * compartment as the parent resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateEmailReturnPathDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateEmailReturnPathDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "parentResourceId", + "description", + "freeformTags", + "definedTags" + }) + public CreateEmailReturnPathDetails( + String name, + String parentResourceId, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.name = name; + this.parentResourceId = parentResourceId; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the email return path domain in the Internet Domain Name System (DNS). The + * name must be a subdomain of the email domain used to send emails. The email return path + * name must be globally unique for this tenancy. If you do not provide the email return + * path name, we will generate one for you. If you do provide the email return path name, we + * suggest adding a short region indicator to allow using the same parent domain in other + * regions you might be subscribed to. Domain names limited to ASCII characters use + * alphanumeric, dash ("-"), and dot (".") characters. The dash and dot are only allowed + * between alphanumeric characters. Non-ASCII domain names should adopt IDNA2008 + * normalization (RFC 5891-5892). + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the email return path domain in the Internet Domain Name System (DNS). The + * name must be a subdomain of the email domain used to send emails. The email return path + * name must be globally unique for this tenancy. If you do not provide the email return + * path name, we will generate one for you. If you do provide the email return path name, we + * suggest adding a short region indicator to allow using the same parent domain in other + * regions you might be subscribed to. Domain names limited to ASCII characters use + * alphanumeric, dash ("-"), and dot (".") characters. The dash and dot are only allowed + * between alphanumeric characters. Non-ASCII domain names should adopt IDNA2008 + * normalization (RFC 5891-5892). + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the EmailDomain for this email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parentResourceId") + private String parentResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the EmailDomain for this email return path. + * + * @param parentResourceId the value to set + * @return this builder + */ + public Builder parentResourceId(String parentResourceId) { + this.parentResourceId = parentResourceId; + this.__explicitlySet__.add("parentResourceId"); + return this; + } + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/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 CreateEmailReturnPathDetails build() { + CreateEmailReturnPathDetails model = + new CreateEmailReturnPathDetails( + this.name, + this.parentResourceId, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateEmailReturnPathDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("parentResourceId")) { + this.parentResourceId(model.getParentResourceId()); + } + 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 name of the email return path domain in the Internet Domain Name System (DNS). The name + * must be a subdomain of the email domain used to send emails. The email return path name must + * be globally unique for this tenancy. If you do not provide the email return path name, we + * will generate one for you. If you do provide the email return path name, we suggest adding a + * short region indicator to allow using the same parent domain in other regions you might be + * subscribed to. Domain names limited to ASCII characters use alphanumeric, dash ("-"), and dot + * (".") characters. The dash and dot are only allowed between alphanumeric characters. + * Non-ASCII domain names should adopt IDNA2008 normalization (RFC 5891-5892). + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the email return path domain in the Internet Domain Name System (DNS). The name + * must be a subdomain of the email domain used to send emails. The email return path name must + * be globally unique for this tenancy. If you do not provide the email return path name, we + * will generate one for you. If you do provide the email return path name, we suggest adding a + * short region indicator to allow using the same parent domain in other regions you might be + * subscribed to. Domain names limited to ASCII characters use alphanumeric, dash ("-"), and dot + * (".") characters. The dash and dot are only allowed between alphanumeric characters. + * Non-ASCII domain names should adopt IDNA2008 normalization (RFC 5891-5892). + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the EmailDomain for this email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parentResourceId") + private final String parentResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the EmailDomain for this email return path. + * + * @return the value + */ + public String getParentResourceId() { + return parentResourceId; + } + + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + * + * @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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/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("CreateEmailReturnPathDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", parentResourceId=").append(String.valueOf(this.parentResourceId)); + 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 CreateEmailReturnPathDetails)) { + return false; + } + + CreateEmailReturnPathDetails other = (CreateEmailReturnPathDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.parentResourceId, other.parentResourceId) + && 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.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.parentResourceId == null ? 43 : this.parentResourceId.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-email/src/main/java/com/oracle/bmc/email/model/DomainVerificationStatusType.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/DomainVerificationStatusType.java new file mode 100644 index 00000000000..497c4218db3 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/DomainVerificationStatusType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.model; + +/** The current domain verification status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public enum DomainVerificationStatusType implements com.oracle.bmc.http.internal.BmcEnum { + None("NONE"), + Domainid("DOMAINID"), + Other("OTHER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DomainVerificationStatusType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DomainVerificationStatusType v : DomainVerificationStatusType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DomainVerificationStatusType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DomainVerificationStatusType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DomainVerificationStatusType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailDomain.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailDomain.java index ac2b47e2000..0c90a40b654 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailDomain.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailDomain.java @@ -29,6 +29,8 @@ public final class EmailDomain extends com.oracle.bmc.http.client.internal.Expli "lifecycleState", "activeDkimId", "isSpf", + "domainVerificationStatus", + "domainVerificationId", "description", "timeCreated", "freeformTags", @@ -42,6 +44,8 @@ public EmailDomain( LifecycleState lifecycleState, String activeDkimId, Boolean isSpf, + DomainVerificationStatusType domainVerificationStatus, + String domainVerificationId, String description, java.util.Date timeCreated, java.util.Map freeformTags, @@ -54,6 +58,8 @@ public EmailDomain( this.lifecycleState = lifecycleState; this.activeDkimId = activeDkimId; this.isSpf = isSpf; + this.domainVerificationStatus = domainVerificationStatus; + this.domainVerificationId = domainVerificationId; this.description = description; this.timeCreated = timeCreated; this.freeformTags = freeformTags; @@ -175,6 +181,41 @@ public Builder isSpf(Boolean isSpf) { this.__explicitlySet__.add("isSpf"); return this; } + /** The current domain verification status. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationStatus") + private DomainVerificationStatusType domainVerificationStatus; + + /** + * The current domain verification status. + * + * @param domainVerificationStatus the value to set + * @return this builder + */ + public Builder domainVerificationStatus( + DomainVerificationStatusType domainVerificationStatus) { + this.domainVerificationStatus = domainVerificationStatus; + this.__explicitlySet__.add("domainVerificationStatus"); + return this; + } + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationId") + private String domainVerificationId; + + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method + * used. + * + * @param domainVerificationId the value to set + * @return this builder + */ + public Builder domainVerificationId(String domainVerificationId) { + this.domainVerificationId = domainVerificationId; + this.__explicitlySet__.add("domainVerificationId"); + return this; + } /** The description of an email domain. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; @@ -296,6 +337,8 @@ public EmailDomain build() { this.lifecycleState, this.activeDkimId, this.isSpf, + this.domainVerificationStatus, + this.domainVerificationId, this.description, this.timeCreated, this.freeformTags, @@ -327,6 +370,12 @@ public Builder copy(EmailDomain model) { if (model.wasPropertyExplicitlySet("isSpf")) { this.isSpf(model.getIsSpf()); } + if (model.wasPropertyExplicitlySet("domainVerificationStatus")) { + this.domainVerificationStatus(model.getDomainVerificationStatus()); + } + if (model.wasPropertyExplicitlySet("domainVerificationId")) { + this.domainVerificationId(model.getDomainVerificationId()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -505,6 +554,34 @@ public Boolean getIsSpf() { return isSpf; } + /** The current domain verification status. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationStatus") + private final DomainVerificationStatusType domainVerificationStatus; + + /** + * The current domain verification status. + * + * @return the value + */ + public DomainVerificationStatusType getDomainVerificationStatus() { + return domainVerificationStatus; + } + + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationId") + private final String domainVerificationId; + + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method used. + * + * @return the value + */ + public String getDomainVerificationId() { + return domainVerificationId; + } + /** The description of an email domain. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; @@ -623,6 +700,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", activeDkimId=").append(String.valueOf(this.activeDkimId)); sb.append(", isSpf=").append(String.valueOf(this.isSpf)); + sb.append(", domainVerificationStatus=") + .append(String.valueOf(this.domainVerificationStatus)); + sb.append(", domainVerificationId=").append(String.valueOf(this.domainVerificationId)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -648,6 +728,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.activeDkimId, other.activeDkimId) && java.util.Objects.equals(this.isSpf, other.isSpf) + && java.util.Objects.equals( + this.domainVerificationStatus, other.domainVerificationStatus) + && java.util.Objects.equals(this.domainVerificationId, other.domainVerificationId) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -670,6 +753,16 @@ public int hashCode() { + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.activeDkimId == null ? 43 : this.activeDkimId.hashCode()); result = (result * PRIME) + (this.isSpf == null ? 43 : this.isSpf.hashCode()); + result = + (result * PRIME) + + (this.domainVerificationStatus == null + ? 43 + : this.domainVerificationStatus.hashCode()); + result = + (result * PRIME) + + (this.domainVerificationId == null + ? 43 + : this.domainVerificationId.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPath.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPath.java new file mode 100644 index 00000000000..d0c402715d6 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPath.java @@ -0,0 +1,834 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.model; + +/** + * The properties that define a Email Return Path
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EmailReturnPath.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EmailReturnPath + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "id", + "parentResourceId", + "compartmentId", + "lifecycleState", + "lifecycleDetails", + "description", + "dnsSubdomainName", + "cnameRecordValue", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public EmailReturnPath( + String name, + String id, + String parentResourceId, + String compartmentId, + LifecycleState lifecycleState, + String lifecycleDetails, + String description, + String dnsSubdomainName, + String cnameRecordValue, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.name = name; + this.id = id; + this.parentResourceId = parentResourceId; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.description = description; + this.dnsSubdomainName = dnsSubdomainName; + this.cnameRecordValue = cnameRecordValue; + 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 email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the email return path. + * + * @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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the EmailDomain that this email return path belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parentResourceId") + private String parentResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the EmailDomain that this email return path belongs to. + * + * @param parentResourceId the value to set + * @return this builder + */ + public Builder parentResourceId(String parentResourceId) { + this.parentResourceId = parentResourceId; + this.__explicitlySet__.add("parentResourceId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains this email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains this email return path. + * + * @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 email return path. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the email return path. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in 'Failed' state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in 'Failed' state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The description of the email return path. Avoid entering confidential information. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the email return path. Avoid entering confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The name of the DNS subdomain that must be provisioned to enable email recipients to + * verify Email Return Path. It is usually created with a CNAME record set to the + * cnameRecordValue. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsSubdomainName") + private String dnsSubdomainName; + + /** + * The name of the DNS subdomain that must be provisioned to enable email recipients to + * verify Email Return Path. It is usually created with a CNAME record set to the + * cnameRecordValue. + * + * @param dnsSubdomainName the value to set + * @return this builder + */ + public Builder dnsSubdomainName(String dnsSubdomainName) { + this.dnsSubdomainName = dnsSubdomainName; + this.__explicitlySet__.add("dnsSubdomainName"); + return this; + } + /** + * The DNS CNAME record value to provision to the Return Patn DNS subdomain, when using the + * CNAME method for Email Return Path setup (preferred). + */ + @com.fasterxml.jackson.annotation.JsonProperty("cnameRecordValue") + private String cnameRecordValue; + + /** + * The DNS CNAME record value to provision to the Return Patn DNS subdomain, when using the + * CNAME method for Email Return Path setup (preferred). + * + * @param cnameRecordValue the value to set + * @return this builder + */ + public Builder cnameRecordValue(String cnameRecordValue) { + this.cnameRecordValue = cnameRecordValue; + this.__explicitlySet__.add("cnameRecordValue"); + return this; + } + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time of the last change to the Email Return Path configuration, due to a state change + * or an update operation. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time of the last change to the Email Return Path configuration, due to a state change + * or an update operation. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + * @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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/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; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EmailReturnPath build() { + EmailReturnPath model = + new EmailReturnPath( + this.name, + this.id, + this.parentResourceId, + this.compartmentId, + this.lifecycleState, + this.lifecycleDetails, + this.description, + this.dnsSubdomainName, + this.cnameRecordValue, + 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(EmailReturnPath model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("parentResourceId")) { + this.parentResourceId(model.getParentResourceId()); + } + 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("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("dnsSubdomainName")) { + this.dnsSubdomainName(model.getDnsSubdomainName()); + } + if (model.wasPropertyExplicitlySet("cnameRecordValue")) { + this.cnameRecordValue(model.getCnameRecordValue()); + } + 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 email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the email return path. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the EmailDomain that this email return path belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parentResourceId") + private final String parentResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the EmailDomain that this email return path belongs to. + * + * @return the value + */ + public String getParentResourceId() { + return parentResourceId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains this email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains this email return path. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The current state of the email return path. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Creating("CREATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + Updating("UPDATING"), + + /** + * This value is used if a service returns a value for this 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 email return path. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the email return path. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in 'Failed' state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in 'Failed' state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The description of the email return path. Avoid entering confidential information. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the email return path. Avoid entering confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The name of the DNS subdomain that must be provisioned to enable email recipients to verify + * Email Return Path. It is usually created with a CNAME record set to the cnameRecordValue. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dnsSubdomainName") + private final String dnsSubdomainName; + + /** + * The name of the DNS subdomain that must be provisioned to enable email recipients to verify + * Email Return Path. It is usually created with a CNAME record set to the cnameRecordValue. + * + * @return the value + */ + public String getDnsSubdomainName() { + return dnsSubdomainName; + } + + /** + * The DNS CNAME record value to provision to the Return Patn DNS subdomain, when using the + * CNAME method for Email Return Path setup (preferred). + */ + @com.fasterxml.jackson.annotation.JsonProperty("cnameRecordValue") + private final String cnameRecordValue; + + /** + * The DNS CNAME record value to provision to the Return Patn DNS subdomain, when using the + * CNAME method for Email Return Path setup (preferred). + * + * @return the value + */ + public String getCnameRecordValue() { + return cnameRecordValue; + } + + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time of the last change to the Email Return Path configuration, due to a state change or + * an update operation. Times are expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, "YYYY-MM-ddThh:mmZ". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time of the last change to the Email Return Path configuration, due to a state change or + * an update operation. Times are expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, "YYYY-MM-ddThh:mmZ". + * + * @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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EmailReturnPath("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", parentResourceId=").append(String.valueOf(this.parentResourceId)); + 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(", description=").append(String.valueOf(this.description)); + sb.append(", dnsSubdomainName=").append(String.valueOf(this.dnsSubdomainName)); + sb.append(", cnameRecordValue=").append(String.valueOf(this.cnameRecordValue)); + 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 EmailReturnPath)) { + return false; + } + + EmailReturnPath other = (EmailReturnPath) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.parentResourceId, other.parentResourceId) + && 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.description, other.description) + && java.util.Objects.equals(this.dnsSubdomainName, other.dnsSubdomainName) + && java.util.Objects.equals(this.cnameRecordValue, other.cnameRecordValue) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.parentResourceId == null ? 43 : this.parentResourceId.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.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.dnsSubdomainName == null ? 43 : this.dnsSubdomainName.hashCode()); + result = + (result * PRIME) + + (this.cnameRecordValue == null ? 43 : this.cnameRecordValue.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-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPathCollection.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPathCollection.java new file mode 100644 index 00000000000..96d5f881b4e --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPathCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.model; + +/** + * Results of a ReturnPath search. Contains both ReturnPathSummary 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: 20170907") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EmailReturnPathCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EmailReturnPathCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public EmailReturnPathCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of email return paths. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of email return paths. + * + * @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 EmailReturnPathCollection build() { + EmailReturnPathCollection model = new EmailReturnPathCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EmailReturnPathCollection 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 email return paths. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of email return paths. + * + * @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("EmailReturnPathCollection("); + 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 EmailReturnPathCollection)) { + return false; + } + + EmailReturnPathCollection other = (EmailReturnPathCollection) 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-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPathSummary.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPathSummary.java new file mode 100644 index 00000000000..5323adea9f3 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/EmailReturnPathSummary.java @@ -0,0 +1,638 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.model; + +/** + * The properties that define a Email Return Path.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EmailReturnPathSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EmailReturnPathSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "id", + "parentResourceId", + "compartmentId", + "lifecycleState", + "description", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public EmailReturnPathSummary( + String name, + String id, + String parentResourceId, + String compartmentId, + EmailReturnPath.LifecycleState lifecycleState, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.name = name; + this.id = id; + this.parentResourceId = parentResourceId; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.description = description; + 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 email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the email return path. + * + * @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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the EmailDomain that this email return path belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parentResourceId") + private String parentResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the EmailDomain that this email return path belongs to. + * + * @param parentResourceId the value to set + * @return this builder + */ + public Builder parentResourceId(String parentResourceId) { + this.parentResourceId = parentResourceId; + this.__explicitlySet__.add("parentResourceId"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains this email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains this email return path. + * + * @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 email return path. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private EmailReturnPath.LifecycleState lifecycleState; + + /** + * The current state of the email return path. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(EmailReturnPath.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The description of the email return path. Avoid entering confidential information. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the email return path. Avoid entering confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time of the last change to the Email Return Path configuration, due to a state change + * or an update operation. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time of the last change to the Email Return Path configuration, due to a state change + * or an update operation. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + * @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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/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; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EmailReturnPathSummary build() { + EmailReturnPathSummary model = + new EmailReturnPathSummary( + this.name, + this.id, + this.parentResourceId, + this.compartmentId, + this.lifecycleState, + this.description, + 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(EmailReturnPathSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("parentResourceId")) { + this.parentResourceId(model.getParentResourceId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("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 email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The email return path domain in the Internet Domain Name System (DNS). + * + *

Example: {@code iad1.rp.example.com} + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the email return path. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the EmailDomain that this email return path belongs to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("parentResourceId") + private final String parentResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the EmailDomain that this email return path belongs to. + * + * @return the value + */ + public String getParentResourceId() { + return parentResourceId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains this email return path. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains this email return path. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The current state of the email return path. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final EmailReturnPath.LifecycleState lifecycleState; + + /** + * The current state of the email return path. + * + * @return the value + */ + public EmailReturnPath.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The description of the email return path. Avoid entering confidential information. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the email return path. Avoid entering confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the email return path was created. Times are expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format, "YYYY-MM-ddThh:mmZ". + * + *

Example: {@code 2021-02-12T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time of the last change to the Email Return Path configuration, due to a state change or + * an update operation. Times are expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, "YYYY-MM-ddThh:mmZ". + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time of the last change to the Email Return Path configuration, due to a state change or + * an update operation. Times are expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) + * timestamp format, "YYYY-MM-ddThh:mmZ". + * + * @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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EmailReturnPathSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", parentResourceId=").append(String.valueOf(this.parentResourceId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", 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 EmailReturnPathSummary)) { + return false; + } + + EmailReturnPathSummary other = (EmailReturnPathSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.parentResourceId, other.parentResourceId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.parentResourceId == null ? 43 : this.parentResourceId.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.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.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-email/src/main/java/com/oracle/bmc/email/model/OperationType.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/OperationType.java index 2761aefb840..8374b4d671f 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/OperationType.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/OperationType.java @@ -15,6 +15,9 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { DeleteEmailDomain("DELETE_EMAIL_DOMAIN"), MoveEmailDomain("MOVE_EMAIL_DOMAIN"), UpdateEmailDomain("UPDATE_EMAIL_DOMAIN"), + CreateReturnPath("CREATE_RETURN_PATH"), + DeleteReturnPath("DELETE_RETURN_PATH"), + UpdateReturnPath("UPDATE_RETURN_PATH"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/Sender.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/Sender.java index 35c600341e2..5136322db90 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/Sender.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/Sender.java @@ -370,6 +370,9 @@ public Boolean getIsSpf() { public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Active("ACTIVE"), + NeedsAttention("NEEDS_ATTENTION"), + Inactive("INACTIVE"), + Failed("FAILED"), Deleting("DELETING"), Deleted("DELETED"), diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/UpdateEmailDomainDetails.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/UpdateEmailDomainDetails.java index 7bd2f489867..0075a98bfc5 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/UpdateEmailDomainDetails.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/UpdateEmailDomainDetails.java @@ -23,12 +23,19 @@ public final class UpdateEmailDomainDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"description", "freeformTags", "definedTags"}) + @java.beans.ConstructorProperties({ + "domainVerificationId", + "description", + "freeformTags", + "definedTags" + }) public UpdateEmailDomainDetails( + String domainVerificationId, String description, java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.domainVerificationId = domainVerificationId; this.description = description; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -36,6 +43,25 @@ public UpdateEmailDomainDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method + * used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationId") + private String domainVerificationId; + + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method + * used. + * + * @param domainVerificationId the value to set + * @return this builder + */ + public Builder domainVerificationId(String domainVerificationId) { + this.domainVerificationId = domainVerificationId; + this.__explicitlySet__.add("domainVerificationId"); + return this; + } /** * A string that describes the details about the domain. It does not have to be unique, and * you can change it. Avoid entering confidential information. @@ -113,7 +139,10 @@ public Builder definedTags( public UpdateEmailDomainDetails build() { UpdateEmailDomainDetails model = new UpdateEmailDomainDetails( - this.description, this.freeformTags, this.definedTags); + this.domainVerificationId, + this.description, + this.freeformTags, + this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -122,6 +151,9 @@ public UpdateEmailDomainDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateEmailDomainDetails model) { + if (model.wasPropertyExplicitlySet("domainVerificationId")) { + this.domainVerificationId(model.getDomainVerificationId()); + } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } @@ -144,6 +176,21 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainVerificationId") + private final String domainVerificationId; + + /** + * Id for Domain in Domain Management (under governance) if DOMAINID verification method used. + * + * @return the value + */ + public String getDomainVerificationId() { + return domainVerificationId; + } + /** * A string that describes the details about the domain. It does not have to be unique, and you * can change it. Avoid entering confidential information. @@ -222,7 +269,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateEmailDomainDetails("); sb.append("super=").append(super.toString()); - sb.append("description=").append(String.valueOf(this.description)); + sb.append("domainVerificationId=").append(String.valueOf(this.domainVerificationId)); + 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(")"); @@ -239,7 +287,8 @@ public boolean equals(Object o) { } UpdateEmailDomainDetails other = (UpdateEmailDomainDetails) o; - return java.util.Objects.equals(this.description, other.description) + return java.util.Objects.equals(this.domainVerificationId, other.domainVerificationId) + && 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); @@ -249,6 +298,11 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.domainVerificationId == null + ? 43 + : this.domainVerificationId.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/UpdateEmailReturnPathDetails.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/UpdateEmailReturnPathDetails.java new file mode 100644 index 00000000000..7ace3c01b05 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/UpdateEmailReturnPathDetails.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.model; + +/** + * The attributes to update in the email return path.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateEmailReturnPathDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateEmailReturnPathDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"description", "freeformTags", "definedTags"}) + public UpdateEmailReturnPathDetails( + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/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 UpdateEmailReturnPathDetails build() { + UpdateEmailReturnPathDetails model = + new UpdateEmailReturnPathDetails( + this.description, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateEmailReturnPathDetails model) { + 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); + } + + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A string that describes the details about the email return path. It does not have to be + * unique, and you can change it. Avoid entering confidential information. + * + * @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.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

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

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

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/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("UpdateEmailReturnPathDetails("); + sb.append("super=").append(super.toString()); + 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 UpdateEmailReturnPathDetails)) { + return false; + } + + UpdateEmailReturnPathDetails other = (UpdateEmailReturnPathDetails) o; + return 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.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-email/src/main/java/com/oracle/bmc/email/requests/CreateEmailReturnPathRequest.java b/bmc-email/src/main/java/com/oracle/bmc/email/requests/CreateEmailReturnPathRequest.java new file mode 100644 index 00000000000..62a61f8b5a1 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/requests/CreateEmailReturnPathRequest.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.requests; + +import com.oracle.bmc.email.model.*; +/** + * Example: Click here to see how to use + * CreateEmailReturnPathRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class CreateEmailReturnPathRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.email.model.CreateEmailReturnPathDetails> { + + /** The email return path to create. */ + private com.oracle.bmc.email.model.CreateEmailReturnPathDetails createEmailReturnPathDetails; + + /** The email return path to create. */ + public com.oracle.bmc.email.model.CreateEmailReturnPathDetails + getCreateEmailReturnPathDetails() { + return createEmailReturnPathDetails; + } + /** The request ID for tracing from the system */ + private String opcRequestId; + + /** The request ID for tracing from the system */ + 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.email.model.CreateEmailReturnPathDetails getBody$() { + return createEmailReturnPathDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateEmailReturnPathRequest, + com.oracle.bmc.email.model.CreateEmailReturnPathDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The email return path to create. */ + private com.oracle.bmc.email.model.CreateEmailReturnPathDetails + createEmailReturnPathDetails = null; + + /** + * The email return path to create. + * + * @param createEmailReturnPathDetails the value to set + * @return this builder instance + */ + public Builder createEmailReturnPathDetails( + com.oracle.bmc.email.model.CreateEmailReturnPathDetails + createEmailReturnPathDetails) { + this.createEmailReturnPathDetails = createEmailReturnPathDetails; + return this; + } + + /** The request ID for tracing from the system */ + private String opcRequestId = null; + + /** + * The request ID for tracing from the system + * + * @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(CreateEmailReturnPathRequest o) { + createEmailReturnPathDetails(o.getCreateEmailReturnPathDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateEmailReturnPathRequest 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 CreateEmailReturnPathRequest + */ + public CreateEmailReturnPathRequest build() { + CreateEmailReturnPathRequest 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.email.model.CreateEmailReturnPathDetails body) { + createEmailReturnPathDetails(body); + return this; + } + + /** + * Build the instance of CreateEmailReturnPathRequest 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 CreateEmailReturnPathRequest + */ + public CreateEmailReturnPathRequest buildWithoutInvocationCallback() { + CreateEmailReturnPathRequest request = new CreateEmailReturnPathRequest(); + request.createEmailReturnPathDetails = createEmailReturnPathDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateEmailReturnPathRequest(createEmailReturnPathDetails, 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() + .createEmailReturnPathDetails(createEmailReturnPathDetails) + .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(",createEmailReturnPathDetails=") + .append(String.valueOf(this.createEmailReturnPathDetails)); + 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 CreateEmailReturnPathRequest)) { + return false; + } + + CreateEmailReturnPathRequest other = (CreateEmailReturnPathRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createEmailReturnPathDetails, other.createEmailReturnPathDetails) + && 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.createEmailReturnPathDetails == null + ? 43 + : this.createEmailReturnPathDetails.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-email/src/main/java/com/oracle/bmc/email/requests/DeleteEmailReturnPathRequest.java b/bmc-email/src/main/java/com/oracle/bmc/email/requests/DeleteEmailReturnPathRequest.java new file mode 100644 index 00000000000..a6da4311014 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/requests/DeleteEmailReturnPathRequest.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.requests; + +import com.oracle.bmc.email.model.*; +/** + * Example: Click here to see how to use + * DeleteEmailReturnPathRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class DeleteEmailReturnPathRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * this email return path. + */ + private String emailReturnPathId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * this email return path. + */ + public String getEmailReturnPathId() { + return emailReturnPathId; + } + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous get, create, or update + * 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; + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous get, create, or update + * response for that resource. The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The request ID for tracing from the system */ + private String opcRequestId; + + /** The request ID for tracing from the system */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteEmailReturnPathRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of this email return path. + */ + private String emailReturnPathId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of this email return path. + * + * @param emailReturnPathId the value to set + * @return this builder instance + */ + public Builder emailReturnPathId(String emailReturnPathId) { + this.emailReturnPathId = emailReturnPathId; + return this; + } + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set + * the {@code if-match} parameter to the value of the etag from a previous get, create, or + * update 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; + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set + * the {@code if-match} parameter to the value of the etag from a previous get, create, or + * update response for that resource. The resource will be updated or deleted only if the + * etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The request ID for tracing from the system */ + private String opcRequestId = null; + + /** + * The request ID for tracing from the system + * + * @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(DeleteEmailReturnPathRequest o) { + emailReturnPathId(o.getEmailReturnPathId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteEmailReturnPathRequest 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 DeleteEmailReturnPathRequest + */ + public DeleteEmailReturnPathRequest build() { + DeleteEmailReturnPathRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteEmailReturnPathRequest 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 DeleteEmailReturnPathRequest + */ + public DeleteEmailReturnPathRequest buildWithoutInvocationCallback() { + DeleteEmailReturnPathRequest request = new DeleteEmailReturnPathRequest(); + request.emailReturnPathId = emailReturnPathId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteEmailReturnPathRequest(emailReturnPathId, 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() + .emailReturnPathId(emailReturnPathId) + .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(",emailReturnPathId=").append(String.valueOf(this.emailReturnPathId)); + 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 DeleteEmailReturnPathRequest)) { + return false; + } + + DeleteEmailReturnPathRequest other = (DeleteEmailReturnPathRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.emailReturnPathId, other.emailReturnPathId) + && 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.emailReturnPathId == null ? 43 : this.emailReturnPathId.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-email/src/main/java/com/oracle/bmc/email/requests/GetEmailReturnPathRequest.java b/bmc-email/src/main/java/com/oracle/bmc/email/requests/GetEmailReturnPathRequest.java new file mode 100644 index 00000000000..f19bae44490 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/requests/GetEmailReturnPathRequest.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.requests; + +import com.oracle.bmc.email.model.*; +/** + * Example: Click here to see how to use GetEmailReturnPathRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class GetEmailReturnPathRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * this email return path. + */ + private String emailReturnPathId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * this email return path. + */ + public String getEmailReturnPathId() { + return emailReturnPathId; + } + /** The request ID for tracing from the system */ + private String opcRequestId; + + /** The request ID for tracing from the system */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetEmailReturnPathRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of this email return path. + */ + private String emailReturnPathId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of this email return path. + * + * @param emailReturnPathId the value to set + * @return this builder instance + */ + public Builder emailReturnPathId(String emailReturnPathId) { + this.emailReturnPathId = emailReturnPathId; + return this; + } + + /** The request ID for tracing from the system */ + private String opcRequestId = null; + + /** + * The request ID for tracing from the system + * + * @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(GetEmailReturnPathRequest o) { + emailReturnPathId(o.getEmailReturnPathId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetEmailReturnPathRequest 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 GetEmailReturnPathRequest + */ + public GetEmailReturnPathRequest build() { + GetEmailReturnPathRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetEmailReturnPathRequest 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 GetEmailReturnPathRequest + */ + public GetEmailReturnPathRequest buildWithoutInvocationCallback() { + GetEmailReturnPathRequest request = new GetEmailReturnPathRequest(); + request.emailReturnPathId = emailReturnPathId; + request.opcRequestId = opcRequestId; + return request; + // new GetEmailReturnPathRequest(emailReturnPathId, 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().emailReturnPathId(emailReturnPathId).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(",emailReturnPathId=").append(String.valueOf(this.emailReturnPathId)); + 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 GetEmailReturnPathRequest)) { + return false; + } + + GetEmailReturnPathRequest other = (GetEmailReturnPathRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.emailReturnPathId, other.emailReturnPathId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.emailReturnPathId == null ? 43 : this.emailReturnPathId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/requests/ListEmailReturnPathsRequest.java b/bmc-email/src/main/java/com/oracle/bmc/email/requests/ListEmailReturnPathsRequest.java new file mode 100644 index 00000000000..0fe6685a942 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/requests/ListEmailReturnPathsRequest.java @@ -0,0 +1,526 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.requests; + +import com.oracle.bmc.email.model.*; +/** + * Example: Click here to see how to use ListEmailReturnPathsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class ListEmailReturnPathsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The request ID for tracing from the system */ + private String opcRequestId; + + /** The request ID for tracing from the system */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The OCID for the compartment. */ + private String compartmentId; + + /** The OCID for the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the Email Domain to which this Email Return Path belongs. + */ + private String parentResourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the Email Domain to which this Email Return Path belongs. + */ + public String getParentResourceId() { + return parentResourceId; + } + /** A filter to only return resources that match the given id exactly. */ + private String id; + + /** A filter to only return resources that match the given id exactly. */ + public String getId() { + return id; + } + /** A filter to only return resources that match the given name exactly. */ + private String name; + + /** A filter to only return resources that match the given name exactly. */ + public String getName() { + return name; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. {@code 1} is the minimum, {@code 1000} is the maximum. For important + * details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. {@code 1} is the minimum, {@code 1000} is the maximum. For important + * details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** The sort order to use, either ascending or descending order. */ + private com.oracle.bmc.email.model.SortOrder sortOrder; + + /** The sort order to use, either ascending or descending order. */ + public com.oracle.bmc.email.model.SortOrder getSortOrder() { + return sortOrder; + } + /** Filter returned list by specified lifecycle state. This parameter is case-insensitive. */ + private com.oracle.bmc.email.model.EmailReturnPath.LifecycleState lifecycleState; + + /** Filter returned list by specified lifecycle state. This parameter is case-insensitive. */ + public com.oracle.bmc.email.model.EmailReturnPath.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * Specifies the attribute with which to sort the return paths. + * + *

Default: {@code TIMECREATED} + * + *

**TIMECREATED:** Sorts by timeCreated. * **NAME:** Sorts by name. * **ID:** Sorts by id. + */ + private SortBy sortBy; + + /** + * Specifies the attribute with which to sort the return paths. + * + *

Default: {@code TIMECREATED} + * + *

**TIMECREATED:** Sorts by timeCreated. * **NAME:** Sorts by name. * **ID:** Sorts by id. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timecreated("TIMECREATED"), + Id("ID"), + Name("NAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * Specifies the attribute with which to sort the return paths. + * + *

Default: {@code TIMECREATED} + * + *

**TIMECREATED:** Sorts by timeCreated. * **NAME:** Sorts by name. * **ID:** Sorts by id. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListEmailReturnPathsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The request ID for tracing from the system */ + private String opcRequestId = null; + + /** + * The request ID for tracing from the system + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The OCID for the compartment. */ + private String compartmentId = null; + + /** + * The OCID for the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the Email Domain to which this Email Return Path belongs. + */ + private String parentResourceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the Email Domain to which this Email Return Path belongs. + * + * @param parentResourceId the value to set + * @return this builder instance + */ + public Builder parentResourceId(String parentResourceId) { + this.parentResourceId = parentResourceId; + return this; + } + + /** A filter to only return resources that match the given id exactly. */ + private String id = null; + + /** + * A filter to only return resources that match the given id exactly. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** A filter to only return resources that match the given name exactly. */ + private String name = null; + + /** + * A filter to only return resources that match the given name exactly. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. {@code 1} is the minimum, {@code 1000} is the maximum. For + * important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. {@code 1} is the minimum, {@code 1000} is the maximum. For + * important details about how pagination works, see [List + * Pagination](https://docs.cloud.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.cloud.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.cloud.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 or descending order. */ + private com.oracle.bmc.email.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending or descending order. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.email.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Filter returned list by specified lifecycle state. This parameter is case-insensitive. + */ + private com.oracle.bmc.email.model.EmailReturnPath.LifecycleState lifecycleState = null; + + /** + * Filter returned list by specified lifecycle state. This parameter is case-insensitive. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.email.model.EmailReturnPath.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Specifies the attribute with which to sort the return paths. + * + *

Default: {@code TIMECREATED} + * + *

**TIMECREATED:** Sorts by timeCreated. * **NAME:** Sorts by name. * **ID:** Sorts by + * id. + */ + private SortBy sortBy = null; + + /** + * Specifies the attribute with which to sort the return paths. + * + *

Default: {@code TIMECREATED} + * + *

**TIMECREATED:** Sorts by timeCreated. * **NAME:** Sorts by name. * **ID:** Sorts by + * id. + * + * @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(ListEmailReturnPathsRequest o) { + opcRequestId(o.getOpcRequestId()); + compartmentId(o.getCompartmentId()); + parentResourceId(o.getParentResourceId()); + id(o.getId()); + name(o.getName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListEmailReturnPathsRequest 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 ListEmailReturnPathsRequest + */ + public ListEmailReturnPathsRequest build() { + ListEmailReturnPathsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListEmailReturnPathsRequest 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 ListEmailReturnPathsRequest + */ + public ListEmailReturnPathsRequest buildWithoutInvocationCallback() { + ListEmailReturnPathsRequest request = new ListEmailReturnPathsRequest(); + request.opcRequestId = opcRequestId; + request.compartmentId = compartmentId; + request.parentResourceId = parentResourceId; + request.id = id; + request.name = name; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.sortBy = sortBy; + return request; + // new ListEmailReturnPathsRequest(opcRequestId, compartmentId, parentResourceId, id, + // name, limit, page, sortOrder, lifecycleState, 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() + .opcRequestId(opcRequestId) + .compartmentId(compartmentId) + .parentResourceId(parentResourceId) + .id(id) + .name(name) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",parentResourceId=").append(String.valueOf(this.parentResourceId)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",name=").append(String.valueOf(this.name)); + 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(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 ListEmailReturnPathsRequest)) { + return false; + } + + ListEmailReturnPathsRequest other = (ListEmailReturnPathsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.parentResourceId, other.parentResourceId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && 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.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.parentResourceId == null ? 43 : this.parentResourceId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/requests/UpdateEmailReturnPathRequest.java b/bmc-email/src/main/java/com/oracle/bmc/email/requests/UpdateEmailReturnPathRequest.java new file mode 100644 index 00000000000..7803ddd33bc --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/requests/UpdateEmailReturnPathRequest.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.requests; + +import com.oracle.bmc.email.model.*; +/** + * Example: Click here to see how to use + * UpdateEmailReturnPathRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class UpdateEmailReturnPathRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.email.model.UpdateEmailReturnPathDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * this email return path. + */ + private String emailReturnPathId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * this email return path. + */ + public String getEmailReturnPathId() { + return emailReturnPathId; + } + /** The new email return path attributes to apply. */ + private com.oracle.bmc.email.model.UpdateEmailReturnPathDetails updateEmailReturnPathDetails; + + /** The new email return path attributes to apply. */ + public com.oracle.bmc.email.model.UpdateEmailReturnPathDetails + getUpdateEmailReturnPathDetails() { + return updateEmailReturnPathDetails; + } + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous get, create, or update + * 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; + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous get, create, or update + * response for that resource. The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The request ID for tracing from the system */ + private String opcRequestId; + + /** The request ID for tracing from the system */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.email.model.UpdateEmailReturnPathDetails getBody$() { + return updateEmailReturnPathDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateEmailReturnPathRequest, + com.oracle.bmc.email.model.UpdateEmailReturnPathDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of this email return path. + */ + private String emailReturnPathId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of this email return path. + * + * @param emailReturnPathId the value to set + * @return this builder instance + */ + public Builder emailReturnPathId(String emailReturnPathId) { + this.emailReturnPathId = emailReturnPathId; + return this; + } + + /** The new email return path attributes to apply. */ + private com.oracle.bmc.email.model.UpdateEmailReturnPathDetails + updateEmailReturnPathDetails = null; + + /** + * The new email return path attributes to apply. + * + * @param updateEmailReturnPathDetails the value to set + * @return this builder instance + */ + public Builder updateEmailReturnPathDetails( + com.oracle.bmc.email.model.UpdateEmailReturnPathDetails + updateEmailReturnPathDetails) { + this.updateEmailReturnPathDetails = updateEmailReturnPathDetails; + return this; + } + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set + * the {@code if-match} parameter to the value of the etag from a previous get, create, or + * update 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; + + /** + * Used for optimistic concurrency control. In the update or delete call for a resource, set + * the {@code if-match} parameter to the value of the etag from a previous get, create, or + * update response for that resource. The resource will be updated or deleted only if the + * etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The request ID for tracing from the system */ + private String opcRequestId = null; + + /** + * The request ID for tracing from the system + * + * @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(UpdateEmailReturnPathRequest o) { + emailReturnPathId(o.getEmailReturnPathId()); + updateEmailReturnPathDetails(o.getUpdateEmailReturnPathDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateEmailReturnPathRequest 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 UpdateEmailReturnPathRequest + */ + public UpdateEmailReturnPathRequest build() { + UpdateEmailReturnPathRequest 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.email.model.UpdateEmailReturnPathDetails body) { + updateEmailReturnPathDetails(body); + return this; + } + + /** + * Build the instance of UpdateEmailReturnPathRequest 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 UpdateEmailReturnPathRequest + */ + public UpdateEmailReturnPathRequest buildWithoutInvocationCallback() { + UpdateEmailReturnPathRequest request = new UpdateEmailReturnPathRequest(); + request.emailReturnPathId = emailReturnPathId; + request.updateEmailReturnPathDetails = updateEmailReturnPathDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateEmailReturnPathRequest(emailReturnPathId, updateEmailReturnPathDetails, + // 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() + .emailReturnPathId(emailReturnPathId) + .updateEmailReturnPathDetails(updateEmailReturnPathDetails) + .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(",emailReturnPathId=").append(String.valueOf(this.emailReturnPathId)); + sb.append(",updateEmailReturnPathDetails=") + .append(String.valueOf(this.updateEmailReturnPathDetails)); + 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 UpdateEmailReturnPathRequest)) { + return false; + } + + UpdateEmailReturnPathRequest other = (UpdateEmailReturnPathRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.emailReturnPathId, other.emailReturnPathId) + && java.util.Objects.equals( + this.updateEmailReturnPathDetails, other.updateEmailReturnPathDetails) + && 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.emailReturnPathId == null ? 43 : this.emailReturnPathId.hashCode()); + result = + (result * PRIME) + + (this.updateEmailReturnPathDetails == null + ? 43 + : this.updateEmailReturnPathDetails.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-email/src/main/java/com/oracle/bmc/email/responses/CreateEmailReturnPathResponse.java b/bmc-email/src/main/java/com/oracle/bmc/email/responses/CreateEmailReturnPathResponse.java new file mode 100644 index 00000000000..b7627991a4a --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/responses/CreateEmailReturnPathResponse.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.responses; + +import com.oracle.bmc.email.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class CreateEmailReturnPathResponse extends com.oracle.bmc.responses.BmcResponse { + /** The full URI of the resource related to the request */ + private String contentLocation; + + /** + * The full URI of the resource related to the request + * + * @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 full URI of the resource related to the request */ + private String location; + + /** + * The full URI of the resource related to the request + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** The returned {@code EmailReturnPath} instance. */ + private com.oracle.bmc.email.model.EmailReturnPath emailReturnPath; + + /** + * The returned {@code EmailReturnPath} instance. + * + * @return the value + */ + public com.oracle.bmc.email.model.EmailReturnPath getEmailReturnPath() { + return emailReturnPath; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "contentLocation", + "etag", + "location", + "opcRequestId", + "opcWorkRequestId", + "emailReturnPath" + }) + private CreateEmailReturnPathResponse( + int __httpStatusCode__, + java.util.Map> headers, + String contentLocation, + String etag, + String location, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.email.model.EmailReturnPath emailReturnPath) { + super(__httpStatusCode__, headers); + this.contentLocation = contentLocation; + this.etag = etag; + this.location = location; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.emailReturnPath = emailReturnPath; + } + + 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 full URI of the resource related to the request */ + private String contentLocation; + + /** + * The full URI of the resource related to the request + * + * @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 full URI of the resource related to the request */ + private String location; + + /** + * The full URI of the resource related to the request + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** The returned {@code EmailReturnPath} instance. */ + private com.oracle.bmc.email.model.EmailReturnPath emailReturnPath; + + /** + * The returned {@code EmailReturnPath} instance. + * + * @param emailReturnPath the value to set + * @return this builder + */ + public Builder emailReturnPath(com.oracle.bmc.email.model.EmailReturnPath emailReturnPath) { + this.emailReturnPath = emailReturnPath; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateEmailReturnPathResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + location(o.getLocation()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + emailReturnPath(o.getEmailReturnPath()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateEmailReturnPathResponse build() { + return new CreateEmailReturnPathResponse( + __httpStatusCode__, + headers, + contentLocation, + etag, + location, + opcRequestId, + opcWorkRequestId, + emailReturnPath); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",emailReturnPath=").append(String.valueOf(emailReturnPath)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateEmailReturnPathResponse)) { + return false; + } + + CreateEmailReturnPathResponse other = (CreateEmailReturnPathResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.emailReturnPath, other.emailReturnPath); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.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.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.emailReturnPath == null ? 43 : this.emailReturnPath.hashCode()); + return result; + } +} diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/responses/DeleteEmailReturnPathResponse.java b/bmc-email/src/main/java/com/oracle/bmc/email/responses/DeleteEmailReturnPathResponse.java new file mode 100644 index 00000000000..bc846bf7071 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/responses/DeleteEmailReturnPathResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.responses; + +import com.oracle.bmc.email.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class DeleteEmailReturnPathResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteEmailReturnPathResponse( + 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; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteEmailReturnPathResponse 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 DeleteEmailReturnPathResponse build() { + return new DeleteEmailReturnPathResponse( + __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 DeleteEmailReturnPathResponse)) { + return false; + } + + DeleteEmailReturnPathResponse other = (DeleteEmailReturnPathResponse) 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-email/src/main/java/com/oracle/bmc/email/responses/GetEmailReturnPathResponse.java b/bmc-email/src/main/java/com/oracle/bmc/email/responses/GetEmailReturnPathResponse.java new file mode 100644 index 00000000000..dbceb034e16 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/responses/GetEmailReturnPathResponse.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.responses; + +import com.oracle.bmc.email.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class GetEmailReturnPathResponse 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 EmailReturnPath} instance. */ + private com.oracle.bmc.email.model.EmailReturnPath emailReturnPath; + + /** + * The returned {@code EmailReturnPath} instance. + * + * @return the value + */ + public com.oracle.bmc.email.model.EmailReturnPath getEmailReturnPath() { + return emailReturnPath; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "emailReturnPath" + }) + private GetEmailReturnPathResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.email.model.EmailReturnPath emailReturnPath) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.emailReturnPath = emailReturnPath; + } + + 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 EmailReturnPath} instance. */ + private com.oracle.bmc.email.model.EmailReturnPath emailReturnPath; + + /** + * The returned {@code EmailReturnPath} instance. + * + * @param emailReturnPath the value to set + * @return this builder + */ + public Builder emailReturnPath(com.oracle.bmc.email.model.EmailReturnPath emailReturnPath) { + this.emailReturnPath = emailReturnPath; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetEmailReturnPathResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + emailReturnPath(o.getEmailReturnPath()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetEmailReturnPathResponse build() { + return new GetEmailReturnPathResponse( + __httpStatusCode__, headers, etag, opcRequestId, emailReturnPath); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",emailReturnPath=").append(String.valueOf(emailReturnPath)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetEmailReturnPathResponse)) { + return false; + } + + GetEmailReturnPathResponse other = (GetEmailReturnPathResponse) 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.emailReturnPath, other.emailReturnPath); + } + + @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.emailReturnPath == null ? 43 : this.emailReturnPath.hashCode()); + return result; + } +} diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/responses/ListEmailReturnPathsResponse.java b/bmc-email/src/main/java/com/oracle/bmc/email/responses/ListEmailReturnPathsResponse.java new file mode 100644 index 00000000000..0a920d41390 --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/responses/ListEmailReturnPathsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.responses; + +import com.oracle.bmc.email.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class ListEmailReturnPathsResponse 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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the 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 EmailReturnPathCollection} instance. */ + private com.oracle.bmc.email.model.EmailReturnPathCollection emailReturnPathCollection; + + /** + * The returned {@code EmailReturnPathCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.email.model.EmailReturnPathCollection getEmailReturnPathCollection() { + return emailReturnPathCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "emailReturnPathCollection" + }) + private ListEmailReturnPathsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.email.model.EmailReturnPathCollection emailReturnPathCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.emailReturnPathCollection = emailReturnPathCollection; + } + + 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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, 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 EmailReturnPathCollection} instance. */ + private com.oracle.bmc.email.model.EmailReturnPathCollection emailReturnPathCollection; + + /** + * The returned {@code EmailReturnPathCollection} instance. + * + * @param emailReturnPathCollection the value to set + * @return this builder + */ + public Builder emailReturnPathCollection( + com.oracle.bmc.email.model.EmailReturnPathCollection emailReturnPathCollection) { + this.emailReturnPathCollection = emailReturnPathCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListEmailReturnPathsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + emailReturnPathCollection(o.getEmailReturnPathCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListEmailReturnPathsResponse build() { + return new ListEmailReturnPathsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + emailReturnPathCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",emailReturnPathCollection=").append(String.valueOf(emailReturnPathCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListEmailReturnPathsResponse)) { + return false; + } + + ListEmailReturnPathsResponse other = (ListEmailReturnPathsResponse) 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.emailReturnPathCollection, other.emailReturnPathCollection); + } + + @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.emailReturnPathCollection == null + ? 43 + : this.emailReturnPathCollection.hashCode()); + return result; + } +} diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/responses/UpdateEmailReturnPathResponse.java b/bmc-email/src/main/java/com/oracle/bmc/email/responses/UpdateEmailReturnPathResponse.java new file mode 100644 index 00000000000..cedeb0b908f --- /dev/null +++ b/bmc-email/src/main/java/com/oracle/bmc/email/responses/UpdateEmailReturnPathResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.email.responses; + +import com.oracle.bmc.email.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") +public class UpdateEmailReturnPathResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateEmailReturnPathResponse( + 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; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateEmailReturnPathResponse 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 UpdateEmailReturnPathResponse build() { + return new UpdateEmailReturnPathResponse( + __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 UpdateEmailReturnPathResponse)) { + return false; + } + + UpdateEmailReturnPathResponse other = (UpdateEmailReturnPathResponse) 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-email/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-email/reflect-config.json b/bmc-email/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-email/reflect-config.json index ed121248d31..d22710cc3ca 100644 --- a/bmc-email/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-email/reflect-config.json +++ b/bmc-email/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-email/reflect-config.json @@ -75,6 +75,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.CreateEmailReturnPathDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.CreateEmailReturnPathDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.email.model.CreateSenderDetails", @@ -151,6 +165,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.DomainVerificationStatusType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.email.model.EmailDomain", @@ -199,6 +219,54 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.EmailReturnPath", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.EmailReturnPath$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.EmailReturnPath$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.EmailReturnPathCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.EmailReturnPathCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.EmailReturnPathSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.EmailReturnPathSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.email.model.OperationStatus", @@ -313,6 +381,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.UpdateEmailReturnPathDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.email.model.UpdateEmailReturnPathDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.email.model.UpdateSenderDetails", diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 56c44c0135c..9750da7fe6d 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index fddf1113f11..2a0587f88af 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 6de7e01d756..753cac73330 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.41.1 + 3.41.2 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 10aedced832..7ff5907b734 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.41.1 + 3.41.2 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 3481a5a7a4b..1f7b784321e 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index faaa3d9a53d..46543875b93 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.1 + 3.41.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 pom import @@ -685,5 +685,9 @@ com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups + + com.oracle.oci.sdk + oci-java-sdk-marketplaceprivateoffer + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 6982c3c9f91..deae1fe5234 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 3fa6ee065fa..fd3b7ebe9ee 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 122ae4428a1..90df942acc9 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.1 + 3.41.2 pom import @@ -583,5 +583,9 @@ com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups + + com.oracle.oci.sdk + oci-java-sdk-marketplaceprivateoffer + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 589d9a14e6d..d10237b9049 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index e37b2d603cf..4df15412c48 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 58673905931..4fee11eeb50 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index c662c5c17ec..77bd174802e 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 2ef233d00df..a70896e75b9 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index 09ccdf0aad4..3ca637effdb 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index ec2b0df3549..b105e14d91a 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index ea7add7c5e9..1f8dce7f641 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index ec7ce0800fb..be31e988a5d 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 139b2df33c3..a93595fd234 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 626d970e56e..2d57c82f17f 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 39a6cb476c9..4d7b71013bd 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index e748ba3c428..e9ab43e4c61 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index e7975bdb41d..1ec62ec3de7 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index b7c2b6ba639..5efd74c4691 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index afb7e3c668b..82e7c0bfb5a 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 6a81f2e5f5b..79cc8dd7326 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 54a74b49dde..de37669c25a 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index d39a8b0f92c..cda174b5ae4 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfiguration.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfiguration.java index 4e17d8bcbf8..1d24f0b5c1f 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfiguration.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfiguration.java @@ -30,6 +30,7 @@ public final class SSLConfiguration @java.beans.ConstructorProperties({ "verifyDepth", "verifyPeerCertificate", + "hasSessionResumption", "trustedCertificateAuthorityIds", "certificateIds", "certificateName", @@ -40,6 +41,7 @@ public final class SSLConfiguration public SSLConfiguration( Integer verifyDepth, Boolean verifyPeerCertificate, + Boolean hasSessionResumption, java.util.List trustedCertificateAuthorityIds, java.util.List certificateIds, String certificateName, @@ -49,6 +51,7 @@ public SSLConfiguration( super(); this.verifyDepth = verifyDepth; this.verifyPeerCertificate = verifyPeerCertificate; + this.hasSessionResumption = hasSessionResumption; this.trustedCertificateAuthorityIds = trustedCertificateAuthorityIds; this.certificateIds = certificateIds; this.certificateName = certificateName; @@ -101,6 +104,37 @@ public Builder verifyPeerCertificate(Boolean verifyPeerCertificate) { this.__explicitlySet__.add("verifyPeerCertificate"); return this; } + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption + * improves performance but provides a lower level of security. Disabling session resumption + * improves security but reduces performance. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("hasSessionResumption") + private Boolean hasSessionResumption; + + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption + * improves performance but provides a lower level of security. Disabling session resumption + * improves security but reduces performance. + * + *

Example: {@code true} + * + * @param hasSessionResumption the value to set + * @return this builder + */ + public Builder hasSessionResumption(Boolean hasSessionResumption) { + this.hasSessionResumption = hasSessionResumption; + this.__explicitlySet__.add("hasSessionResumption"); + return this; + } /** * Ids for OCI certificates service CA or CA bundles for the load balancer to trust. * @@ -343,6 +377,7 @@ public SSLConfiguration build() { new SSLConfiguration( this.verifyDepth, this.verifyPeerCertificate, + this.hasSessionResumption, this.trustedCertificateAuthorityIds, this.certificateIds, this.certificateName, @@ -363,6 +398,9 @@ public Builder copy(SSLConfiguration model) { if (model.wasPropertyExplicitlySet("verifyPeerCertificate")) { this.verifyPeerCertificate(model.getVerifyPeerCertificate()); } + if (model.wasPropertyExplicitlySet("hasSessionResumption")) { + this.hasSessionResumption(model.getHasSessionResumption()); + } if (model.wasPropertyExplicitlySet("trustedCertificateAuthorityIds")) { this.trustedCertificateAuthorityIds(model.getTrustedCertificateAuthorityIds()); } @@ -432,6 +470,35 @@ public Boolean getVerifyPeerCertificate() { return verifyPeerCertificate; } + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption improves + * performance but provides a lower level of security. Disabling session resumption improves + * security but reduces performance. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("hasSessionResumption") + private final Boolean hasSessionResumption; + + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption improves + * performance but provides a lower level of security. Disabling session resumption improves + * security but reduces performance. + * + *

Example: {@code true} + * + * @return the value + */ + public Boolean getHasSessionResumption() { + return hasSessionResumption; + } + /** * Ids for OCI certificates service CA or CA bundles for the load balancer to trust. * @@ -716,6 +783,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("verifyDepth=").append(String.valueOf(this.verifyDepth)); sb.append(", verifyPeerCertificate=").append(String.valueOf(this.verifyPeerCertificate)); + sb.append(", hasSessionResumption=").append(String.valueOf(this.hasSessionResumption)); sb.append(", trustedCertificateAuthorityIds=") .append(String.valueOf(this.trustedCertificateAuthorityIds)); sb.append(", certificateIds=").append(String.valueOf(this.certificateIds)); @@ -739,6 +807,7 @@ public boolean equals(Object o) { SSLConfiguration other = (SSLConfiguration) o; return java.util.Objects.equals(this.verifyDepth, other.verifyDepth) && java.util.Objects.equals(this.verifyPeerCertificate, other.verifyPeerCertificate) + && java.util.Objects.equals(this.hasSessionResumption, other.hasSessionResumption) && java.util.Objects.equals( this.trustedCertificateAuthorityIds, other.trustedCertificateAuthorityIds) && java.util.Objects.equals(this.certificateIds, other.certificateIds) @@ -759,6 +828,11 @@ public int hashCode() { + (this.verifyPeerCertificate == null ? 43 : this.verifyPeerCertificate.hashCode()); + result = + (result * PRIME) + + (this.hasSessionResumption == null + ? 43 + : this.hasSessionResumption.hashCode()); result = (result * PRIME) + (this.trustedCertificateAuthorityIds == null diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfigurationDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfigurationDetails.java index 22e49c2bbe0..6425d317537 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfigurationDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/SSLConfigurationDetails.java @@ -29,6 +29,7 @@ public final class SSLConfigurationDetails @java.beans.ConstructorProperties({ "verifyDepth", "verifyPeerCertificate", + "hasSessionResumption", "trustedCertificateAuthorityIds", "certificateIds", "certificateName", @@ -39,6 +40,7 @@ public final class SSLConfigurationDetails public SSLConfigurationDetails( Integer verifyDepth, Boolean verifyPeerCertificate, + Boolean hasSessionResumption, java.util.List trustedCertificateAuthorityIds, java.util.List certificateIds, String certificateName, @@ -48,6 +50,7 @@ public SSLConfigurationDetails( super(); this.verifyDepth = verifyDepth; this.verifyPeerCertificate = verifyPeerCertificate; + this.hasSessionResumption = hasSessionResumption; this.trustedCertificateAuthorityIds = trustedCertificateAuthorityIds; this.certificateIds = certificateIds; this.certificateName = certificateName; @@ -100,6 +103,37 @@ public Builder verifyPeerCertificate(Boolean verifyPeerCertificate) { this.__explicitlySet__.add("verifyPeerCertificate"); return this; } + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption + * improves performance but provides a lower level of security. Disabling session resumption + * improves security but reduces performance. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("hasSessionResumption") + private Boolean hasSessionResumption; + + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption + * improves performance but provides a lower level of security. Disabling session resumption + * improves security but reduces performance. + * + *

Example: {@code true} + * + * @param hasSessionResumption the value to set + * @return this builder + */ + public Builder hasSessionResumption(Boolean hasSessionResumption) { + this.hasSessionResumption = hasSessionResumption; + this.__explicitlySet__.add("hasSessionResumption"); + return this; + } /** * Ids for OCI certificates service CA or CA bundles for the load balancer to trust. * @@ -342,6 +376,7 @@ public SSLConfigurationDetails build() { new SSLConfigurationDetails( this.verifyDepth, this.verifyPeerCertificate, + this.hasSessionResumption, this.trustedCertificateAuthorityIds, this.certificateIds, this.certificateName, @@ -362,6 +397,9 @@ public Builder copy(SSLConfigurationDetails model) { if (model.wasPropertyExplicitlySet("verifyPeerCertificate")) { this.verifyPeerCertificate(model.getVerifyPeerCertificate()); } + if (model.wasPropertyExplicitlySet("hasSessionResumption")) { + this.hasSessionResumption(model.getHasSessionResumption()); + } if (model.wasPropertyExplicitlySet("trustedCertificateAuthorityIds")) { this.trustedCertificateAuthorityIds(model.getTrustedCertificateAuthorityIds()); } @@ -431,6 +469,35 @@ public Boolean getVerifyPeerCertificate() { return verifyPeerCertificate; } + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption improves + * performance but provides a lower level of security. Disabling session resumption improves + * security but reduces performance. + * + *

Example: {@code true} + */ + @com.fasterxml.jackson.annotation.JsonProperty("hasSessionResumption") + private final Boolean hasSessionResumption; + + /** + * Whether the load balancer listener should resume an encrypted session by reusing the + * cryptographic parameters of a previous TLS session, without having to perform a full + * handshake again. If "true", the service resumes the previous TLS encrypted session. If + * "false", the service starts a new TLS encrypted session. Enabling session resumption improves + * performance but provides a lower level of security. Disabling session resumption improves + * security but reduces performance. + * + *

Example: {@code true} + * + * @return the value + */ + public Boolean getHasSessionResumption() { + return hasSessionResumption; + } + /** * Ids for OCI certificates service CA or CA bundles for the load balancer to trust. * @@ -702,6 +769,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("verifyDepth=").append(String.valueOf(this.verifyDepth)); sb.append(", verifyPeerCertificate=").append(String.valueOf(this.verifyPeerCertificate)); + sb.append(", hasSessionResumption=").append(String.valueOf(this.hasSessionResumption)); sb.append(", trustedCertificateAuthorityIds=") .append(String.valueOf(this.trustedCertificateAuthorityIds)); sb.append(", certificateIds=").append(String.valueOf(this.certificateIds)); @@ -725,6 +793,7 @@ public boolean equals(Object o) { SSLConfigurationDetails other = (SSLConfigurationDetails) o; return java.util.Objects.equals(this.verifyDepth, other.verifyDepth) && java.util.Objects.equals(this.verifyPeerCertificate, other.verifyPeerCertificate) + && java.util.Objects.equals(this.hasSessionResumption, other.hasSessionResumption) && java.util.Objects.equals( this.trustedCertificateAuthorityIds, other.trustedCertificateAuthorityIds) && java.util.Objects.equals(this.certificateIds, other.certificateIds) @@ -745,6 +814,11 @@ public int hashCode() { + (this.verifyPeerCertificate == null ? 43 : this.verifyPeerCertificate.hashCode()); + result = + (result * PRIME) + + (this.hasSessionResumption == null + ? 43 + : this.hasSessionResumption.hashCode()); result = (result * PRIME) + (this.trustedCertificateAuthorityIds == null diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 634f44354d6..0900459dcd8 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index bb59b5c8216..b939ec87e16 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index ee0b46e78e6..205e93dd9ad 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 42e73b27895..c757f482300 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index d7dcbf8d7fe..b4196e5b959 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 7d04018fee4..c07ca163c2c 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 9b09b875b7b..50ca7981f0b 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index e2b5b987db0..0eae17e62c8 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml new file mode 100644 index 00000000000..4ba4a96a3ba --- /dev/null +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.41.2 + ../pom.xml + + oci-java-sdk-marketplaceprivateoffer + Oracle Cloud Infrastructure SDK - Marketplace Private Offer + This project contains the SDK used for Oracle Cloud Infrastructure Marketplace Private Offer + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.41.2 + + + \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Attachment.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Attachment.java new file mode 100644 index 00000000000..78f790ee5f9 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Attachment.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. 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: 20220901") +public interface Attachment extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Attachment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

Example: Click here to see how to use + * GetAttachmentContent API. + */ + GetAttachmentContentResponse getAttachmentContent(GetAttachmentContentRequest request); + + /** + * Returns a list of Attachments. Requires either the BuyerCompartmentId or the + * SellerCompartmentId params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListAttachments + * API. + */ + ListAttachmentsResponse listAttachments(ListAttachmentsRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + AttachmentWaiters 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. + */ + AttachmentPaginators getPaginators(); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentAsync.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentAsync.java new file mode 100644 index 00000000000..491eaa25124 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentAsync.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public interface AttachmentAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Attachment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createAttachment( + CreateAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a Attachment resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteAttachment( + DeleteAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a Attachment by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAttachment( + GetAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a Attachment content by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAttachmentContent( + GetAttachmentContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAttachmentContentRequest, GetAttachmentContentResponse> + handler); + + /** + * Returns a list of Attachments. Requires either the BuyerCompartmentId or the + * SellerCompartmentId params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listAttachments( + ListAttachmentsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentAsyncClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentAsyncClient.java new file mode 100644 index 00000000000..862b4e11b84 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentAsyncClient.java @@ -0,0 +1,449 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Attachment 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: 20220901") +public class AttachmentAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements AttachmentAsync { + /** Service instance for Attachment. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("ATTACHMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AttachmentAsyncClient.class); + + AttachmentAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + AttachmentAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { + super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "AttachmentAsyncClient", "getAttachmentContent")); + } + } + + /** + * 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 boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplaceprivateoffer"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public AttachmentAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AttachmentAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future createAttachment( + CreateAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateAttachmentRequest, CreateAttachmentResponse> + handler) { + Objects.requireNonNull( + request.getCreateAttachmentDetails(), "createAttachmentDetails is required"); + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, CreateAttachmentResponse::builder) + .logger(LOG, "createAttachment") + .serviceDetails("Attachment", "CreateAttachment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.class, + CreateAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", CreateAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteAttachment( + DeleteAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteAttachmentRequest, DeleteAttachmentResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, DeleteAttachmentResponse::builder) + .logger(LOG, "deleteAttachment") + .serviceDetails("Attachment", "DeleteAttachment", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteAttachmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAttachment( + GetAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentResponse::builder) + .logger(LOG, "getAttachment") + .serviceDetails("Attachment", "GetAttachment", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.class, + GetAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", GetAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAttachmentContent( + GetAttachmentContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAttachmentContentRequest, GetAttachmentContentResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentContentResponse::builder) + .logger(LOG, "getAttachmentContent") + .serviceDetails("Attachment", "GetAttachmentContent", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentContentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + java.io.InputStream.class, + GetAttachmentContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentContentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAttachments( + ListAttachmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAttachmentsRequest, ListAttachmentsResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, ListAttachmentsResponse::builder) + .logger(LOG, "listAttachments") + .serviceDetails("Attachment", "ListAttachments", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAttachmentsRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplaceprivateoffer.model.AttachmentCollection.class, + ListAttachmentsResponse.Builder::attachmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAttachmentsResponse.Builder::opcNextPage) + .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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentClient.java new file mode 100644 index 00000000000..4744802a118 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentClient.java @@ -0,0 +1,517 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.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: 20220901") +public class AttachmentClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements Attachment { + /** Service instance for Attachment. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("ATTACHMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AttachmentClient.class); + + private final AttachmentWaiters waiters; + + private final AttachmentPaginators paginators; + + AttachmentClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + AttachmentClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService, + boolean isStreamWarningEnabled) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("Attachment-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new AttachmentWaiters(executorService, this); + + this.paginators = new AttachmentPaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "AttachmentClient", "getAttachmentContent")); + } + } + + /** + * 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 boolean isStreamWarningEnabled = true; + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplaceprivateoffer"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public AttachmentClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AttachmentClient( + this, authenticationDetailsProvider, executorService, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CreateAttachmentResponse createAttachment(CreateAttachmentRequest request) { + Objects.requireNonNull( + request.getCreateAttachmentDetails(), "createAttachmentDetails is required"); + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, CreateAttachmentResponse::builder) + .logger(LOG, "createAttachment") + .serviceDetails("Attachment", "CreateAttachment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.class, + CreateAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", CreateAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteAttachmentResponse deleteAttachment(DeleteAttachmentRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, DeleteAttachmentResponse::builder) + .logger(LOG, "deleteAttachment") + .serviceDetails("Attachment", "DeleteAttachment", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteAttachmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetAttachmentResponse getAttachment(GetAttachmentRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentResponse::builder) + .logger(LOG, "getAttachment") + .serviceDetails("Attachment", "GetAttachment", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.class, + GetAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", GetAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetAttachmentContentResponse getAttachmentContent(GetAttachmentContentRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentContentResponse::builder) + .logger(LOG, "getAttachmentContent") + .serviceDetails("Attachment", "GetAttachmentContent", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentContentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + GetAttachmentContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentContentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListAttachmentsResponse listAttachments(ListAttachmentsRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, ListAttachmentsResponse::builder) + .logger(LOG, "listAttachments") + .serviceDetails("Attachment", "ListAttachments", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAttachmentsRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplaceprivateoffer.model.AttachmentCollection.class, + ListAttachmentsResponse.Builder::attachmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAttachmentsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public AttachmentWaiters getWaiters() { + return waiters; + } + + @Override + public AttachmentPaginators 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentPaginators.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentPaginators.java new file mode 100644 index 00000000000..6b0050b9fb3 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentPaginators.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Attachment where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to + * as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: + * listUsersResponseIterator + *
  • Iterating over the resources/records being listed. These are referred to as + * RecordIterators, and the methods are suffixed with RecordIterator. For example: + * listUsersRecordIterator + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachmentPaginators { + private final Attachment client; + + public AttachmentPaginators(Attachment client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAttachments 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 listAttachmentsResponseIterator( + final ListAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAttachmentsRequest.Builder, ListAttachmentsRequest, ListAttachmentsResponse>( + new java.util.function.Supplier() { + @Override + public ListAttachmentsRequest.Builder get() { + return ListAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.Builder>, + ListAttachmentsRequest>() { + @Override + public ListAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.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 ListAttachmentsResponse apply(ListAttachmentsRequest request) { + return client.listAttachments(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplaceprivateoffer.model.AttachmentSummary} objects contained in + * responses from the listAttachments 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.marketplaceprivateoffer.model.AttachmentSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAttachmentsRecordIterator(final ListAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAttachmentsRequest.Builder, + ListAttachmentsRequest, + ListAttachmentsResponse, + com.oracle.bmc.marketplaceprivateoffer.model.AttachmentSummary>( + new java.util.function.Supplier() { + @Override + public ListAttachmentsRequest.Builder get() { + return ListAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.Builder>, + ListAttachmentsRequest>() { + @Override + public ListAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.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 ListAttachmentsResponse apply(ListAttachmentsRequest request) { + return client.listAttachments(request); + } + }, + new java.util.function.Function< + ListAttachmentsResponse, + java.util.List< + com.oracle.bmc.marketplaceprivateoffer.model.AttachmentSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplaceprivateoffer.model.AttachmentSummary> + apply(ListAttachmentsResponse response) { + return response.getAttachmentCollection().getItems(); + } + }); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentWaiters.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentWaiters.java new file mode 100644 index 00000000000..b1b3cbaf827 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/AttachmentWaiters.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Attachment. + * + *

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: 20220901") +public class AttachmentWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Attachment client; + + public AttachmentWaiters( + java.util.concurrent.ExecutorService executorService, Attachment 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 forAttachment( + GetAttachmentRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.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 forAttachment( + 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 forAttachment( + GetAttachmentRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.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 forAttachment( + 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 forAttachment( + GetAttachmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.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 forAttachment( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Attachment. + private com.oracle.bmc.waiter.Waiter forAttachment( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAttachmentRequest request, + final com.oracle.bmc.marketplaceprivateoffer.model.Attachment.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< + GetAttachmentRequest, GetAttachmentResponse>() { + @Override + public GetAttachmentResponse apply(GetAttachmentRequest request) { + return client.getAttachment(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetAttachmentResponse response) { + return targetStatesSet.contains( + response.getAttachment().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment + .LifecycleState.Deleted)), + request); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Offer.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Offer.java new file mode 100644 index 00000000000..ef30e160149 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Offer.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. 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: 20220901") +public interface Offer extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Offer. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

Example: Click here to see how to use + * GetOfferInternalDetail API. + */ + GetOfferInternalDetailResponse getOfferInternalDetail(GetOfferInternalDetailRequest request); + + /** + * Returns a list of Offers. Requires either the BuyerCompartmentId or the SellerCompartmentId + * params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use UpdateOffer API. + */ + UpdateOfferResponse updateOffer(UpdateOfferRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + OfferWaiters 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. + */ + OfferPaginators getPaginators(); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsync.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsync.java new file mode 100644 index 00000000000..277b0a9ba84 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsync.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public interface OfferAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Offer. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createOffer( + CreateOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Deletes an Offer resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteOffer( + DeleteOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets an Offer by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getOffer( + GetOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets an Offer internal details by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getOfferInternalDetail( + GetOfferInternalDetailRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOfferInternalDetailRequest, GetOfferInternalDetailResponse> + handler); + + /** + * Returns a list of Offers. Requires either the BuyerCompartmentId or the SellerCompartmentId + * params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOffers( + ListOffersRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Updates the Offer + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateOffer( + UpdateOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsyncClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsyncClient.java new file mode 100644 index 00000000000..15b1c6e9ff4 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsyncClient.java @@ -0,0 +1,429 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Offer 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: 20220901") +public class OfferAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements OfferAsync { + /** Service instance for Offer. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("OFFER") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferAsyncClient.class); + + OfferAsyncClient( + 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 = "marketplaceprivateoffer"; + com.oracle.bmc.internal.Alloy.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 OfferAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new OfferAsyncClient(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 createOffer( + CreateOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCreateOfferDetails(), "createOfferDetails is required"); + + return clientCall(request, CreateOfferResponse::builder) + .logger(LOG, "createOffer") + .serviceDetails("Offer", "CreateOffer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.class, + CreateOfferResponse.Builder::offer) + .handleResponseHeaderString( + "opc-request-id", CreateOfferResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateOfferResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteOffer( + DeleteOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, DeleteOfferResponse::builder) + .logger(LOG, "deleteOffer") + .serviceDetails("Offer", "DeleteOffer", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteOfferResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOffer( + GetOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferResponse::builder) + .logger(LOG, "getOffer") + .serviceDetails("Offer", "GetOffer", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.class, + GetOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", GetOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOfferInternalDetail( + GetOfferInternalDetailRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOfferInternalDetailRequest, GetOfferInternalDetailResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferInternalDetailResponse::builder) + .logger(LOG, "getOfferInternalDetail") + .serviceDetails("Offer", "GetOfferInternalDetail", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferInternalDetailRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("internalDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail.class, + GetOfferInternalDetailResponse.Builder::offerInternalDetail) + .handleResponseHeaderString("etag", GetOfferInternalDetailResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferInternalDetailResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOffers( + ListOffersRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + return clientCall(request, ListOffersResponse::builder) + .logger(LOG, "listOffers") + .serviceDetails("Offer", "ListOffers", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOffersRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplaceprivateoffer.model.OfferCollection.class, + ListOffersResponse.Builder::offerCollection) + .handleResponseHeaderString( + "opc-request-id", ListOffersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOffersResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateOffer( + UpdateOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + Objects.requireNonNull(request.getUpdateOfferDetails(), "updateOfferDetails is required"); + + return clientCall(request, UpdateOfferResponse::builder) + .logger(LOG, "updateOffer") + .serviceDetails("Offer", "UpdateOffer", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.class, + UpdateOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", UpdateOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOfferResponse.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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferClient.java new file mode 100644 index 00000000000..5468ce66d30 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferClient.java @@ -0,0 +1,499 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.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: 20220901") +public class OfferClient extends com.oracle.bmc.http.internal.BaseSyncClient implements Offer { + /** Service instance for Offer. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("OFFER") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferClient.class); + + private final OfferWaiters waiters; + + private final OfferPaginators paginators; + + OfferClient( + 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("Offer-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new OfferWaiters(executorService, this); + + this.paginators = new OfferPaginators(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 = "marketplaceprivateoffer"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public OfferClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new OfferClient(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 CreateOfferResponse createOffer(CreateOfferRequest request) { + Objects.requireNonNull(request.getCreateOfferDetails(), "createOfferDetails is required"); + + return clientCall(request, CreateOfferResponse::builder) + .logger(LOG, "createOffer") + .serviceDetails("Offer", "CreateOffer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.class, + CreateOfferResponse.Builder::offer) + .handleResponseHeaderString( + "opc-request-id", CreateOfferResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateOfferResponse.Builder::etag) + .callSync(); + } + + @Override + public DeleteOfferResponse deleteOffer(DeleteOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, DeleteOfferResponse::builder) + .logger(LOG, "deleteOffer") + .serviceDetails("Offer", "DeleteOffer", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteOfferResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOfferResponse getOffer(GetOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferResponse::builder) + .logger(LOG, "getOffer") + .serviceDetails("Offer", "GetOffer", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.class, + GetOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", GetOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOfferInternalDetailResponse getOfferInternalDetail( + GetOfferInternalDetailRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferInternalDetailResponse::builder) + .logger(LOG, "getOfferInternalDetail") + .serviceDetails("Offer", "GetOfferInternalDetail", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferInternalDetailRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("internalDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail.class, + GetOfferInternalDetailResponse.Builder::offerInternalDetail) + .handleResponseHeaderString("etag", GetOfferInternalDetailResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferInternalDetailResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListOffersResponse listOffers(ListOffersRequest request) { + + return clientCall(request, ListOffersResponse::builder) + .logger(LOG, "listOffers") + .serviceDetails("Offer", "ListOffers", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOffersRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplaceprivateoffer.model.OfferCollection.class, + ListOffersResponse.Builder::offerCollection) + .handleResponseHeaderString( + "opc-request-id", ListOffersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOffersResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public UpdateOfferResponse updateOffer(UpdateOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + Objects.requireNonNull(request.getUpdateOfferDetails(), "updateOfferDetails is required"); + + return clientCall(request, UpdateOfferResponse::builder) + .logger(LOG, "updateOffer") + .serviceDetails("Offer", "UpdateOffer", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.class, + UpdateOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", UpdateOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOfferResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public OfferWaiters getWaiters() { + return waiters; + } + + @Override + public OfferPaginators 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferPaginators.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferPaginators.java new file mode 100644 index 00000000000..a02952821b6 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferPaginators.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Offer where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to + * as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: + * listUsersResponseIterator + *
  • Iterating over the resources/records being listed. These are referred to as + * RecordIterators, and the methods are suffixed with RecordIterator. For example: + * listUsersRecordIterator + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class OfferPaginators { + private final Offer client; + + public OfferPaginators(Offer client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listOffers + * 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 listOffersResponseIterator( + final ListOffersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOffersRequest.Builder, ListOffersRequest, ListOffersResponse>( + new java.util.function.Supplier() { + @Override + public ListOffersRequest.Builder get() { + return ListOffersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOffersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.Builder>, + ListOffersRequest>() { + @Override + public ListOffersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.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 ListOffersResponse apply(ListOffersRequest request) { + return client.listOffers(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplaceprivateoffer.model.OfferSummary} objects contained in responses + * from the listOffers 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.marketplaceprivateoffer.model.OfferSummary} objects contained in responses + * received from the service. + */ + public Iterable + listOffersRecordIterator(final ListOffersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOffersRequest.Builder, + ListOffersRequest, + ListOffersResponse, + com.oracle.bmc.marketplaceprivateoffer.model.OfferSummary>( + new java.util.function.Supplier() { + @Override + public ListOffersRequest.Builder get() { + return ListOffersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOffersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.Builder>, + ListOffersRequest>() { + @Override + public ListOffersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.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 ListOffersResponse apply(ListOffersRequest request) { + return client.listOffers(request); + } + }, + new java.util.function.Function< + ListOffersResponse, + java.util.List< + com.oracle.bmc.marketplaceprivateoffer.model.OfferSummary>>() { + @Override + public java.util.List + apply(ListOffersResponse response) { + return response.getOfferCollection().getItems(); + } + }); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferWaiters.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferWaiters.java new file mode 100644 index 00000000000..0af9e083512 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferWaiters.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer; + +import com.oracle.bmc.marketplaceprivateoffer.requests.*; +import com.oracle.bmc.marketplaceprivateoffer.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Offer. + * + *

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: 20220901") +public class OfferWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Offer client; + + public OfferWaiters(java.util.concurrent.ExecutorService executorService, Offer 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 forOffer( + GetOfferRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.Offer.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 forOffer( + 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 forOffer( + GetOfferRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.Offer.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 forOffer( + 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 forOffer( + GetOfferRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.marketplaceprivateoffer.model.Offer.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 forOffer( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Offer. + private com.oracle.bmc.waiter.Waiter forOffer( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOfferRequest request, + final com.oracle.bmc.marketplaceprivateoffer.model.Offer.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 GetOfferResponse apply(GetOfferRequest request) { + return client.getOffer(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOfferResponse response) { + return targetStatesSet.contains( + response.getOffer().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Attachment.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Attachment.java new file mode 100644 index 00000000000..37e55cb0b09 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Attachment.java @@ -0,0 +1,641 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Description of Attachment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Attachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Attachment extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "sellerCompartmentId", + "offerId", + "buyerCompartmentId", + "mimeType", + "displayName", + "type", + "timeCreated", + "lifecycleState", + "freeformTags", + "definedTags" + }) + public Attachment( + String id, + String sellerCompartmentId, + String offerId, + String buyerCompartmentId, + String mimeType, + String displayName, + Type type, + java.util.Date timeCreated, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.sellerCompartmentId = sellerCompartmentId; + this.offerId = offerId; + this.buyerCompartmentId = buyerCompartmentId; + this.mimeType = mimeType; + this.displayName = displayName; + this.type = type; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @param offerId the value to set + * @return this builder + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + this.__explicitlySet__.add("offerId"); + return this; + } + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of offer attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Attachment build() { + Attachment model = + new Attachment( + this.id, + this.sellerCompartmentId, + this.offerId, + this.buyerCompartmentId, + this.mimeType, + this.displayName, + this.type, + this.timeCreated, + this.lifecycleState, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Attachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("offerId")) { + this.offerId(model.getOfferId()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private final String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @return the value + */ + public String getOfferId() { + return offerId; + } + + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The type of offer attachment. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + ContractTAndC("CONTRACT_T_AND_C"), + Quote("QUOTE"), + Eula("EULA"), + TermsOfUse("TERMS_OF_USE"), + Misc("MISC"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of offer attachment. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The current state of the Offer. */ + 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 Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Attachment("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", offerId=").append(String.valueOf(this.offerId)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Attachment)) { + return false; + } + + Attachment other = (Attachment) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/AttachmentCollection.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/AttachmentCollection.java new file mode 100644 index 00000000000..768c037dfd1 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/AttachmentCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Results of a offers search. Contains boh AttachmentSummary 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: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachmentCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachmentCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AttachmentCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of attachment. + * + * @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 AttachmentCollection build() { + AttachmentCollection model = new AttachmentCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachmentCollection 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 attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of attachment. + * + * @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("AttachmentCollection("); + 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 AttachmentCollection)) { + return false; + } + + AttachmentCollection other = (AttachmentCollection) 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/AttachmentSummary.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/AttachmentSummary.java new file mode 100644 index 00000000000..3bf1820fb64 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/AttachmentSummary.java @@ -0,0 +1,424 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Description of Attachment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachmentSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachmentSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "offerId", + "mimeType", + "displayName", + "type", + "lifecycleState", + "freeformTags", + "definedTags" + }) + public AttachmentSummary( + String id, + String offerId, + String mimeType, + String displayName, + Attachment.Type type, + Attachment.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.offerId = offerId; + this.mimeType = mimeType; + this.displayName = displayName; + this.type = type; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @param offerId the value to set + * @return this builder + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + this.__explicitlySet__.add("offerId"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Attachment.Type type; + + /** + * The type of offer attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Attachment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The current state of the Attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Attachment.LifecycleState lifecycleState; + + /** + * The current state of the Attachment. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Attachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttachmentSummary build() { + AttachmentSummary model = + new AttachmentSummary( + this.id, + this.offerId, + this.mimeType, + this.displayName, + this.type, + this.lifecycleState, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachmentSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("offerId")) { + this.offerId(model.getOfferId()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private final String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @return the value + */ + public String getOfferId() { + return offerId; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Attachment.Type type; + + /** + * The type of offer attachment. + * + * @return the value + */ + public Attachment.Type getType() { + return type; + } + + /** The current state of the Attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Attachment.LifecycleState lifecycleState; + + /** + * The current state of the Attachment. + * + * @return the value + */ + public Attachment.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AttachmentSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", offerId=").append(String.valueOf(this.offerId)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AttachmentSummary)) { + return false; + } + + AttachmentSummary other = (AttachmentSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/BuyerInformation.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/BuyerInformation.java new file mode 100644 index 00000000000..2b5d74b3a28 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/BuyerInformation.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The information related to the buyer of an Offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = BuyerInformation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BuyerInformation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "companyName", + "noteToBuyer", + "primaryContact", + "additionalContacts" + }) + public BuyerInformation( + String companyName, + String noteToBuyer, + Contact primaryContact, + java.util.List additionalContacts) { + super(); + this.companyName = companyName; + this.noteToBuyer = noteToBuyer; + this.primaryContact = primaryContact; + this.additionalContacts = additionalContacts; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** the name of the company for the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("companyName") + private String companyName; + + /** + * the name of the company for the buyer + * + * @param companyName the value to set + * @return this builder + */ + public Builder companyName(String companyName) { + this.companyName = companyName; + this.__explicitlySet__.add("companyName"); + return this; + } + /** a note the seller can specify for the buyer through a notification email */ + @com.fasterxml.jackson.annotation.JsonProperty("noteToBuyer") + private String noteToBuyer; + + /** + * a note the seller can specify for the buyer through a notification email + * + * @param noteToBuyer the value to set + * @return this builder + */ + public Builder noteToBuyer(String noteToBuyer) { + this.noteToBuyer = noteToBuyer; + this.__explicitlySet__.add("noteToBuyer"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private Contact primaryContact; + + public Builder primaryContact(Contact primaryContact) { + this.primaryContact = primaryContact; + this.__explicitlySet__.add("primaryContact"); + return this; + } + /** the additional contacts associated with the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private java.util.List additionalContacts; + + /** + * the additional contacts associated with the buyer + * + * @param additionalContacts the value to set + * @return this builder + */ + public Builder additionalContacts(java.util.List additionalContacts) { + this.additionalContacts = additionalContacts; + this.__explicitlySet__.add("additionalContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BuyerInformation build() { + BuyerInformation model = + new BuyerInformation( + this.companyName, + this.noteToBuyer, + this.primaryContact, + this.additionalContacts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BuyerInformation model) { + if (model.wasPropertyExplicitlySet("companyName")) { + this.companyName(model.getCompanyName()); + } + if (model.wasPropertyExplicitlySet("noteToBuyer")) { + this.noteToBuyer(model.getNoteToBuyer()); + } + if (model.wasPropertyExplicitlySet("primaryContact")) { + this.primaryContact(model.getPrimaryContact()); + } + if (model.wasPropertyExplicitlySet("additionalContacts")) { + this.additionalContacts(model.getAdditionalContacts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** the name of the company for the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("companyName") + private final String companyName; + + /** + * the name of the company for the buyer + * + * @return the value + */ + public String getCompanyName() { + return companyName; + } + + /** a note the seller can specify for the buyer through a notification email */ + @com.fasterxml.jackson.annotation.JsonProperty("noteToBuyer") + private final String noteToBuyer; + + /** + * a note the seller can specify for the buyer through a notification email + * + * @return the value + */ + public String getNoteToBuyer() { + return noteToBuyer; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private final Contact primaryContact; + + public Contact getPrimaryContact() { + return primaryContact; + } + + /** the additional contacts associated with the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private final java.util.List additionalContacts; + + /** + * the additional contacts associated with the buyer + * + * @return the value + */ + public java.util.List getAdditionalContacts() { + return additionalContacts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BuyerInformation("); + sb.append("super=").append(super.toString()); + sb.append("companyName=").append(String.valueOf(this.companyName)); + sb.append(", noteToBuyer=").append(String.valueOf(this.noteToBuyer)); + sb.append(", primaryContact=").append(String.valueOf(this.primaryContact)); + sb.append(", additionalContacts=").append(String.valueOf(this.additionalContacts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BuyerInformation)) { + return false; + } + + BuyerInformation other = (BuyerInformation) o; + return java.util.Objects.equals(this.companyName, other.companyName) + && java.util.Objects.equals(this.noteToBuyer, other.noteToBuyer) + && java.util.Objects.equals(this.primaryContact, other.primaryContact) + && java.util.Objects.equals(this.additionalContacts, other.additionalContacts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.companyName == null ? 43 : this.companyName.hashCode()); + result = (result * PRIME) + (this.noteToBuyer == null ? 43 : this.noteToBuyer.hashCode()); + result = + (result * PRIME) + + (this.primaryContact == null ? 43 : this.primaryContact.hashCode()); + result = + (result * PRIME) + + (this.additionalContacts == null + ? 43 + : this.additionalContacts.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Contact.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Contact.java new file mode 100644 index 00000000000..15bc37c0200 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Contact.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The contact information of an individual
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Contact.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Contact extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"firstName", "lastName", "email"}) + public Contact(String firstName, String lastName, String email) { + super(); + this.firstName = firstName; + this.lastName = lastName; + this.email = email; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The first name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private String firstName; + + /** + * The first name of the contact + * + * @param firstName the value to set + * @return this builder + */ + public Builder firstName(String firstName) { + this.firstName = firstName; + this.__explicitlySet__.add("firstName"); + return this; + } + /** The last name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private String lastName; + + /** + * The last name of the contact + * + * @param lastName the value to set + * @return this builder + */ + public Builder lastName(String lastName) { + this.lastName = lastName; + this.__explicitlySet__.add("lastName"); + return this; + } + /** The email of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * The email of the contact + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Contact build() { + Contact model = new Contact(this.firstName, this.lastName, this.email); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Contact model) { + if (model.wasPropertyExplicitlySet("firstName")) { + this.firstName(model.getFirstName()); + } + if (model.wasPropertyExplicitlySet("lastName")) { + this.lastName(model.getLastName()); + } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The first name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private final String firstName; + + /** + * The first name of the contact + * + * @return the value + */ + public String getFirstName() { + return firstName; + } + + /** The last name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private final String lastName; + + /** + * The last name of the contact + * + * @return the value + */ + public String getLastName() { + return lastName; + } + + /** The email of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * The email of the contact + * + * @return the value + */ + public String getEmail() { + return email; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Contact("); + sb.append("super=").append(super.toString()); + sb.append("firstName=").append(String.valueOf(this.firstName)); + sb.append(", lastName=").append(String.valueOf(this.lastName)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Contact)) { + return false; + } + + Contact other = (Contact) o; + return java.util.Objects.equals(this.firstName, other.firstName) + && java.util.Objects.equals(this.lastName, other.lastName) + && java.util.Objects.equals(this.email, other.email) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); + result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateAttachmentDetails.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateAttachmentDetails.java new file mode 100644 index 00000000000..e5bf367d506 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateAttachmentDetails.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * An attachment uploaded by the Publisher to be attached to an Offer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAttachmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAttachmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fileBase64Encoded", "displayName", "type"}) + public CreateAttachmentDetails( + byte[] fileBase64Encoded, String displayName, Attachment.Type type) { + super(); + this.fileBase64Encoded = fileBase64Encoded; + this.displayName = displayName; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB + */ + @com.fasterxml.jackson.annotation.JsonProperty("fileBase64Encoded") + private byte[] fileBase64Encoded; + + /** + * Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB + * + * @param fileBase64Encoded the value to set + * @return this builder + */ + public Builder fileBase64Encoded(byte[] fileBase64Encoded) { + this.fileBase64Encoded = fileBase64Encoded; + this.__explicitlySet__.add("fileBase64Encoded"); + return this; + } + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Attachment.Type type; + + /** + * The type of offer attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Attachment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAttachmentDetails build() { + CreateAttachmentDetails model = + new CreateAttachmentDetails( + this.fileBase64Encoded, this.displayName, this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAttachmentDetails model) { + if (model.wasPropertyExplicitlySet("fileBase64Encoded")) { + this.fileBase64Encoded(model.getFileBase64Encoded()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB */ + @com.fasterxml.jackson.annotation.JsonProperty("fileBase64Encoded") + private final byte[] fileBase64Encoded; + + /** + * Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB + * + * @return the value + */ + public byte[] getFileBase64Encoded() { + return fileBase64Encoded; + } + + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Attachment.Type type; + + /** + * The type of offer attachment. + * + * @return the value + */ + public Attachment.Type getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAttachmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("fileBase64Encoded=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.fileBase64Encoded) + : (String.valueOf(this.fileBase64Encoded) + + (this.fileBase64Encoded != null + ? " (byte[" + this.fileBase64Encoded.length + "])" + : "")))); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAttachmentDetails)) { + return false; + } + + CreateAttachmentDetails other = (CreateAttachmentDetails) o; + return java.util.Arrays.equals(this.fileBase64Encoded, other.fileBase64Encoded) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + java.util.Arrays.hashCode(this.fileBase64Encoded); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateOfferDetails.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateOfferDetails.java new file mode 100644 index 00000000000..79733d86bd3 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateOfferDetails.java @@ -0,0 +1,692 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The information about new Offers.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOfferDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOfferDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "sellerCompartmentId", + "buyerCompartmentId", + "description", + "internalNotes", + "timeStartDate", + "duration", + "timeAcceptBy", + "pricing", + "buyerInformation", + "sellerInformation", + "resourceBundles", + "customFields", + "freeformTags", + "definedTags" + }) + public CreateOfferDetails( + String displayName, + String sellerCompartmentId, + String buyerCompartmentId, + String description, + String internalNotes, + java.util.Date timeStartDate, + String duration, + java.util.Date timeAcceptBy, + Pricing pricing, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + java.util.List resourceBundles, + java.util.List customFields, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.sellerCompartmentId = sellerCompartmentId; + this.buyerCompartmentId = buyerCompartmentId; + this.description = description; + this.internalNotes = internalNotes; + this.timeStartDate = timeStartDate; + this.duration = duration; + this.timeAcceptBy = timeAcceptBy; + this.pricing = pricing; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.resourceBundles = resourceBundles; + this.customFields = customFields; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offers Identifier + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Compartment Identifier of the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * Compartment Identifier of the seller + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** Compartment Identifier of the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * Compartment Identifier of the buyer + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Offer + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private String internalNotes; + + /** + * Internal notes of the Offer + * + * @param internalNotes the value to set + * @return this builder + */ + public Builder internalNotes(String internalNotes) { + this.internalNotes = internalNotes; + this.__explicitlySet__.add("internalNotes"); + return this; + } + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @param resourceBundles the value to set + * @return this builder + */ + public Builder resourceBundles(java.util.List resourceBundles) { + this.resourceBundles = resourceBundles; + this.__explicitlySet__.add("resourceBundles"); + return this; + } + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @param customFields the value to set + * @return this builder + */ + public Builder customFields(java.util.List customFields) { + this.customFields = customFields; + this.__explicitlySet__.add("customFields"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOfferDetails build() { + CreateOfferDetails model = + new CreateOfferDetails( + this.displayName, + this.sellerCompartmentId, + this.buyerCompartmentId, + this.description, + this.internalNotes, + this.timeStartDate, + this.duration, + this.timeAcceptBy, + this.pricing, + this.buyerInformation, + this.sellerInformation, + this.resourceBundles, + this.customFields, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOfferDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("internalNotes")) { + this.internalNotes(model.getInternalNotes()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + if (model.wasPropertyExplicitlySet("customFields")) { + this.customFields(model.getCustomFields()); + } + 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); + } + + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offers Identifier + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Compartment Identifier of the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * Compartment Identifier of the seller + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** Compartment Identifier of the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * Compartment Identifier of the buyer + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Offer + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private final String internalNotes; + + /** + * Internal notes of the Offer + * + * @return the value + */ + public String getInternalNotes() { + return internalNotes; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private final java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @return the value + */ + public java.util.List getCustomFields() { + return customFields; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOfferDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", internalNotes=").append(String.valueOf(this.internalNotes)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + sb.append(", customFields=").append(String.valueOf(this.customFields)); + 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 CreateOfferDetails)) { + return false; + } + + CreateOfferDetails other = (CreateOfferDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.internalNotes, other.internalNotes) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals(this.customFields, other.customFields) + && 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.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.internalNotes == null ? 43 : this.internalNotes.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = (result * PRIME) + (this.customFields == null ? 43 : this.customFields.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CustomField.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CustomField.java new file mode 100644 index 00000000000..71250a6edf3 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CustomField.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * A key value pair specified by the seller of the offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CustomField.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CustomField extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key", "value"}) + public CustomField(String key, String value) { + super(); + this.key = key; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** the key of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * the key of the custom field + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** the value of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * the value of the custom field + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CustomField build() { + CustomField model = new CustomField(this.key, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomField model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** the key of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * the key of the custom field + * + * @return the value + */ + public String getKey() { + return key; + } + + /** the value of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * the value of the custom field + * + * @return the value + */ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CustomField("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CustomField)) { + return false; + } + + CustomField other = (CustomField) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Offer.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Offer.java new file mode 100644 index 00000000000..90d793cbf36 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Offer.java @@ -0,0 +1,1067 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Description of Offer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Offer.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Offer extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "sellerCompartmentId", + "buyerCompartmentId", + "description", + "timeStartDate", + "duration", + "timeCreated", + "timeUpdated", + "timeAcceptBy", + "timeAccepted", + "timeOfferEnd", + "lifecycleState", + "lifecycleDetails", + "offerStatus", + "publisherSummary", + "pricing", + "buyerInformation", + "sellerInformation", + "resourceBundles", + "freeformTags", + "definedTags" + }) + public Offer( + String id, + String displayName, + String sellerCompartmentId, + String buyerCompartmentId, + String description, + java.util.Date timeStartDate, + String duration, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeAcceptBy, + java.util.Date timeAccepted, + java.util.Date timeOfferEnd, + LifecycleState lifecycleState, + String lifecycleDetails, + OfferStatus offerStatus, + PublisherSummary publisherSummary, + Pricing pricing, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + java.util.List resourceBundles, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.displayName = displayName; + this.sellerCompartmentId = sellerCompartmentId; + this.buyerCompartmentId = buyerCompartmentId; + this.description = description; + this.timeStartDate = timeStartDate; + this.duration = duration; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeAcceptBy = timeAcceptBy; + this.timeAccepted = timeAccepted; + this.timeOfferEnd = timeOfferEnd; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.offerStatus = offerStatus; + this.publisherSummary = publisherSummary; + this.pricing = pricing; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.resourceBundles = resourceBundles; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer Identifier, can be renamed + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** The description of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the offer + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @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 time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @param timeOfferEnd the value to set + * @return this builder + */ + public Builder timeOfferEnd(java.util.Date timeOfferEnd) { + this.timeOfferEnd = timeOfferEnd; + this.__explicitlySet__.add("timeOfferEnd"); + return this; + } + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** A substate for lifeCycleStatus to give a more human readable version of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private OfferStatus offerStatus; + + /** + * A substate for lifeCycleStatus to give a more human readable version of the offer + * + * @param offerStatus the value to set + * @return this builder + */ + public Builder offerStatus(OfferStatus offerStatus) { + this.offerStatus = offerStatus; + this.__explicitlySet__.add("offerStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherSummary") + private PublisherSummary publisherSummary; + + public Builder publisherSummary(PublisherSummary publisherSummary) { + this.publisherSummary = publisherSummary; + this.__explicitlySet__.add("publisherSummary"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @param resourceBundles the value to set + * @return this builder + */ + public Builder resourceBundles(java.util.List resourceBundles) { + this.resourceBundles = resourceBundles; + this.__explicitlySet__.add("resourceBundles"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Offer build() { + Offer model = + new Offer( + this.id, + this.displayName, + this.sellerCompartmentId, + this.buyerCompartmentId, + this.description, + this.timeStartDate, + this.duration, + this.timeCreated, + this.timeUpdated, + this.timeAcceptBy, + this.timeAccepted, + this.timeOfferEnd, + this.lifecycleState, + this.lifecycleDetails, + this.offerStatus, + this.publisherSummary, + this.pricing, + this.buyerInformation, + this.sellerInformation, + this.resourceBundles, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Offer model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeOfferEnd")) { + this.timeOfferEnd(model.getTimeOfferEnd()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("offerStatus")) { + this.offerStatus(model.getOfferStatus()); + } + if (model.wasPropertyExplicitlySet("publisherSummary")) { + this.publisherSummary(model.getPublisherSummary()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + 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); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer Identifier, can be renamed + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** The description of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the offer + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** The time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private final java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeOfferEnd() { + return timeOfferEnd; + } + + /** The current state of the Offer. */ + 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 Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** A substate for lifeCycleStatus to give a more human readable version of the offer */ + public enum OfferStatus implements com.oracle.bmc.http.internal.BmcEnum { + Draft("DRAFT"), + PendingMarketplace("PENDING_MARKETPLACE"), + PendingBuyer("PENDING_BUYER"), + Expired("EXPIRED"), + Accepted("ACCEPTED"), + Active("ACTIVE"), + Ended("ENDED"), + FailedSend("FAILED_SEND"), + FailedAccept("FAILED_ACCEPT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OfferStatus v : OfferStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OfferStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OfferStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OfferStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** A substate for lifeCycleStatus to give a more human readable version of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private final OfferStatus offerStatus; + + /** + * A substate for lifeCycleStatus to give a more human readable version of the offer + * + * @return the value + */ + public OfferStatus getOfferStatus() { + return offerStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherSummary") + private final PublisherSummary publisherSummary; + + public PublisherSummary getPublisherSummary() { + return publisherSummary; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Offer("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeOfferEnd=").append(String.valueOf(this.timeOfferEnd)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", offerStatus=").append(String.valueOf(this.offerStatus)); + sb.append(", publisherSummary=").append(String.valueOf(this.publisherSummary)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + 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 Offer)) { + return false; + } + + Offer other = (Offer) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeOfferEnd, other.timeOfferEnd) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.offerStatus, other.offerStatus) + && java.util.Objects.equals(this.publisherSummary, other.publisherSummary) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.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.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeOfferEnd == null ? 43 : this.timeOfferEnd.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.offerStatus == null ? 43 : this.offerStatus.hashCode()); + result = + (result * PRIME) + + (this.publisherSummary == null ? 43 : this.publisherSummary.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferCollection.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferCollection.java new file mode 100644 index 00000000000..313b03fb969 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Results of a offers search. Contains boh OfferSummary 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: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OfferCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OfferCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of offers. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of offers. + * + * @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 OfferCollection build() { + OfferCollection model = new OfferCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferCollection 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 offers. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of offers. + * + * @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("OfferCollection("); + 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 OfferCollection)) { + return false; + } + + OfferCollection other = (OfferCollection) 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferInternalDetail.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferInternalDetail.java new file mode 100644 index 00000000000..192f6fa3d0f --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferInternalDetail.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * the internal details of an offer that are only visible to the seller
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OfferInternalDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferInternalDetail + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"customFields", "internalNotes"}) + public OfferInternalDetail(java.util.List customFields, String internalNotes) { + super(); + this.customFields = customFields; + this.internalNotes = internalNotes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @param customFields the value to set + * @return this builder + */ + public Builder customFields(java.util.List customFields) { + this.customFields = customFields; + this.__explicitlySet__.add("customFields"); + return this; + } + /** Internal notes only intended for the Publisher of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private String internalNotes; + + /** + * Internal notes only intended for the Publisher of the Offer + * + * @param internalNotes the value to set + * @return this builder + */ + public Builder internalNotes(String internalNotes) { + this.internalNotes = internalNotes; + this.__explicitlySet__.add("internalNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OfferInternalDetail build() { + OfferInternalDetail model = + new OfferInternalDetail(this.customFields, this.internalNotes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferInternalDetail model) { + if (model.wasPropertyExplicitlySet("customFields")) { + this.customFields(model.getCustomFields()); + } + if (model.wasPropertyExplicitlySet("internalNotes")) { + this.internalNotes(model.getInternalNotes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private final java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @return the value + */ + public java.util.List getCustomFields() { + return customFields; + } + + /** Internal notes only intended for the Publisher of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private final String internalNotes; + + /** + * Internal notes only intended for the Publisher of the Offer + * + * @return the value + */ + public String getInternalNotes() { + return internalNotes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OfferInternalDetail("); + sb.append("super=").append(super.toString()); + sb.append("customFields=").append(String.valueOf(this.customFields)); + sb.append(", internalNotes=").append(String.valueOf(this.internalNotes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OfferInternalDetail)) { + return false; + } + + OfferInternalDetail other = (OfferInternalDetail) o; + return java.util.Objects.equals(this.customFields, other.customFields) + && java.util.Objects.equals(this.internalNotes, other.internalNotes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.customFields == null ? 43 : this.customFields.hashCode()); + result = + (result * PRIME) + + (this.internalNotes == null ? 43 : this.internalNotes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferSummary.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferSummary.java new file mode 100644 index 00000000000..59082017ead --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferSummary.java @@ -0,0 +1,816 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Summary of the Offers.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OfferSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "buyerCompartmentId", + "sellerCompartmentId", + "timeCreated", + "timeUpdated", + "timeAcceptBy", + "timeAccepted", + "timeStartDate", + "timeOfferEnd", + "lifecycleState", + "lifecycleDetails", + "offerStatus", + "buyerInformation", + "sellerInformation", + "pricing", + "freeformTags", + "definedTags" + }) + public OfferSummary( + String id, + String displayName, + String buyerCompartmentId, + String sellerCompartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeAcceptBy, + java.util.Date timeAccepted, + java.util.Date timeStartDate, + java.util.Date timeOfferEnd, + Offer.LifecycleState lifecycleState, + String lifecycleDetails, + Offer.OfferStatus offerStatus, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + Pricing pricing, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.displayName = displayName; + this.buyerCompartmentId = buyerCompartmentId; + this.sellerCompartmentId = sellerCompartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeAcceptBy = timeAcceptBy; + this.timeAccepted = timeAccepted; + this.timeStartDate = timeStartDate; + this.timeOfferEnd = timeOfferEnd; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.offerStatus = offerStatus; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.pricing = pricing; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer Identifier, can be renamed + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Ocid of the buyer tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * Ocid of the buyer tenancy. + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** Ocid of the seller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * Ocid of the seller tenancy. + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @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 time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** The time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @param timeOfferEnd the value to set + * @return this builder + */ + public Builder timeOfferEnd(java.util.Date timeOfferEnd) { + this.timeOfferEnd = timeOfferEnd; + this.__explicitlySet__.add("timeOfferEnd"); + return this; + } + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Offer.LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Offer.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The human readable representation of where the offer is at in it's contract lifecycle. + */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private Offer.OfferStatus offerStatus; + + /** + * The human readable representation of where the offer is at in it's contract lifecycle. + * + * @param offerStatus the value to set + * @return this builder + */ + public Builder offerStatus(Offer.OfferStatus offerStatus) { + this.offerStatus = offerStatus; + this.__explicitlySet__.add("offerStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OfferSummary build() { + OfferSummary model = + new OfferSummary( + this.id, + this.displayName, + this.buyerCompartmentId, + this.sellerCompartmentId, + this.timeCreated, + this.timeUpdated, + this.timeAcceptBy, + this.timeAccepted, + this.timeStartDate, + this.timeOfferEnd, + this.lifecycleState, + this.lifecycleDetails, + this.offerStatus, + this.buyerInformation, + this.sellerInformation, + this.pricing, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("timeOfferEnd")) { + this.timeOfferEnd(model.getTimeOfferEnd()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("offerStatus")) { + this.offerStatus(model.getOfferStatus()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + 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); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer Identifier, can be renamed + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Ocid of the buyer tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * Ocid of the buyer tenancy. + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** Ocid of the seller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * Ocid of the seller tenancy. + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** The time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private final java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeOfferEnd() { + return timeOfferEnd; + } + + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Offer.LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @return the value + */ + public Offer.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The human readable representation of where the offer is at in it's contract lifecycle. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private final Offer.OfferStatus offerStatus; + + /** + * The human readable representation of where the offer is at in it's contract lifecycle. + * + * @return the value + */ + public Offer.OfferStatus getOfferStatus() { + return offerStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OfferSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", timeOfferEnd=").append(String.valueOf(this.timeOfferEnd)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", offerStatus=").append(String.valueOf(this.offerStatus)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + 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 OfferSummary)) { + return false; + } + + OfferSummary other = (OfferSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.timeOfferEnd, other.timeOfferEnd) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.offerStatus, other.offerStatus) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.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.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.timeOfferEnd == null ? 43 : this.timeOfferEnd.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.offerStatus == null ? 43 : this.offerStatus.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/PackageType.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/PackageType.java new file mode 100644 index 00000000000..962d83d8b74 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/PackageType.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** Possible values for a package type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public enum PackageType implements com.oracle.bmc.http.internal.BmcEnum { + ContainerImage("CONTAINER_IMAGE"), + HelmChart("HELM_CHART"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PackageType v : PackageType.values()) { + map.put(v.getValue(), v); + } + } + + PackageType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PackageType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PackageType: " + key); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Pricing.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Pricing.java new file mode 100644 index 00000000000..2e35166109c --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Pricing.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * the pricing information for the offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Pricing.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Pricing extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"currencyType", "totalAmount", "billingCycle"}) + public Pricing(String currencyType, Long totalAmount, BillingCycle billingCycle) { + super(); + this.currencyType = currencyType; + this.totalAmount = totalAmount; + this.billingCycle = billingCycle; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The currency supported for a given Offer, in the format specified by ISO-4217 */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyType") + private String currencyType; + + /** + * The currency supported for a given Offer, in the format specified by ISO-4217 + * + * @param currencyType the value to set + * @return this builder + */ + public Builder currencyType(String currencyType) { + this.currencyType = currencyType; + this.__explicitlySet__.add("currencyType"); + return this; + } + /** The total amount an Offer costs */ + @com.fasterxml.jackson.annotation.JsonProperty("totalAmount") + private Long totalAmount; + + /** + * The total amount an Offer costs + * + * @param totalAmount the value to set + * @return this builder + */ + public Builder totalAmount(Long totalAmount) { + this.totalAmount = totalAmount; + this.__explicitlySet__.add("totalAmount"); + return this; + } + /** The frequency at which the customer is billed for the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("billingCycle") + private BillingCycle billingCycle; + + /** + * The frequency at which the customer is billed for the Offer + * + * @param billingCycle the value to set + * @return this builder + */ + public Builder billingCycle(BillingCycle billingCycle) { + this.billingCycle = billingCycle; + this.__explicitlySet__.add("billingCycle"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Pricing build() { + Pricing model = new Pricing(this.currencyType, this.totalAmount, this.billingCycle); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Pricing model) { + if (model.wasPropertyExplicitlySet("currencyType")) { + this.currencyType(model.getCurrencyType()); + } + if (model.wasPropertyExplicitlySet("totalAmount")) { + this.totalAmount(model.getTotalAmount()); + } + if (model.wasPropertyExplicitlySet("billingCycle")) { + this.billingCycle(model.getBillingCycle()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The currency supported for a given Offer, in the format specified by ISO-4217 */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyType") + private final String currencyType; + + /** + * The currency supported for a given Offer, in the format specified by ISO-4217 + * + * @return the value + */ + public String getCurrencyType() { + return currencyType; + } + + /** The total amount an Offer costs */ + @com.fasterxml.jackson.annotation.JsonProperty("totalAmount") + private final Long totalAmount; + + /** + * The total amount an Offer costs + * + * @return the value + */ + public Long getTotalAmount() { + return totalAmount; + } + + /** The frequency at which the customer is billed for the Offer */ + public enum BillingCycle implements com.oracle.bmc.http.internal.BmcEnum { + OneTime("ONE_TIME"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BillingCycle.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BillingCycle v : BillingCycle.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BillingCycle(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BillingCycle create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BillingCycle', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The frequency at which the customer is billed for the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("billingCycle") + private final BillingCycle billingCycle; + + /** + * The frequency at which the customer is billed for the Offer + * + * @return the value + */ + public BillingCycle getBillingCycle() { + return billingCycle; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Pricing("); + sb.append("super=").append(super.toString()); + sb.append("currencyType=").append(String.valueOf(this.currencyType)); + sb.append(", totalAmount=").append(String.valueOf(this.totalAmount)); + sb.append(", billingCycle=").append(String.valueOf(this.billingCycle)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Pricing)) { + return false; + } + + Pricing other = (Pricing) o; + return java.util.Objects.equals(this.currencyType, other.currencyType) + && java.util.Objects.equals(this.totalAmount, other.totalAmount) + && java.util.Objects.equals(this.billingCycle, other.billingCycle) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.currencyType == null ? 43 : this.currencyType.hashCode()); + result = (result * PRIME) + (this.totalAmount == null ? 43 : this.totalAmount.hashCode()); + result = (result * PRIME) + (this.billingCycle == null ? 43 : this.billingCycle.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/PublisherSummary.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/PublisherSummary.java new file mode 100644 index 00000000000..1fe8e700141 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/PublisherSummary.java @@ -0,0 +1,963 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The model for a publisher.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PublisherSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PublisherSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "registryNamespace", + "legacyId", + "displayName", + "description", + "yearFounded", + "websiteUrl", + "contactEmail", + "contactPhone", + "hqAddress", + "logo", + "facebookUrl", + "twitterUrl", + "linkedinUrl", + "publisherType", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public PublisherSummary( + String id, + String compartmentId, + String registryNamespace, + String legacyId, + String displayName, + String description, + Long yearFounded, + String websiteUrl, + String contactEmail, + String contactPhone, + String hqAddress, + UploadData logo, + String facebookUrl, + String twitterUrl, + String linkedinUrl, + PublisherType publisherType, + 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.compartmentId = compartmentId; + this.registryNamespace = registryNamespace; + this.legacyId = legacyId; + this.displayName = displayName; + this.description = description; + this.yearFounded = yearFounded; + this.websiteUrl = websiteUrl; + this.contactEmail = contactEmail; + this.contactPhone = contactPhone; + this.hqAddress = hqAddress; + this.logo = logo; + this.facebookUrl = facebookUrl; + this.twitterUrl = twitterUrl; + this.linkedinUrl = linkedinUrl; + this.publisherType = publisherType; + 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 { + /** Unique OCID identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique OCID identifier for the publisher. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The root compartment of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The root compartment of the Publisher. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The namespace for the publisher registry to persist artifacts. */ + @com.fasterxml.jackson.annotation.JsonProperty("registryNamespace") + private String registryNamespace; + + /** + * The namespace for the publisher registry to persist artifacts. + * + * @param registryNamespace the value to set + * @return this builder + */ + public Builder registryNamespace(String registryNamespace) { + this.registryNamespace = registryNamespace; + this.__explicitlySet__.add("registryNamespace"); + return this; + } + /** Unique legacy service identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private String legacyId; + + /** + * Unique legacy service identifier for the publisher. + * + * @param legacyId the value to set + * @return this builder + */ + public Builder legacyId(String legacyId) { + this.legacyId = legacyId; + this.__explicitlySet__.add("legacyId"); + return this; + } + /** The name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name of the publisher. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** A description of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A description of the publisher. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @param yearFounded the value to set + * @return this builder + */ + public Builder yearFounded(Long yearFounded) { + this.yearFounded = yearFounded; + this.__explicitlySet__.add("yearFounded"); + return this; + } + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("websiteUrl") + private String websiteUrl; + + /** + * The publisher's website. + * + * @param websiteUrl the value to set + * @return this builder + */ + public Builder websiteUrl(String websiteUrl) { + this.websiteUrl = websiteUrl; + this.__explicitlySet__.add("websiteUrl"); + return this; + } + /** The public email address of the publisher for customers. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private String contactEmail; + + /** + * The public email address of the publisher for customers. + * + * @param contactEmail the value to set + * @return this builder + */ + public Builder contactEmail(String contactEmail) { + this.contactEmail = contactEmail; + this.__explicitlySet__.add("contactEmail"); + return this; + } + /** The phone number of the publisher in E.164 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") + private String contactPhone; + + /** + * The phone number of the publisher in E.164 format. + * + * @param contactPhone the value to set + * @return this builder + */ + public Builder contactPhone(String contactPhone) { + this.contactPhone = contactPhone; + this.__explicitlySet__.add("contactPhone"); + return this; + } + /** The address of the publisher's headquarters. */ + @com.fasterxml.jackson.annotation.JsonProperty("hqAddress") + private String hqAddress; + + /** + * The address of the publisher's headquarters. + * + * @param hqAddress the value to set + * @return this builder + */ + public Builder hqAddress(String hqAddress) { + this.hqAddress = hqAddress; + this.__explicitlySet__.add("hqAddress"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logo") + private UploadData logo; + + public Builder logo(UploadData logo) { + this.logo = logo; + this.__explicitlySet__.add("logo"); + return this; + } + /** Publisher's Facebook URL */ + @com.fasterxml.jackson.annotation.JsonProperty("facebookUrl") + private String facebookUrl; + + /** + * Publisher's Facebook URL + * + * @param facebookUrl the value to set + * @return this builder + */ + public Builder facebookUrl(String facebookUrl) { + this.facebookUrl = facebookUrl; + this.__explicitlySet__.add("facebookUrl"); + return this; + } + /** Publisher's Twitter URL */ + @com.fasterxml.jackson.annotation.JsonProperty("twitterUrl") + private String twitterUrl; + + /** + * Publisher's Twitter URL + * + * @param twitterUrl the value to set + * @return this builder + */ + public Builder twitterUrl(String twitterUrl) { + this.twitterUrl = twitterUrl; + this.__explicitlySet__.add("twitterUrl"); + return this; + } + /** Publisher's LinkedIn URL */ + @com.fasterxml.jackson.annotation.JsonProperty("linkedinUrl") + private String linkedinUrl; + + /** + * Publisher's LinkedIn URL + * + * @param linkedinUrl the value to set + * @return this builder + */ + public Builder linkedinUrl(String linkedinUrl) { + this.linkedinUrl = linkedinUrl; + this.__explicitlySet__.add("linkedinUrl"); + return this; + } + /** publisher type. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherType") + private PublisherType publisherType; + + /** + * publisher type. + * + * @param publisherType the value to set + * @return this builder + */ + public Builder publisherType(PublisherType publisherType) { + this.publisherType = publisherType; + this.__explicitlySet__.add("publisherType"); + return this; + } + /** The time the publisher was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the publisher was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time the publisher was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the publisher was updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * 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 PublisherSummary build() { + PublisherSummary model = + new PublisherSummary( + this.id, + this.compartmentId, + this.registryNamespace, + this.legacyId, + this.displayName, + this.description, + this.yearFounded, + this.websiteUrl, + this.contactEmail, + this.contactPhone, + this.hqAddress, + this.logo, + this.facebookUrl, + this.twitterUrl, + this.linkedinUrl, + this.publisherType, + 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(PublisherSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("registryNamespace")) { + this.registryNamespace(model.getRegistryNamespace()); + } + if (model.wasPropertyExplicitlySet("legacyId")) { + this.legacyId(model.getLegacyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("yearFounded")) { + this.yearFounded(model.getYearFounded()); + } + if (model.wasPropertyExplicitlySet("websiteUrl")) { + this.websiteUrl(model.getWebsiteUrl()); + } + if (model.wasPropertyExplicitlySet("contactEmail")) { + this.contactEmail(model.getContactEmail()); + } + if (model.wasPropertyExplicitlySet("contactPhone")) { + this.contactPhone(model.getContactPhone()); + } + if (model.wasPropertyExplicitlySet("hqAddress")) { + this.hqAddress(model.getHqAddress()); + } + if (model.wasPropertyExplicitlySet("logo")) { + this.logo(model.getLogo()); + } + if (model.wasPropertyExplicitlySet("facebookUrl")) { + this.facebookUrl(model.getFacebookUrl()); + } + if (model.wasPropertyExplicitlySet("twitterUrl")) { + this.twitterUrl(model.getTwitterUrl()); + } + if (model.wasPropertyExplicitlySet("linkedinUrl")) { + this.linkedinUrl(model.getLinkedinUrl()); + } + if (model.wasPropertyExplicitlySet("publisherType")) { + this.publisherType(model.getPublisherType()); + } + 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); + } + + /** Unique OCID identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique OCID identifier for the publisher. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The root compartment of the Publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The root compartment of the Publisher. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The namespace for the publisher registry to persist artifacts. */ + @com.fasterxml.jackson.annotation.JsonProperty("registryNamespace") + private final String registryNamespace; + + /** + * The namespace for the publisher registry to persist artifacts. + * + * @return the value + */ + public String getRegistryNamespace() { + return registryNamespace; + } + + /** Unique legacy service identifier for the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("legacyId") + private final String legacyId; + + /** + * Unique legacy service identifier for the publisher. + * + * @return the value + */ + public String getLegacyId() { + return legacyId; + } + + /** The name of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name of the publisher. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** A description of the publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A description of the publisher. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The year the publisher's company or organization was founded. */ + @com.fasterxml.jackson.annotation.JsonProperty("yearFounded") + private final Long yearFounded; + + /** + * The year the publisher's company or organization was founded. + * + * @return the value + */ + public Long getYearFounded() { + return yearFounded; + } + + /** The publisher's website. */ + @com.fasterxml.jackson.annotation.JsonProperty("websiteUrl") + private final String websiteUrl; + + /** + * The publisher's website. + * + * @return the value + */ + public String getWebsiteUrl() { + return websiteUrl; + } + + /** The public email address of the publisher for customers. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactEmail") + private final String contactEmail; + + /** + * The public email address of the publisher for customers. + * + * @return the value + */ + public String getContactEmail() { + return contactEmail; + } + + /** The phone number of the publisher in E.164 format. */ + @com.fasterxml.jackson.annotation.JsonProperty("contactPhone") + private final String contactPhone; + + /** + * The phone number of the publisher in E.164 format. + * + * @return the value + */ + public String getContactPhone() { + return contactPhone; + } + + /** The address of the publisher's headquarters. */ + @com.fasterxml.jackson.annotation.JsonProperty("hqAddress") + private final String hqAddress; + + /** + * The address of the publisher's headquarters. + * + * @return the value + */ + public String getHqAddress() { + return hqAddress; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logo") + private final UploadData logo; + + public UploadData getLogo() { + return logo; + } + + /** Publisher's Facebook URL */ + @com.fasterxml.jackson.annotation.JsonProperty("facebookUrl") + private final String facebookUrl; + + /** + * Publisher's Facebook URL + * + * @return the value + */ + public String getFacebookUrl() { + return facebookUrl; + } + + /** Publisher's Twitter URL */ + @com.fasterxml.jackson.annotation.JsonProperty("twitterUrl") + private final String twitterUrl; + + /** + * Publisher's Twitter URL + * + * @return the value + */ + public String getTwitterUrl() { + return twitterUrl; + } + + /** Publisher's LinkedIn URL */ + @com.fasterxml.jackson.annotation.JsonProperty("linkedinUrl") + private final String linkedinUrl; + + /** + * Publisher's LinkedIn URL + * + * @return the value + */ + public String getLinkedinUrl() { + return linkedinUrl; + } + + /** publisher type. */ + public enum PublisherType implements com.oracle.bmc.http.internal.BmcEnum { + Internal("INTERNAL"), + External("EXTERNAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PublisherType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PublisherType v : PublisherType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PublisherType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PublisherType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PublisherType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** publisher type. */ + @com.fasterxml.jackson.annotation.JsonProperty("publisherType") + private final PublisherType publisherType; + + /** + * publisher type. + * + * @return the value + */ + public PublisherType getPublisherType() { + return publisherType; + } + + /** The time the publisher was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the publisher was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the publisher was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the publisher was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * 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("PublisherSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", registryNamespace=").append(String.valueOf(this.registryNamespace)); + sb.append(", legacyId=").append(String.valueOf(this.legacyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", yearFounded=").append(String.valueOf(this.yearFounded)); + sb.append(", websiteUrl=").append(String.valueOf(this.websiteUrl)); + sb.append(", contactEmail=").append(String.valueOf(this.contactEmail)); + sb.append(", contactPhone=").append(String.valueOf(this.contactPhone)); + sb.append(", hqAddress=").append(String.valueOf(this.hqAddress)); + sb.append(", logo=").append(String.valueOf(this.logo)); + sb.append(", facebookUrl=").append(String.valueOf(this.facebookUrl)); + sb.append(", twitterUrl=").append(String.valueOf(this.twitterUrl)); + sb.append(", linkedinUrl=").append(String.valueOf(this.linkedinUrl)); + sb.append(", publisherType=").append(String.valueOf(this.publisherType)); + 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 PublisherSummary)) { + return false; + } + + PublisherSummary other = (PublisherSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.registryNamespace, other.registryNamespace) + && java.util.Objects.equals(this.legacyId, other.legacyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.yearFounded, other.yearFounded) + && java.util.Objects.equals(this.websiteUrl, other.websiteUrl) + && java.util.Objects.equals(this.contactEmail, other.contactEmail) + && java.util.Objects.equals(this.contactPhone, other.contactPhone) + && java.util.Objects.equals(this.hqAddress, other.hqAddress) + && java.util.Objects.equals(this.logo, other.logo) + && java.util.Objects.equals(this.facebookUrl, other.facebookUrl) + && java.util.Objects.equals(this.twitterUrl, other.twitterUrl) + && java.util.Objects.equals(this.linkedinUrl, other.linkedinUrl) + && java.util.Objects.equals(this.publisherType, other.publisherType) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.registryNamespace == null ? 43 : this.registryNamespace.hashCode()); + result = (result * PRIME) + (this.legacyId == null ? 43 : this.legacyId.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.yearFounded == null ? 43 : this.yearFounded.hashCode()); + result = (result * PRIME) + (this.websiteUrl == null ? 43 : this.websiteUrl.hashCode()); + result = (result * PRIME) + (this.contactEmail == null ? 43 : this.contactEmail.hashCode()); + result = (result * PRIME) + (this.contactPhone == null ? 43 : this.contactPhone.hashCode()); + result = (result * PRIME) + (this.hqAddress == null ? 43 : this.hqAddress.hashCode()); + result = (result * PRIME) + (this.logo == null ? 43 : this.logo.hashCode()); + result = (result * PRIME) + (this.facebookUrl == null ? 43 : this.facebookUrl.hashCode()); + result = (result * PRIME) + (this.twitterUrl == null ? 43 : this.twitterUrl.hashCode()); + result = (result * PRIME) + (this.linkedinUrl == null ? 43 : this.linkedinUrl.hashCode()); + result = + (result * PRIME) + + (this.publisherType == null ? 43 : this.publisherType.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/ResourceBundle.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/ResourceBundle.java new file mode 100644 index 00000000000..25781e33dc9 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/ResourceBundle.java @@ -0,0 +1,338 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Resource Bundle associated with an Offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceBundle.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceBundle + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "quantity", "unitOfMeasurement", "resourceIds"}) + public ResourceBundle( + Type type, + Long quantity, + UnitOfMeasurement unitOfMeasurement, + java.util.List resourceIds) { + super(); + this.type = type; + this.quantity = quantity; + this.unitOfMeasurement = unitOfMeasurement; + this.resourceIds = resourceIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The type of resources in the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of resources in the bundle + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The quantity of a resources associated with the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("quantity") + private Long quantity; + + /** + * The quantity of a resources associated with the bundle + * + * @param quantity the value to set + * @return this builder + */ + public Builder quantity(Long quantity) { + this.quantity = quantity; + this.__explicitlySet__.add("quantity"); + return this; + } + /** The unit of measurement for the resource bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("unitOfMeasurement") + private UnitOfMeasurement unitOfMeasurement; + + /** + * The unit of measurement for the resource bundle + * + * @param unitOfMeasurement the value to set + * @return this builder + */ + public Builder unitOfMeasurement(UnitOfMeasurement unitOfMeasurement) { + this.unitOfMeasurement = unitOfMeasurement; + this.__explicitlySet__.add("unitOfMeasurement"); + return this; + } + /** the ids of the resources in the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * the ids of the resources in the Offer + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceBundle build() { + ResourceBundle model = + new ResourceBundle( + this.type, this.quantity, this.unitOfMeasurement, this.resourceIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceBundle model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("quantity")) { + this.quantity(model.getQuantity()); + } + if (model.wasPropertyExplicitlySet("unitOfMeasurement")) { + this.unitOfMeasurement(model.getUnitOfMeasurement()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The type of resources in the bundle */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Listing("LISTING"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** The type of resources in the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of resources in the bundle + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The quantity of a resources associated with the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("quantity") + private final Long quantity; + + /** + * The quantity of a resources associated with the bundle + * + * @return the value + */ + public Long getQuantity() { + return quantity; + } + + /** The unit of measurement for the resource bundle */ + public enum UnitOfMeasurement implements com.oracle.bmc.http.internal.BmcEnum { + OcpuPerHour("OCPU_PER_HOUR"), + InstancePerHour("INSTANCE_PER_HOUR"), + Credits("CREDITS"), + Instances("INSTANCES"), + Nodes("NODES"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UnitOfMeasurement.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UnitOfMeasurement v : UnitOfMeasurement.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UnitOfMeasurement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UnitOfMeasurement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UnitOfMeasurement', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The unit of measurement for the resource bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("unitOfMeasurement") + private final UnitOfMeasurement unitOfMeasurement; + + /** + * The unit of measurement for the resource bundle + * + * @return the value + */ + public UnitOfMeasurement getUnitOfMeasurement() { + return unitOfMeasurement; + } + + /** the ids of the resources in the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * the ids of the resources in the Offer + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceBundle("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", quantity=").append(String.valueOf(this.quantity)); + sb.append(", unitOfMeasurement=").append(String.valueOf(this.unitOfMeasurement)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceBundle)) { + return false; + } + + ResourceBundle other = (ResourceBundle) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.quantity, other.quantity) + && java.util.Objects.equals(this.unitOfMeasurement, other.unitOfMeasurement) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && 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.quantity == null ? 43 : this.quantity.hashCode()); + result = + (result * PRIME) + + (this.unitOfMeasurement == null ? 43 : this.unitOfMeasurement.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/SellerInformation.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/SellerInformation.java new file mode 100644 index 00000000000..d231047e023 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/SellerInformation.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The information related to the seller of an Offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SellerInformation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SellerInformation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"primaryContact", "additionalContacts"}) + public SellerInformation(Contact primaryContact, java.util.List additionalContacts) { + super(); + this.primaryContact = primaryContact; + this.additionalContacts = additionalContacts; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private Contact primaryContact; + + public Builder primaryContact(Contact primaryContact) { + this.primaryContact = primaryContact; + this.__explicitlySet__.add("primaryContact"); + return this; + } + /** the additional contacts associated with the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private java.util.List additionalContacts; + + /** + * the additional contacts associated with the seller + * + * @param additionalContacts the value to set + * @return this builder + */ + public Builder additionalContacts(java.util.List additionalContacts) { + this.additionalContacts = additionalContacts; + this.__explicitlySet__.add("additionalContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SellerInformation build() { + SellerInformation model = + new SellerInformation(this.primaryContact, this.additionalContacts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SellerInformation model) { + if (model.wasPropertyExplicitlySet("primaryContact")) { + this.primaryContact(model.getPrimaryContact()); + } + if (model.wasPropertyExplicitlySet("additionalContacts")) { + this.additionalContacts(model.getAdditionalContacts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private final Contact primaryContact; + + public Contact getPrimaryContact() { + return primaryContact; + } + + /** the additional contacts associated with the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private final java.util.List additionalContacts; + + /** + * the additional contacts associated with the seller + * + * @return the value + */ + public java.util.List getAdditionalContacts() { + return additionalContacts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SellerInformation("); + sb.append("super=").append(super.toString()); + sb.append("primaryContact=").append(String.valueOf(this.primaryContact)); + sb.append(", additionalContacts=").append(String.valueOf(this.additionalContacts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SellerInformation)) { + return false; + } + + SellerInformation other = (SellerInformation) o; + return java.util.Objects.equals(this.primaryContact, other.primaryContact) + && java.util.Objects.equals(this.additionalContacts, other.additionalContacts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.primaryContact == null ? 43 : this.primaryContact.hashCode()); + result = + (result * PRIME) + + (this.additionalContacts == null + ? 43 + : this.additionalContacts.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/SortOrder.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/SortOrder.java new file mode 100644 index 00000000000..cb41b36a4ab --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/SortOrder.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** Sort orders. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UpdateOfferDetails.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UpdateOfferDetails.java new file mode 100644 index 00000000000..90ba3046600 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UpdateOfferDetails.java @@ -0,0 +1,650 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOfferDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOfferDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "buyerCompartmentId", + "description", + "internalNotes", + "timeStartDate", + "duration", + "timeAcceptBy", + "pricing", + "buyerInformation", + "sellerInformation", + "resourceBundles", + "customFields", + "freeformTags", + "definedTags" + }) + public UpdateOfferDetails( + String displayName, + String buyerCompartmentId, + String description, + String internalNotes, + java.util.Date timeStartDate, + String duration, + java.util.Date timeAcceptBy, + Pricing pricing, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + java.util.List resourceBundles, + java.util.List customFields, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.buyerCompartmentId = buyerCompartmentId; + this.description = description; + this.internalNotes = internalNotes; + this.timeStartDate = timeStartDate; + this.duration = duration; + this.timeAcceptBy = timeAcceptBy; + this.pricing = pricing; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.resourceBundles = resourceBundles; + this.customFields = customFields; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offers Identifier + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Offer + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private String internalNotes; + + /** + * Internal notes of the Offer + * + * @param internalNotes the value to set + * @return this builder + */ + public Builder internalNotes(String internalNotes) { + this.internalNotes = internalNotes; + this.__explicitlySet__.add("internalNotes"); + return this; + } + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @param resourceBundles the value to set + * @return this builder + */ + public Builder resourceBundles(java.util.List resourceBundles) { + this.resourceBundles = resourceBundles; + this.__explicitlySet__.add("resourceBundles"); + return this; + } + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @param customFields the value to set + * @return this builder + */ + public Builder customFields(java.util.List customFields) { + this.customFields = customFields; + this.__explicitlySet__.add("customFields"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOfferDetails build() { + UpdateOfferDetails model = + new UpdateOfferDetails( + this.displayName, + this.buyerCompartmentId, + this.description, + this.internalNotes, + this.timeStartDate, + this.duration, + this.timeAcceptBy, + this.pricing, + this.buyerInformation, + this.sellerInformation, + this.resourceBundles, + this.customFields, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOfferDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("internalNotes")) { + this.internalNotes(model.getInternalNotes()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + if (model.wasPropertyExplicitlySet("customFields")) { + this.customFields(model.getCustomFields()); + } + 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); + } + + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offers Identifier + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Offer + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private final String internalNotes; + + /** + * Internal notes of the Offer + * + * @return the value + */ + public String getInternalNotes() { + return internalNotes; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private final java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @return the value + */ + public java.util.List getCustomFields() { + return customFields; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOfferDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", internalNotes=").append(String.valueOf(this.internalNotes)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + sb.append(", customFields=").append(String.valueOf(this.customFields)); + 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 UpdateOfferDetails)) { + return false; + } + + UpdateOfferDetails other = (UpdateOfferDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.internalNotes, other.internalNotes) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals(this.customFields, other.customFields) + && 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.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.internalNotes == null ? 43 : this.internalNotes.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = (result * PRIME) + (this.customFields == null ? 43 : this.customFields.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UploadData.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UploadData.java new file mode 100644 index 00000000000..a4e877b70da --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UploadData.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The model for upload data for images and icons.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UploadData.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UploadData extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "contentUrl", "mimeType"}) + public UploadData(String name, String contentUrl, String mimeType) { + super(); + this.name = name; + this.contentUrl = contentUrl; + this.mimeType = mimeType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name used to refer to the upload data. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name used to refer to the upload data. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The content URL of the upload data. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private String contentUrl; + + /** + * The content URL of the upload data. + * + * @param contentUrl the value to set + * @return this builder + */ + public Builder contentUrl(String contentUrl) { + this.contentUrl = contentUrl; + this.__explicitlySet__.add("contentUrl"); + return this; + } + /** The MIME type of the upload data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the upload data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UploadData build() { + UploadData model = new UploadData(this.name, this.contentUrl, this.mimeType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UploadData model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("contentUrl")) { + this.contentUrl(model.getContentUrl()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name used to refer to the upload data. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name used to refer to the upload data. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The content URL of the upload data. */ + @com.fasterxml.jackson.annotation.JsonProperty("contentUrl") + private final String contentUrl; + + /** + * The content URL of the upload data. + * + * @return the value + */ + public String getContentUrl() { + return contentUrl; + } + + /** The MIME type of the upload data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the upload data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UploadData("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", contentUrl=").append(String.valueOf(this.contentUrl)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UploadData)) { + return false; + } + + UploadData other = (UploadData) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.contentUrl, other.contentUrl) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.contentUrl == null ? 43 : this.contentUrl.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateAttachmentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateAttachmentRequest.java new file mode 100644 index 00000000000..350f55d8634 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateAttachmentRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use CreateAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateAttachmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails> { + + /** Details for the new Attachment. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails + createAttachmentDetails; + + /** Details for the new Attachment. */ + public com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails + getCreateAttachmentDetails() { + return createAttachmentDetails; + } + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails getBody$() { + return createAttachmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateAttachmentRequest, + com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Attachment. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails + createAttachmentDetails = null; + + /** + * Details for the new Attachment. + * + * @param createAttachmentDetails the value to set + * @return this builder instance + */ + public Builder createAttachmentDetails( + com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails + createAttachmentDetails) { + this.createAttachmentDetails = createAttachmentDetails; + return this; + } + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(CreateAttachmentRequest o) { + createAttachmentDetails(o.getCreateAttachmentDetails()); + offerId(o.getOfferId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateAttachmentRequest 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 CreateAttachmentRequest + */ + public CreateAttachmentRequest build() { + CreateAttachmentRequest 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.marketplaceprivateoffer.model.CreateAttachmentDetails body) { + createAttachmentDetails(body); + return this; + } + + /** + * Build the instance of CreateAttachmentRequest 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 CreateAttachmentRequest + */ + public CreateAttachmentRequest buildWithoutInvocationCallback() { + CreateAttachmentRequest request = new CreateAttachmentRequest(); + request.createAttachmentDetails = createAttachmentDetails; + request.offerId = offerId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateAttachmentRequest(createAttachmentDetails, offerId, 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() + .createAttachmentDetails(createAttachmentDetails) + .offerId(offerId) + .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(",createAttachmentDetails=").append(String.valueOf(this.createAttachmentDetails)); + sb.append(",offerId=").append(String.valueOf(this.offerId)); + 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 CreateAttachmentRequest)) { + return false; + } + + CreateAttachmentRequest other = (CreateAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createAttachmentDetails, other.createAttachmentDetails) + && java.util.Objects.equals(this.offerId, other.offerId) + && 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.createAttachmentDetails == null + ? 43 + : this.createAttachmentDetails.hashCode()); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateOfferRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateOfferRequest.java new file mode 100644 index 00000000000..3806cc460e5 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateOfferRequest.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use CreateOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateOfferRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails> { + + /** Details for the new Offer. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails createOfferDetails; + + /** Details for the new Offer. */ + public com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails getCreateOfferDetails() { + return createOfferDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails getBody$() { + return createOfferDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOfferRequest, + com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Offer. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails createOfferDetails = + null; + + /** + * Details for the new Offer. + * + * @param createOfferDetails the value to set + * @return this builder instance + */ + public Builder createOfferDetails( + com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails + createOfferDetails) { + this.createOfferDetails = createOfferDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(CreateOfferRequest o) { + createOfferDetails(o.getCreateOfferDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOfferRequest 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 CreateOfferRequest + */ + public CreateOfferRequest build() { + CreateOfferRequest 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.marketplaceprivateoffer.model.CreateOfferDetails body) { + createOfferDetails(body); + return this; + } + + /** + * Build the instance of CreateOfferRequest 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 CreateOfferRequest + */ + public CreateOfferRequest buildWithoutInvocationCallback() { + CreateOfferRequest request = new CreateOfferRequest(); + request.createOfferDetails = createOfferDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOfferRequest(createOfferDetails, 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() + .createOfferDetails(createOfferDetails) + .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(",createOfferDetails=").append(String.valueOf(this.createOfferDetails)); + 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 CreateOfferRequest)) { + return false; + } + + CreateOfferRequest other = (CreateOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createOfferDetails, other.createOfferDetails) + && 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.createOfferDetails == null + ? 43 + : this.createOfferDetails.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteAttachmentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteAttachmentRequest.java new file mode 100644 index 00000000000..644e48ec2dc --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteAttachmentRequest.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use DeleteAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteAttachmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** unique Offer identifier */ + private String attachmentId; + + /** unique Offer identifier */ + public String getAttachmentId() { + return attachmentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteAttachmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** unique Offer identifier */ + private String attachmentId = null; + + /** + * unique Offer identifier + * + * @param attachmentId the value to set + * @return this builder instance + */ + public Builder attachmentId(String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteAttachmentRequest o) { + offerId(o.getOfferId()); + attachmentId(o.getAttachmentId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteAttachmentRequest 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 DeleteAttachmentRequest + */ + public DeleteAttachmentRequest build() { + DeleteAttachmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteAttachmentRequest 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 DeleteAttachmentRequest + */ + public DeleteAttachmentRequest buildWithoutInvocationCallback() { + DeleteAttachmentRequest request = new DeleteAttachmentRequest(); + request.offerId = offerId; + request.attachmentId = attachmentId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteAttachmentRequest(offerId, attachmentId, 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() + .offerId(offerId) + .attachmentId(attachmentId) + .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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",attachmentId=").append(String.valueOf(this.attachmentId)); + 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 DeleteAttachmentRequest)) { + return false; + } + + DeleteAttachmentRequest other = (DeleteAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.attachmentId, other.attachmentId) + && 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.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.attachmentId == null ? 43 : this.attachmentId.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteOfferRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteOfferRequest.java new file mode 100644 index 00000000000..dc1b0960173 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteOfferRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use DeleteOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteOfferRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteOfferRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteOfferRequest o) { + offerId(o.getOfferId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteOfferRequest 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 DeleteOfferRequest + */ + public DeleteOfferRequest build() { + DeleteOfferRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteOfferRequest 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 DeleteOfferRequest + */ + public DeleteOfferRequest buildWithoutInvocationCallback() { + DeleteOfferRequest request = new DeleteOfferRequest(); + request.offerId = offerId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteOfferRequest(offerId, 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().offerId(offerId).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(",offerId=").append(String.valueOf(this.offerId)); + 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 DeleteOfferRequest)) { + return false; + } + + DeleteOfferRequest other = (DeleteOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && 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.offerId == null ? 43 : this.offerId.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetAttachmentContentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetAttachmentContentRequest.java new file mode 100644 index 00000000000..ed027a7adde --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetAttachmentContentRequest.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use GetAttachmentContentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentContentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** unique Offer identifier */ + private String attachmentId; + + /** unique Offer identifier */ + public String getAttachmentId() { + return attachmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetAttachmentContentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** unique Offer identifier */ + private String attachmentId = null; + + /** + * unique Offer identifier + * + * @param attachmentId the value to set + * @return this builder instance + */ + public Builder attachmentId(String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetAttachmentContentRequest o) { + offerId(o.getOfferId()); + attachmentId(o.getAttachmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAttachmentContentRequest 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 GetAttachmentContentRequest + */ + public GetAttachmentContentRequest build() { + GetAttachmentContentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAttachmentContentRequest 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 GetAttachmentContentRequest + */ + public GetAttachmentContentRequest buildWithoutInvocationCallback() { + GetAttachmentContentRequest request = new GetAttachmentContentRequest(); + request.offerId = offerId; + request.attachmentId = attachmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetAttachmentContentRequest(offerId, attachmentId, 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().offerId(offerId).attachmentId(attachmentId).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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",attachmentId=").append(String.valueOf(this.attachmentId)); + 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 GetAttachmentContentRequest)) { + return false; + } + + GetAttachmentContentRequest other = (GetAttachmentContentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.attachmentId, other.attachmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.attachmentId == null ? 43 : this.attachmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetAttachmentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetAttachmentRequest.java new file mode 100644 index 00000000000..1990bcdf602 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetAttachmentRequest.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use GetAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** unique Offer identifier */ + private String attachmentId; + + /** unique Offer identifier */ + public String getAttachmentId() { + return attachmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetAttachmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** unique Offer identifier */ + private String attachmentId = null; + + /** + * unique Offer identifier + * + * @param attachmentId the value to set + * @return this builder instance + */ + public Builder attachmentId(String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetAttachmentRequest o) { + offerId(o.getOfferId()); + attachmentId(o.getAttachmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAttachmentRequest 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 GetAttachmentRequest + */ + public GetAttachmentRequest build() { + GetAttachmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAttachmentRequest 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 GetAttachmentRequest + */ + public GetAttachmentRequest buildWithoutInvocationCallback() { + GetAttachmentRequest request = new GetAttachmentRequest(); + request.offerId = offerId; + request.attachmentId = attachmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetAttachmentRequest(offerId, attachmentId, 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().offerId(offerId).attachmentId(attachmentId).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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",attachmentId=").append(String.valueOf(this.attachmentId)); + 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 GetAttachmentRequest)) { + return false; + } + + GetAttachmentRequest other = (GetAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.attachmentId, other.attachmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.attachmentId == null ? 43 : this.attachmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferInternalDetailRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferInternalDetailRequest.java new file mode 100644 index 00000000000..f58cd2a2153 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferInternalDetailRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use + * GetOfferInternalDetailRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferInternalDetailRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetOfferInternalDetailRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetOfferInternalDetailRequest o) { + offerId(o.getOfferId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOfferInternalDetailRequest 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 GetOfferInternalDetailRequest + */ + public GetOfferInternalDetailRequest build() { + GetOfferInternalDetailRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOfferInternalDetailRequest 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 GetOfferInternalDetailRequest + */ + public GetOfferInternalDetailRequest buildWithoutInvocationCallback() { + GetOfferInternalDetailRequest request = new GetOfferInternalDetailRequest(); + request.offerId = offerId; + request.opcRequestId = opcRequestId; + return request; + // new GetOfferInternalDetailRequest(offerId, 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().offerId(offerId).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(",offerId=").append(String.valueOf(this.offerId)); + 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 GetOfferInternalDetailRequest)) { + return false; + } + + GetOfferInternalDetailRequest other = (GetOfferInternalDetailRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferRequest.java new file mode 100644 index 00000000000..fa0b7cee4fa --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferRequest.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use GetOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetOfferRequest o) { + offerId(o.getOfferId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOfferRequest 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 GetOfferRequest + */ + public GetOfferRequest build() { + GetOfferRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOfferRequest 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 GetOfferRequest + */ + public GetOfferRequest buildWithoutInvocationCallback() { + GetOfferRequest request = new GetOfferRequest(); + request.offerId = offerId; + request.opcRequestId = opcRequestId; + return request; + // new GetOfferRequest(offerId, 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().offerId(offerId).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(",offerId=").append(String.valueOf(this.offerId)); + 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 GetOfferRequest)) { + return false; + } + + GetOfferRequest other = (GetOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListAttachmentsRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListAttachmentsRequest.java new file mode 100644 index 00000000000..51e0351a2c9 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListAttachmentsRequest.java @@ -0,0 +1,509 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use ListAttachmentsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAttachmentsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId; + + /** The ID of the buyer compartment this offer is associated with. */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId; + + /** The ID of the seller compartment this offer is associated with. */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Attachment.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.marketplaceprivateoffer.model.Attachment.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique Offer identifier */ + private String id; + + /** unique Offer identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplaceprivateoffer.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplaceprivateoffer.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAttachmentsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId = null; + + /** + * The ID of the buyer compartment this offer is associated with. + * + * @param buyerCompartmentId the value to set + * @return this builder instance + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + return this; + } + + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId = null; + + /** + * The ID of the seller compartment this offer is associated with. + * + * @param sellerCompartmentId the value to set + * @return this builder instance + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplaceprivateoffer.model.Attachment.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique Offer identifier */ + private String id = null; + + /** + * unique Offer identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplaceprivateoffer.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.marketplaceprivateoffer.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ListAttachmentsRequest o) { + offerId(o.getOfferId()); + buyerCompartmentId(o.getBuyerCompartmentId()); + sellerCompartmentId(o.getSellerCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + 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 ListAttachmentsRequest 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 ListAttachmentsRequest + */ + public ListAttachmentsRequest build() { + ListAttachmentsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAttachmentsRequest 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 ListAttachmentsRequest + */ + public ListAttachmentsRequest buildWithoutInvocationCallback() { + ListAttachmentsRequest request = new ListAttachmentsRequest(); + request.offerId = offerId; + request.buyerCompartmentId = buyerCompartmentId; + request.sellerCompartmentId = sellerCompartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListAttachmentsRequest(offerId, buyerCompartmentId, sellerCompartmentId, + // lifecycleState, displayName, id, 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() + .offerId(offerId) + .buyerCompartmentId(buyerCompartmentId) + .sellerCompartmentId(sellerCompartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(",sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListAttachmentsRequest)) { + return false; + } + + ListAttachmentsRequest other = (ListAttachmentsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.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.offerId == null ? 43 : this.offerId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListOffersRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListOffersRequest.java new file mode 100644 index 00000000000..f38f578bf06 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListOffersRequest.java @@ -0,0 +1,480 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use ListOffersRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListOffersRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId; + + /** The ID of the buyer compartment this offer is associated with. */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId; + + /** The ID of the seller compartment this offer is associated with. */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.marketplaceprivateoffer.model.Offer.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique Offer identifier */ + private String id; + + /** unique Offer identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplaceprivateoffer.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplaceprivateoffer.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOffersRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId = null; + + /** + * The ID of the buyer compartment this offer is associated with. + * + * @param buyerCompartmentId the value to set + * @return this builder instance + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + return this; + } + + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId = null; + + /** + * The ID of the seller compartment this offer is associated with. + * + * @param sellerCompartmentId the value to set + * @return this builder instance + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.marketplaceprivateoffer.model.Offer.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique Offer identifier */ + private String id = null; + + /** + * unique Offer identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplaceprivateoffer.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.marketplaceprivateoffer.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ListOffersRequest o) { + buyerCompartmentId(o.getBuyerCompartmentId()); + sellerCompartmentId(o.getSellerCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + 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 ListOffersRequest 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 ListOffersRequest + */ + public ListOffersRequest build() { + ListOffersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOffersRequest 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 ListOffersRequest + */ + public ListOffersRequest buildWithoutInvocationCallback() { + ListOffersRequest request = new ListOffersRequest(); + request.buyerCompartmentId = buyerCompartmentId; + request.sellerCompartmentId = sellerCompartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListOffersRequest(buyerCompartmentId, sellerCompartmentId, lifecycleState, + // displayName, id, 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() + .buyerCompartmentId(buyerCompartmentId) + .sellerCompartmentId(sellerCompartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .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(",buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(",sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListOffersRequest)) { + return false; + } + + ListOffersRequest other = (ListOffersRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.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.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/UpdateOfferRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/UpdateOfferRequest.java new file mode 100644 index 00000000000..9b1f4752a32 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/UpdateOfferRequest.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use UpdateOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateOfferRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails> { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The information to be updated. */ + private com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails updateOfferDetails; + + /** The information to be updated. */ + public com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails getUpdateOfferDetails() { + return updateOfferDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails getBody$() { + return updateOfferDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOfferRequest, + com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails updateOfferDetails = + null; + + /** + * The information to be updated. + * + * @param updateOfferDetails the value to set + * @return this builder instance + */ + public Builder updateOfferDetails( + com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails + updateOfferDetails) { + this.updateOfferDetails = updateOfferDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateOfferRequest o) { + offerId(o.getOfferId()); + updateOfferDetails(o.getUpdateOfferDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOfferRequest 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 UpdateOfferRequest + */ + public UpdateOfferRequest build() { + UpdateOfferRequest 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.marketplaceprivateoffer.model.UpdateOfferDetails body) { + updateOfferDetails(body); + return this; + } + + /** + * Build the instance of UpdateOfferRequest 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 UpdateOfferRequest + */ + public UpdateOfferRequest buildWithoutInvocationCallback() { + UpdateOfferRequest request = new UpdateOfferRequest(); + request.offerId = offerId; + request.updateOfferDetails = updateOfferDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOfferRequest(offerId, updateOfferDetails, 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() + .offerId(offerId) + .updateOfferDetails(updateOfferDetails) + .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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",updateOfferDetails=").append(String.valueOf(this.updateOfferDetails)); + 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 UpdateOfferRequest)) { + return false; + } + + UpdateOfferRequest other = (UpdateOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.updateOfferDetails, other.updateOfferDetails) + && 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.offerId == null ? 43 : this.offerId.hashCode()); + result = + (result * PRIME) + + (this.updateOfferDetails == null + ? 43 + : this.updateOfferDetails.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateAttachmentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateAttachmentResponse.java new file mode 100644 index 00000000000..ef0fd2a09f9 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateAttachmentResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateAttachmentResponse 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 Attachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.Attachment getAttachment() { + return attachment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "attachment" + }) + private CreateAttachmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.attachment = attachment; + } + + 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 Attachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @param attachment the value to set + * @return this builder + */ + public Builder attachment( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment) { + this.attachment = attachment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateAttachmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attachment(o.getAttachment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateAttachmentResponse build() { + return new CreateAttachmentResponse( + __httpStatusCode__, headers, etag, opcRequestId, attachment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",attachment=").append(String.valueOf(attachment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAttachmentResponse)) { + return false; + } + + CreateAttachmentResponse other = (CreateAttachmentResponse) 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.attachment, other.attachment); + } + + @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.attachment == null ? 43 : this.attachment.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateOfferResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateOfferResponse.java new file mode 100644 index 00000000000..0fd5b41e2ed --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateOfferResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateOfferResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code Offer} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.Offer getOffer() { + return offer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "offer" + }) + private CreateOfferResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.marketplaceprivateoffer.model.Offer offer) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.offer = offer; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code Offer} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @param offer the value to set + * @return this builder + */ + public Builder offer(com.oracle.bmc.marketplaceprivateoffer.model.Offer offer) { + this.offer = offer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateOfferResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + offer(o.getOffer()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateOfferResponse build() { + return new CreateOfferResponse(__httpStatusCode__, headers, opcRequestId, etag, offer); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",offer=").append(String.valueOf(offer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOfferResponse)) { + return false; + } + + CreateOfferResponse other = (CreateOfferResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.offer, other.offer); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.offer == null ? 43 : this.offer.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteAttachmentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteAttachmentResponse.java new file mode 100644 index 00000000000..8a898fc3e12 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteAttachmentResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteAttachmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteAttachmentResponse( + 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; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteAttachmentResponse 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 DeleteAttachmentResponse build() { + return new DeleteAttachmentResponse( + __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 DeleteAttachmentResponse)) { + return false; + } + + DeleteAttachmentResponse other = (DeleteAttachmentResponse) 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteOfferResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteOfferResponse.java new file mode 100644 index 00000000000..4aa426a4d50 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteOfferResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteOfferResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteOfferResponse( + 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; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteOfferResponse 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 DeleteOfferResponse build() { + return new DeleteOfferResponse( + __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 DeleteOfferResponse)) { + return false; + } + + DeleteOfferResponse other = (DeleteOfferResponse) 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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetAttachmentContentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetAttachmentContentResponse.java new file mode 100644 index 00000000000..c9ccaadab07 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetAttachmentContentResponse.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentContentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "inputStream" + }) + private GetAttachmentContentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAttachmentContentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAttachmentContentResponse build() { + return new GetAttachmentContentResponse( + __httpStatusCode__, headers, opcRequestId, inputStream); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAttachmentContentResponse)) { + return false; + } + + GetAttachmentContentResponse other = (GetAttachmentContentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetAttachmentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetAttachmentResponse.java new file mode 100644 index 00000000000..4709ae855bd --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetAttachmentResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentResponse 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 Attachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.Attachment getAttachment() { + return attachment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "attachment" + }) + private GetAttachmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.attachment = attachment; + } + + 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 Attachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @param attachment the value to set + * @return this builder + */ + public Builder attachment( + com.oracle.bmc.marketplaceprivateoffer.model.Attachment attachment) { + this.attachment = attachment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAttachmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attachment(o.getAttachment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAttachmentResponse build() { + return new GetAttachmentResponse( + __httpStatusCode__, headers, etag, opcRequestId, attachment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",attachment=").append(String.valueOf(attachment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAttachmentResponse)) { + return false; + } + + GetAttachmentResponse other = (GetAttachmentResponse) 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.attachment, other.attachment); + } + + @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.attachment == null ? 43 : this.attachment.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferInternalDetailResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferInternalDetailResponse.java new file mode 100644 index 00000000000..9dc8b40d89d --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferInternalDetailResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferInternalDetailResponse 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 OfferInternalDetail} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail offerInternalDetail; + + /** + * The returned {@code OfferInternalDetail} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail + getOfferInternalDetail() { + return offerInternalDetail; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offerInternalDetail" + }) + private GetOfferInternalDetailResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail offerInternalDetail) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offerInternalDetail = offerInternalDetail; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetOfferInternalDetailResponse> { + 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 OfferInternalDetail} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail + offerInternalDetail; + + /** + * The returned {@code OfferInternalDetail} instance. + * + * @param offerInternalDetail the value to set + * @return this builder + */ + public Builder offerInternalDetail( + com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail + offerInternalDetail) { + this.offerInternalDetail = offerInternalDetail; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOfferInternalDetailResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offerInternalDetail(o.getOfferInternalDetail()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOfferInternalDetailResponse build() { + return new GetOfferInternalDetailResponse( + __httpStatusCode__, headers, etag, opcRequestId, offerInternalDetail); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offerInternalDetail=").append(String.valueOf(offerInternalDetail)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOfferInternalDetailResponse)) { + return false; + } + + GetOfferInternalDetailResponse other = (GetOfferInternalDetailResponse) 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.offerInternalDetail, other.offerInternalDetail); + } + + @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.offerInternalDetail == null + ? 43 + : this.offerInternalDetail.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferResponse.java new file mode 100644 index 00000000000..b790b036fe9 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferResponse 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 Offer} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.Offer getOffer() { + return offer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offer" + }) + private GetOfferResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.Offer offer) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offer = offer; + } + + 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 Offer} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @param offer the value to set + * @return this builder + */ + public Builder offer(com.oracle.bmc.marketplaceprivateoffer.model.Offer offer) { + this.offer = offer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOfferResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offer(o.getOffer()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOfferResponse build() { + return new GetOfferResponse(__httpStatusCode__, headers, etag, opcRequestId, offer); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offer=").append(String.valueOf(offer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOfferResponse)) { + return false; + } + + GetOfferResponse other = (GetOfferResponse) 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.offer, other.offer); + } + + @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.offer == null ? 43 : this.offer.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListAttachmentsResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListAttachmentsResponse.java new file mode 100644 index 00000000000..683788210a5 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListAttachmentsResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAttachmentsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code AttachmentCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.AttachmentCollection attachmentCollection; + + /** + * The returned {@code AttachmentCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.AttachmentCollection + getAttachmentCollection() { + return attachmentCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "attachmentCollection" + }) + private ListAttachmentsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplaceprivateoffer.model.AttachmentCollection + attachmentCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.attachmentCollection = attachmentCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code AttachmentCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.AttachmentCollection + attachmentCollection; + + /** + * The returned {@code AttachmentCollection} instance. + * + * @param attachmentCollection the value to set + * @return this builder + */ + public Builder attachmentCollection( + com.oracle.bmc.marketplaceprivateoffer.model.AttachmentCollection + attachmentCollection) { + this.attachmentCollection = attachmentCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAttachmentsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + attachmentCollection(o.getAttachmentCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAttachmentsResponse build() { + return new ListAttachmentsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, attachmentCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",attachmentCollection=").append(String.valueOf(attachmentCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAttachmentsResponse)) { + return false; + } + + ListAttachmentsResponse other = (ListAttachmentsResponse) 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.attachmentCollection, other.attachmentCollection); + } + + @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.attachmentCollection == null + ? 43 + : this.attachmentCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListOffersResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListOffersResponse.java new file mode 100644 index 00000000000..543f76d335c --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListOffersResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListOffersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code OfferCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection offerCollection; + + /** + * The returned {@code OfferCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection getOfferCollection() { + return offerCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "offerCollection" + }) + private ListOffersResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection offerCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.offerCollection = offerCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code OfferCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection offerCollection; + + /** + * The returned {@code OfferCollection} instance. + * + * @param offerCollection the value to set + * @return this builder + */ + public Builder offerCollection( + com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection offerCollection) { + this.offerCollection = offerCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOffersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + offerCollection(o.getOfferCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOffersResponse build() { + return new ListOffersResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, offerCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offerCollection=").append(String.valueOf(offerCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOffersResponse)) { + return false; + } + + ListOffersResponse other = (ListOffersResponse) 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.offerCollection, other.offerCollection); + } + + @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.offerCollection == null ? 43 : this.offerCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/UpdateOfferResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/UpdateOfferResponse.java new file mode 100644 index 00000000000..ec5b2bddf1c --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/UpdateOfferResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateOfferResponse 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 Offer} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.Offer getOffer() { + return offer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offer" + }) + private UpdateOfferResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.Offer offer) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offer = offer; + } + + 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 Offer} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @param offer the value to set + * @return this builder + */ + public Builder offer(com.oracle.bmc.marketplaceprivateoffer.model.Offer offer) { + this.offer = offer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateOfferResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offer(o.getOffer()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateOfferResponse build() { + return new UpdateOfferResponse(__httpStatusCode__, headers, etag, opcRequestId, offer); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offer=").append(String.valueOf(offer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOfferResponse)) { + return false; + } + + UpdateOfferResponse other = (UpdateOfferResponse) 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.offer, other.offer); + } + + @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.offer == null ? 43 : this.offer.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplaceprivateoffer/reflect-config.json b/bmc-marketplaceprivateoffer/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplaceprivateoffer/reflect-config.json new file mode 100644 index 00000000000..28ad44e65db --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplaceprivateoffer/reflect-config.json @@ -0,0 +1,314 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Attachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Attachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Attachment$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Attachment$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.AttachmentCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.AttachmentCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.AttachmentSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.AttachmentSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.BuyerInformation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.BuyerInformation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Contact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Contact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateAttachmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CustomField", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CustomField$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Offer", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Offer$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Offer$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Offer$OfferStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferInternalDetail$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.PackageType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Pricing", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Pricing$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Pricing$BillingCycle", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.PublisherSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.PublisherSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.PublisherSummary$PublisherType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.ResourceBundle", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.ResourceBundle$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.ResourceBundle$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.ResourceBundle$UnitOfMeasurement", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.SellerInformation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.SellerInformation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.UploadData", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.UploadData$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties b/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties new file mode 100644 index 00000000000..f20e466b1a1 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.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.78 +java.minimum.client.codegen.version.from.client = 2.26 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 2af65017027..df1d9b2a5aa 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/Attachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/Attachment.java new file mode 100644 index 00000000000..e4ff0d0bbc0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/Attachment.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. 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: 20220901") +public interface Attachment extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Attachment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

Example: Click here to see how to use + * GetAttachmentContent API. + */ + GetAttachmentContentResponse getAttachmentContent(GetAttachmentContentRequest request); + + /** + * Returns a list of Attachments. Requires either the BuyerCompartmentId or the + * SellerCompartmentId params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListAttachments + * API. + */ + ListAttachmentsResponse listAttachments(ListAttachmentsRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + AttachmentWaiters 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. + */ + AttachmentPaginators getPaginators(); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentAsync.java new file mode 100644 index 00000000000..58f254e2398 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentAsync.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public interface AttachmentAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Attachment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createAttachment( + CreateAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a Attachment resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteAttachment( + DeleteAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a Attachment by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAttachment( + GetAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a Attachment content by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getAttachmentContent( + GetAttachmentContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAttachmentContentRequest, GetAttachmentContentResponse> + handler); + + /** + * Returns a list of Attachments. Requires either the BuyerCompartmentId or the + * SellerCompartmentId params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listAttachments( + ListAttachmentsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentAsyncClient.java new file mode 100644 index 00000000000..2d319b93eb5 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentAsyncClient.java @@ -0,0 +1,464 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Attachment 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: 20220901") +public class AttachmentAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements AttachmentAsync { + /** Service instance for Attachment. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("ATTACHMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AttachmentAsyncClient.class); + + AttachmentAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + AttachmentAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { + super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "AttachmentAsyncClient", "getAttachmentContent")); + } + } + + /** + * 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 boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public AttachmentAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AttachmentAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future createAttachment( + CreateAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateAttachmentRequest, CreateAttachmentResponse> + handler) { + Objects.requireNonNull( + request.getCreateAttachmentDetails(), "createAttachmentDetails is required"); + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, CreateAttachmentResponse::builder) + .logger(LOG, "createAttachment") + .serviceDetails( + "Attachment", + "CreateAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/CreateAttachment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Attachment.class, + CreateAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", CreateAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteAttachment( + DeleteAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteAttachmentRequest, DeleteAttachmentResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, DeleteAttachmentResponse::builder) + .logger(LOG, "deleteAttachment") + .serviceDetails( + "Attachment", + "DeleteAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/DeleteAttachment") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteAttachmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAttachment( + GetAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentResponse::builder) + .logger(LOG, "getAttachment") + .serviceDetails( + "Attachment", + "GetAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/GetAttachment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Attachment.class, + GetAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", GetAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getAttachmentContent( + GetAttachmentContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAttachmentContentRequest, GetAttachmentContentResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentContentResponse::builder) + .logger(LOG, "getAttachmentContent") + .serviceDetails( + "Attachment", + "GetAttachmentContent", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/GetAttachmentContent") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentContentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + java.io.InputStream.class, + GetAttachmentContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentContentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAttachments( + ListAttachmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAttachmentsRequest, ListAttachmentsResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, ListAttachmentsResponse::builder) + .logger(LOG, "listAttachments") + .serviceDetails( + "Attachment", + "ListAttachments", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/AttachmentCollection/ListAttachments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAttachmentsRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplacepublisher.model.AttachmentCollection.class, + ListAttachmentsResponse.Builder::attachmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAttachmentsResponse.Builder::opcNextPage) + .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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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 AttachmentAsyncClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentClient.java new file mode 100644 index 00000000000..b9f9affbb1b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentClient.java @@ -0,0 +1,532 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.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: 20220901") +public class AttachmentClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements Attachment { + /** Service instance for Attachment. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("ATTACHMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AttachmentClient.class); + + private final AttachmentWaiters waiters; + + private final AttachmentPaginators paginators; + + AttachmentClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + AttachmentClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService, + boolean isStreamWarningEnabled) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("Attachment-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new AttachmentWaiters(executorService, this); + + this.paginators = new AttachmentPaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "AttachmentClient", "getAttachmentContent")); + } + } + + /** + * 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 boolean isStreamWarningEnabled = true; + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplacepublisher"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public AttachmentClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new AttachmentClient( + this, authenticationDetailsProvider, executorService, isStreamWarningEnabled); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CreateAttachmentResponse createAttachment(CreateAttachmentRequest request) { + Objects.requireNonNull( + request.getCreateAttachmentDetails(), "createAttachmentDetails is required"); + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, CreateAttachmentResponse::builder) + .logger(LOG, "createAttachment") + .serviceDetails( + "Attachment", + "CreateAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/CreateAttachment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Attachment.class, + CreateAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", CreateAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteAttachmentResponse deleteAttachment(DeleteAttachmentRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, DeleteAttachmentResponse::builder) + .logger(LOG, "deleteAttachment") + .serviceDetails( + "Attachment", + "DeleteAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/DeleteAttachment") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteAttachmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetAttachmentResponse getAttachment(GetAttachmentRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentResponse::builder) + .logger(LOG, "getAttachment") + .serviceDetails( + "Attachment", + "GetAttachment", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/GetAttachment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Attachment.class, + GetAttachmentResponse.Builder::attachment) + .handleResponseHeaderString("etag", GetAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetAttachmentContentResponse getAttachmentContent(GetAttachmentContentRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + Validate.notBlank(request.getAttachmentId(), "attachmentId must not be blank"); + + return clientCall(request, GetAttachmentContentResponse::builder) + .logger(LOG, "getAttachmentContent") + .serviceDetails( + "Attachment", + "GetAttachmentContent", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/GetAttachmentContent") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAttachmentContentRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendPathParam(request.getAttachmentId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + GetAttachmentContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", GetAttachmentContentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListAttachmentsResponse listAttachments(ListAttachmentsRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, ListAttachmentsResponse::builder) + .logger(LOG, "listAttachments") + .serviceDetails( + "Attachment", + "ListAttachments", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/AttachmentCollection/ListAttachments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAttachmentsRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("attachments") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplacepublisher.model.AttachmentCollection.class, + ListAttachmentsResponse.Builder::attachmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAttachmentsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public AttachmentWaiters getWaiters() { + return waiters; + } + + @Override + public AttachmentPaginators 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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 AttachmentClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentPaginators.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentPaginators.java new file mode 100644 index 00000000000..ce658118e30 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentPaginators.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Attachment where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to + * as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: + * listUsersResponseIterator + *
  • Iterating over the resources/records being listed. These are referred to as + * RecordIterators, and the methods are suffixed with RecordIterator. For example: + * listUsersRecordIterator + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachmentPaginators { + private final Attachment client; + + public AttachmentPaginators(Attachment client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAttachments 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 listAttachmentsResponseIterator( + final ListAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAttachmentsRequest.Builder, ListAttachmentsRequest, ListAttachmentsResponse>( + new java.util.function.Supplier() { + @Override + public ListAttachmentsRequest.Builder get() { + return ListAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.Builder>, + ListAttachmentsRequest>() { + @Override + public ListAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.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 ListAttachmentsResponse apply(ListAttachmentsRequest request) { + return client.listAttachments(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.AttachmentSummary} objects contained in responses + * from the listAttachments 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.marketplacepublisher.model.AttachmentSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAttachmentsRecordIterator(final ListAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAttachmentsRequest.Builder, + ListAttachmentsRequest, + ListAttachmentsResponse, + com.oracle.bmc.marketplacepublisher.model.AttachmentSummary>( + new java.util.function.Supplier() { + @Override + public ListAttachmentsRequest.Builder get() { + return ListAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.Builder>, + ListAttachmentsRequest>() { + @Override + public ListAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttachmentsRequest.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 ListAttachmentsResponse apply(ListAttachmentsRequest request) { + return client.listAttachments(request); + } + }, + new java.util.function.Function< + ListAttachmentsResponse, + java.util.List< + com.oracle.bmc.marketplacepublisher.model.AttachmentSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplacepublisher.model.AttachmentSummary> + apply(ListAttachmentsResponse response) { + return response.getAttachmentCollection().getItems(); + } + }); + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentWaiters.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentWaiters.java new file mode 100644 index 00000000000..28050c61ba0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AttachmentWaiters.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Attachment. + * + *

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: 20220901") +public class AttachmentWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Attachment client; + + public AttachmentWaiters( + java.util.concurrent.ExecutorService executorService, Attachment 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 forAttachment( + GetAttachmentRequest request, + com.oracle.bmc.marketplacepublisher.model.Attachment.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 forAttachment( + 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 forAttachment( + GetAttachmentRequest request, + com.oracle.bmc.marketplacepublisher.model.Attachment.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 forAttachment( + 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 forAttachment( + GetAttachmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.marketplacepublisher.model.Attachment.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 forAttachment( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Attachment. + private com.oracle.bmc.waiter.Waiter forAttachment( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAttachmentRequest request, + final com.oracle.bmc.marketplacepublisher.model.Attachment.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< + GetAttachmentRequest, GetAttachmentResponse>() { + @Override + public GetAttachmentResponse apply(GetAttachmentRequest request) { + return client.getAttachment(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetAttachmentResponse response) { + return targetStatesSet.contains( + response.getAttachment().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.marketplacepublisher.model.Attachment.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/Offer.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/Offer.java new file mode 100644 index 00000000000..cdf24019eea --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/Offer.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. 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: 20220901") +public interface Offer extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Offer. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

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

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

Example: Click here to see how to use + * GetOfferInternalDetail API. + */ + GetOfferInternalDetailResponse getOfferInternalDetail(GetOfferInternalDetailRequest request); + + /** + * Returns a list of Offers. Requires either the BuyerCompartmentId or the SellerCompartmentId + * params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use UpdateOffer API. + */ + UpdateOfferResponse updateOffer(UpdateOfferRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + OfferWaiters 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. + */ + OfferPaginators getPaginators(); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferAsync.java new file mode 100644 index 00000000000..a93c14ce343 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferAsync.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud + * Infrastructure Marketplace. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public interface OfferAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

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

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

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new Offer. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createOffer( + CreateOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Deletes an Offer resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteOffer( + DeleteOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets an Offer by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getOffer( + GetOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets an Offer internal details by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getOfferInternalDetail( + GetOfferInternalDetailRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOfferInternalDetailRequest, GetOfferInternalDetailResponse> + handler); + + /** + * Returns a list of Offers. Requires either the BuyerCompartmentId or the SellerCompartmentId + * params. If neither or both are provided, then the API will return a 400. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOffers( + ListOffersRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Updates the Offer + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateOffer( + UpdateOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferAsyncClient.java new file mode 100644 index 00000000000..80ed92e9811 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferAsyncClient.java @@ -0,0 +1,447 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for Offer 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: 20220901") +public class OfferAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements OfferAsync { + /** Service instance for Offer. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("OFFER") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferAsyncClient.class); + + OfferAsyncClient( + 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 = "marketplacepublisher"; + com.oracle.bmc.internal.Alloy.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 OfferAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new OfferAsyncClient(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 createOffer( + CreateOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCreateOfferDetails(), "createOfferDetails is required"); + + return clientCall(request, CreateOfferResponse::builder) + .logger(LOG, "createOffer") + .serviceDetails( + "Offer", + "CreateOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/CreateOffer") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Offer.class, + CreateOfferResponse.Builder::offer) + .handleResponseHeaderString( + "opc-request-id", CreateOfferResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateOfferResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteOffer( + DeleteOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, DeleteOfferResponse::builder) + .logger(LOG, "deleteOffer") + .serviceDetails( + "Offer", + "DeleteOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/DeleteOffer") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteOfferResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOffer( + GetOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferResponse::builder) + .logger(LOG, "getOffer") + .serviceDetails( + "Offer", + "GetOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/GetOffer") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Offer.class, + GetOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", GetOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOfferInternalDetail( + GetOfferInternalDetailRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOfferInternalDetailRequest, GetOfferInternalDetailResponse> + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferInternalDetailResponse::builder) + .logger(LOG, "getOfferInternalDetail") + .serviceDetails( + "Offer", + "GetOfferInternalDetail", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/GetOfferInternalDetail") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferInternalDetailRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("internalDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail.class, + GetOfferInternalDetailResponse.Builder::offerInternalDetail) + .handleResponseHeaderString("etag", GetOfferInternalDetailResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferInternalDetailResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOffers( + ListOffersRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + return clientCall(request, ListOffersResponse::builder) + .logger(LOG, "listOffers") + .serviceDetails( + "Offer", + "ListOffers", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/OfferCollection/ListOffers") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOffersRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplacepublisher.model.OfferCollection.class, + ListOffersResponse.Builder::offerCollection) + .handleResponseHeaderString( + "opc-request-id", ListOffersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOffersResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateOffer( + UpdateOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + Objects.requireNonNull(request.getUpdateOfferDetails(), "updateOfferDetails is required"); + + return clientCall(request, UpdateOfferResponse::builder) + .logger(LOG, "updateOffer") + .serviceDetails( + "Offer", + "UpdateOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/UpdateOffer") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Offer.class, + UpdateOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", UpdateOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOfferResponse.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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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 OfferAsyncClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferClient.java new file mode 100644 index 00000000000..34638eadb92 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferClient.java @@ -0,0 +1,517 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.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: 20220901") +public class OfferClient extends com.oracle.bmc.http.internal.BaseSyncClient implements Offer { + /** Service instance for Offer. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("OFFER") + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferClient.class); + + private final OfferWaiters waiters; + + private final OfferPaginators paginators; + + OfferClient( + 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("Offer-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new OfferWaiters(executorService, this); + + this.paginators = new OfferPaginators(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 = "marketplacepublisher"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public OfferClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new OfferClient(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 CreateOfferResponse createOffer(CreateOfferRequest request) { + Objects.requireNonNull(request.getCreateOfferDetails(), "createOfferDetails is required"); + + return clientCall(request, CreateOfferResponse::builder) + .logger(LOG, "createOffer") + .serviceDetails( + "Offer", + "CreateOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/CreateOffer") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Offer.class, + CreateOfferResponse.Builder::offer) + .handleResponseHeaderString( + "opc-request-id", CreateOfferResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateOfferResponse.Builder::etag) + .callSync(); + } + + @Override + public DeleteOfferResponse deleteOffer(DeleteOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, DeleteOfferResponse::builder) + .logger(LOG, "deleteOffer") + .serviceDetails( + "Offer", + "DeleteOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/DeleteOffer") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteOfferResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOfferResponse getOffer(GetOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferResponse::builder) + .logger(LOG, "getOffer") + .serviceDetails( + "Offer", + "GetOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/GetOffer") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Offer.class, + GetOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", GetOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOfferInternalDetailResponse getOfferInternalDetail( + GetOfferInternalDetailRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, GetOfferInternalDetailResponse::builder) + .logger(LOG, "getOfferInternalDetail") + .serviceDetails( + "Offer", + "GetOfferInternalDetail", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/GetOfferInternalDetail") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferInternalDetailRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("internalDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail.class, + GetOfferInternalDetailResponse.Builder::offerInternalDetail) + .handleResponseHeaderString("etag", GetOfferInternalDetailResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferInternalDetailResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListOffersResponse listOffers(ListOffersRequest request) { + + return clientCall(request, ListOffersResponse::builder) + .logger(LOG, "listOffers") + .serviceDetails( + "Offer", + "ListOffers", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/OfferCollection/ListOffers") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOffersRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendQueryParam("buyerCompartmentId", request.getBuyerCompartmentId()) + .appendQueryParam("sellerCompartmentId", request.getSellerCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .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.marketplacepublisher.model.OfferCollection.class, + ListOffersResponse.Builder::offerCollection) + .handleResponseHeaderString( + "opc-request-id", ListOffersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOffersResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public UpdateOfferResponse updateOffer(UpdateOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + Objects.requireNonNull(request.getUpdateOfferDetails(), "updateOfferDetails is required"); + + return clientCall(request, UpdateOfferResponse::builder) + .logger(LOG, "updateOffer") + .serviceDetails( + "Offer", + "UpdateOffer", + "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Offer/UpdateOffer") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplacepublisher.model.Offer.class, + UpdateOfferResponse.Builder::offer) + .handleResponseHeaderString("etag", UpdateOfferResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOfferResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public OfferWaiters getWaiters() { + return waiters; + } + + @Override + public OfferPaginators 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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 OfferClient( + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferPaginators.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferPaginators.java new file mode 100644 index 00000000000..a29703245c6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferPaginators.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Offer where multiple pages of data may be fetched. Two styles of + * iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to + * as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: + * listUsersResponseIterator + *
  • Iterating over the resources/records being listed. These are referred to as + * RecordIterators, and the methods are suffixed with RecordIterator. For example: + * listUsersRecordIterator + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class OfferPaginators { + private final Offer client; + + public OfferPaginators(Offer client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listOffers + * 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 listOffersResponseIterator( + final ListOffersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOffersRequest.Builder, ListOffersRequest, ListOffersResponse>( + new java.util.function.Supplier() { + @Override + public ListOffersRequest.Builder get() { + return ListOffersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOffersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.Builder>, + ListOffersRequest>() { + @Override + public ListOffersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.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 ListOffersResponse apply(ListOffersRequest request) { + return client.listOffers(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplacepublisher.model.OfferSummary} objects contained in responses from + * the listOffers 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.marketplacepublisher.model.OfferSummary} objects contained in responses + * received from the service. + */ + public Iterable + listOffersRecordIterator(final ListOffersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOffersRequest.Builder, + ListOffersRequest, + ListOffersResponse, + com.oracle.bmc.marketplacepublisher.model.OfferSummary>( + new java.util.function.Supplier() { + @Override + public ListOffersRequest.Builder get() { + return ListOffersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOffersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.Builder>, + ListOffersRequest>() { + @Override + public ListOffersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOffersRequest.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 ListOffersResponse apply(ListOffersRequest request) { + return client.listOffers(request); + } + }, + new java.util.function.Function< + ListOffersResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListOffersResponse response) { + return response.getOfferCollection().getItems(); + } + }); + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferWaiters.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferWaiters.java new file mode 100644 index 00000000000..d4868066a19 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/OfferWaiters.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher; + +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Offer. + * + *

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: 20220901") +public class OfferWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Offer client; + + public OfferWaiters(java.util.concurrent.ExecutorService executorService, Offer 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 forOffer( + GetOfferRequest request, + com.oracle.bmc.marketplacepublisher.model.Offer.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 forOffer( + 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 forOffer( + GetOfferRequest request, + com.oracle.bmc.marketplacepublisher.model.Offer.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 forOffer( + 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 forOffer( + GetOfferRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.marketplacepublisher.model.Offer.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 forOffer( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Offer. + private com.oracle.bmc.waiter.Waiter forOffer( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOfferRequest request, + final com.oracle.bmc.marketplacepublisher.model.Offer.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 GetOfferResponse apply(GetOfferRequest request) { + return client.getOffer(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOfferResponse response) { + return targetStatesSet.contains( + response.getOffer().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.marketplacepublisher.model.Offer.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Attachment.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Attachment.java new file mode 100644 index 00000000000..7741811fc4b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Attachment.java @@ -0,0 +1,641 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Description of Attachment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Attachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Attachment extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "sellerCompartmentId", + "offerId", + "buyerCompartmentId", + "mimeType", + "displayName", + "type", + "timeCreated", + "lifecycleState", + "freeformTags", + "definedTags" + }) + public Attachment( + String id, + String sellerCompartmentId, + String offerId, + String buyerCompartmentId, + String mimeType, + String displayName, + Type type, + java.util.Date timeCreated, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.sellerCompartmentId = sellerCompartmentId; + this.offerId = offerId; + this.buyerCompartmentId = buyerCompartmentId; + this.mimeType = mimeType; + this.displayName = displayName; + this.type = type; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @param offerId the value to set + * @return this builder + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + this.__explicitlySet__.add("offerId"); + return this; + } + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of offer attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Attachment build() { + Attachment model = + new Attachment( + this.id, + this.sellerCompartmentId, + this.offerId, + this.buyerCompartmentId, + this.mimeType, + this.displayName, + this.type, + this.timeCreated, + this.lifecycleState, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Attachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("offerId")) { + this.offerId(model.getOfferId()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private final String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @return the value + */ + public String getOfferId() { + return offerId; + } + + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The type of offer attachment. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + ContractTAndC("CONTRACT_T_AND_C"), + Quote("QUOTE"), + Eula("EULA"), + TermsOfUse("TERMS_OF_USE"), + Misc("MISC"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of offer attachment. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The current state of the Offer. */ + 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 Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Attachment("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", offerId=").append(String.valueOf(this.offerId)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Attachment)) { + return false; + } + + Attachment other = (Attachment) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AttachmentCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AttachmentCollection.java new file mode 100644 index 00000000000..9eedd902083 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AttachmentCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Results of a offers search. Contains boh AttachmentSummary 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: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachmentCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachmentCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AttachmentCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of attachment. + * + * @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 AttachmentCollection build() { + AttachmentCollection model = new AttachmentCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachmentCollection 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 attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of attachment. + * + * @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("AttachmentCollection("); + 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 AttachmentCollection)) { + return false; + } + + AttachmentCollection other = (AttachmentCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AttachmentSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AttachmentSummary.java new file mode 100644 index 00000000000..ee8dc33ac79 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AttachmentSummary.java @@ -0,0 +1,424 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Description of Attachment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachmentSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachmentSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "offerId", + "mimeType", + "displayName", + "type", + "lifecycleState", + "freeformTags", + "definedTags" + }) + public AttachmentSummary( + String id, + String offerId, + String mimeType, + String displayName, + Attachment.Type type, + Attachment.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.offerId = offerId; + this.mimeType = mimeType; + this.displayName = displayName; + this.type = type; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @param offerId the value to set + * @return this builder + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + this.__explicitlySet__.add("offerId"); + return this; + } + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @param mimeType the value to set + * @return this builder + */ + public Builder mimeType(String mimeType) { + this.mimeType = mimeType; + this.__explicitlySet__.add("mimeType"); + return this; + } + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Attachment.Type type; + + /** + * The type of offer attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Attachment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The current state of the Attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Attachment.LifecycleState lifecycleState; + + /** + * The current state of the Attachment. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Attachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttachmentSummary build() { + AttachmentSummary model = + new AttachmentSummary( + this.id, + this.offerId, + this.mimeType, + this.displayName, + this.type, + this.lifecycleState, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachmentSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("offerId")) { + this.offerId(model.getOfferId()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** Unique identifier of the associated offer that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("offerId") + private final String offerId; + + /** + * Unique identifier of the associated offer that is immutable on creation + * + * @return the value + */ + public String getOfferId() { + return offerId; + } + + /** The MIME type of the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("mimeType") + private final String mimeType; + + /** + * The MIME type of the uploaded data. + * + * @return the value + */ + public String getMimeType() { + return mimeType; + } + + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Attachment.Type type; + + /** + * The type of offer attachment. + * + * @return the value + */ + public Attachment.Type getType() { + return type; + } + + /** The current state of the Attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Attachment.LifecycleState lifecycleState; + + /** + * The current state of the Attachment. + * + * @return the value + */ + public Attachment.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AttachmentSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", offerId=").append(String.valueOf(this.offerId)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AttachmentSummary)) { + return false; + } + + AttachmentSummary other = (AttachmentSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BuyerInformation.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BuyerInformation.java new file mode 100644 index 00000000000..118542c929d --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BuyerInformation.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The information related to the buyer of an Offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = BuyerInformation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BuyerInformation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "companyName", + "noteToBuyer", + "primaryContact", + "additionalContacts" + }) + public BuyerInformation( + String companyName, + String noteToBuyer, + Contact primaryContact, + java.util.List additionalContacts) { + super(); + this.companyName = companyName; + this.noteToBuyer = noteToBuyer; + this.primaryContact = primaryContact; + this.additionalContacts = additionalContacts; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** the name of the company for the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("companyName") + private String companyName; + + /** + * the name of the company for the buyer + * + * @param companyName the value to set + * @return this builder + */ + public Builder companyName(String companyName) { + this.companyName = companyName; + this.__explicitlySet__.add("companyName"); + return this; + } + /** a note the seller can specify for the buyer through a notification email */ + @com.fasterxml.jackson.annotation.JsonProperty("noteToBuyer") + private String noteToBuyer; + + /** + * a note the seller can specify for the buyer through a notification email + * + * @param noteToBuyer the value to set + * @return this builder + */ + public Builder noteToBuyer(String noteToBuyer) { + this.noteToBuyer = noteToBuyer; + this.__explicitlySet__.add("noteToBuyer"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private Contact primaryContact; + + public Builder primaryContact(Contact primaryContact) { + this.primaryContact = primaryContact; + this.__explicitlySet__.add("primaryContact"); + return this; + } + /** the additional contacts associated with the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private java.util.List additionalContacts; + + /** + * the additional contacts associated with the buyer + * + * @param additionalContacts the value to set + * @return this builder + */ + public Builder additionalContacts(java.util.List additionalContacts) { + this.additionalContacts = additionalContacts; + this.__explicitlySet__.add("additionalContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BuyerInformation build() { + BuyerInformation model = + new BuyerInformation( + this.companyName, + this.noteToBuyer, + this.primaryContact, + this.additionalContacts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BuyerInformation model) { + if (model.wasPropertyExplicitlySet("companyName")) { + this.companyName(model.getCompanyName()); + } + if (model.wasPropertyExplicitlySet("noteToBuyer")) { + this.noteToBuyer(model.getNoteToBuyer()); + } + if (model.wasPropertyExplicitlySet("primaryContact")) { + this.primaryContact(model.getPrimaryContact()); + } + if (model.wasPropertyExplicitlySet("additionalContacts")) { + this.additionalContacts(model.getAdditionalContacts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** the name of the company for the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("companyName") + private final String companyName; + + /** + * the name of the company for the buyer + * + * @return the value + */ + public String getCompanyName() { + return companyName; + } + + /** a note the seller can specify for the buyer through a notification email */ + @com.fasterxml.jackson.annotation.JsonProperty("noteToBuyer") + private final String noteToBuyer; + + /** + * a note the seller can specify for the buyer through a notification email + * + * @return the value + */ + public String getNoteToBuyer() { + return noteToBuyer; + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private final Contact primaryContact; + + public Contact getPrimaryContact() { + return primaryContact; + } + + /** the additional contacts associated with the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private final java.util.List additionalContacts; + + /** + * the additional contacts associated with the buyer + * + * @return the value + */ + public java.util.List getAdditionalContacts() { + return additionalContacts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BuyerInformation("); + sb.append("super=").append(super.toString()); + sb.append("companyName=").append(String.valueOf(this.companyName)); + sb.append(", noteToBuyer=").append(String.valueOf(this.noteToBuyer)); + sb.append(", primaryContact=").append(String.valueOf(this.primaryContact)); + sb.append(", additionalContacts=").append(String.valueOf(this.additionalContacts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BuyerInformation)) { + return false; + } + + BuyerInformation other = (BuyerInformation) o; + return java.util.Objects.equals(this.companyName, other.companyName) + && java.util.Objects.equals(this.noteToBuyer, other.noteToBuyer) + && java.util.Objects.equals(this.primaryContact, other.primaryContact) + && java.util.Objects.equals(this.additionalContacts, other.additionalContacts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.companyName == null ? 43 : this.companyName.hashCode()); + result = (result * PRIME) + (this.noteToBuyer == null ? 43 : this.noteToBuyer.hashCode()); + result = + (result * PRIME) + + (this.primaryContact == null ? 43 : this.primaryContact.hashCode()); + result = + (result * PRIME) + + (this.additionalContacts == null + ? 43 + : this.additionalContacts.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Contact.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Contact.java new file mode 100644 index 00000000000..077e159a08b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Contact.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The contact information of an individual
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Contact.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Contact extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"firstName", "lastName", "email"}) + public Contact(String firstName, String lastName, String email) { + super(); + this.firstName = firstName; + this.lastName = lastName; + this.email = email; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The first name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private String firstName; + + /** + * The first name of the contact + * + * @param firstName the value to set + * @return this builder + */ + public Builder firstName(String firstName) { + this.firstName = firstName; + this.__explicitlySet__.add("firstName"); + return this; + } + /** The last name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private String lastName; + + /** + * The last name of the contact + * + * @param lastName the value to set + * @return this builder + */ + public Builder lastName(String lastName) { + this.lastName = lastName; + this.__explicitlySet__.add("lastName"); + return this; + } + /** The email of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private String email; + + /** + * The email of the contact + * + * @param email the value to set + * @return this builder + */ + public Builder email(String email) { + this.email = email; + this.__explicitlySet__.add("email"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Contact build() { + Contact model = new Contact(this.firstName, this.lastName, this.email); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Contact model) { + if (model.wasPropertyExplicitlySet("firstName")) { + this.firstName(model.getFirstName()); + } + if (model.wasPropertyExplicitlySet("lastName")) { + this.lastName(model.getLastName()); + } + if (model.wasPropertyExplicitlySet("email")) { + this.email(model.getEmail()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The first name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("firstName") + private final String firstName; + + /** + * The first name of the contact + * + * @return the value + */ + public String getFirstName() { + return firstName; + } + + /** The last name of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("lastName") + private final String lastName; + + /** + * The last name of the contact + * + * @return the value + */ + public String getLastName() { + return lastName; + } + + /** The email of the contact */ + @com.fasterxml.jackson.annotation.JsonProperty("email") + private final String email; + + /** + * The email of the contact + * + * @return the value + */ + public String getEmail() { + return email; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Contact("); + sb.append("super=").append(super.toString()); + sb.append("firstName=").append(String.valueOf(this.firstName)); + sb.append(", lastName=").append(String.valueOf(this.lastName)); + sb.append(", email=").append(String.valueOf(this.email)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Contact)) { + return false; + } + + Contact other = (Contact) o; + return java.util.Objects.equals(this.firstName, other.firstName) + && java.util.Objects.equals(this.lastName, other.lastName) + && java.util.Objects.equals(this.email, other.email) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.firstName == null ? 43 : this.firstName.hashCode()); + result = (result * PRIME) + (this.lastName == null ? 43 : this.lastName.hashCode()); + result = (result * PRIME) + (this.email == null ? 43 : this.email.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAttachmentDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAttachmentDetails.java new file mode 100644 index 00000000000..4cca54bcd52 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAttachmentDetails.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * An attachment uploaded by the Publisher to be attached to an Offer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAttachmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAttachmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fileBase64Encoded", "displayName", "type"}) + public CreateAttachmentDetails( + byte[] fileBase64Encoded, String displayName, Attachment.Type type) { + super(); + this.fileBase64Encoded = fileBase64Encoded; + this.displayName = displayName; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB + */ + @com.fasterxml.jackson.annotation.JsonProperty("fileBase64Encoded") + private byte[] fileBase64Encoded; + + /** + * Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB + * + * @param fileBase64Encoded the value to set + * @return this builder + */ + public Builder fileBase64Encoded(byte[] fileBase64Encoded) { + this.fileBase64Encoded = fileBase64Encoded; + this.__explicitlySet__.add("fileBase64Encoded"); + return this; + } + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Attachment.Type type; + + /** + * The type of offer attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Attachment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAttachmentDetails build() { + CreateAttachmentDetails model = + new CreateAttachmentDetails( + this.fileBase64Encoded, this.displayName, this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAttachmentDetails model) { + if (model.wasPropertyExplicitlySet("fileBase64Encoded")) { + this.fileBase64Encoded(model.getFileBase64Encoded()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB */ + @com.fasterxml.jackson.annotation.JsonProperty("fileBase64Encoded") + private final byte[] fileBase64Encoded; + + /** + * Base64-encoded file to attach to the Offer. File must be a PDF with maximum size of 1 MB + * + * @return the value + */ + public byte[] getFileBase64Encoded() { + return fileBase64Encoded; + } + + /** The name used to refer to the uploaded data. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The name used to refer to the uploaded data. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The type of offer attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Attachment.Type type; + + /** + * The type of offer attachment. + * + * @return the value + */ + public Attachment.Type getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAttachmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("fileBase64Encoded=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.fileBase64Encoded) + : (String.valueOf(this.fileBase64Encoded) + + (this.fileBase64Encoded != null + ? " (byte[" + this.fileBase64Encoded.length + "])" + : "")))); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAttachmentDetails)) { + return false; + } + + CreateAttachmentDetails other = (CreateAttachmentDetails) o; + return java.util.Arrays.equals(this.fileBase64Encoded, other.fileBase64Encoded) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + java.util.Arrays.hashCode(this.fileBase64Encoded); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateOfferDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateOfferDetails.java new file mode 100644 index 00000000000..e9b51b3ddcb --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateOfferDetails.java @@ -0,0 +1,692 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The information about new Offers.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOfferDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOfferDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "sellerCompartmentId", + "buyerCompartmentId", + "description", + "internalNotes", + "timeStartDate", + "duration", + "timeAcceptBy", + "pricing", + "buyerInformation", + "sellerInformation", + "resourceBundles", + "customFields", + "freeformTags", + "definedTags" + }) + public CreateOfferDetails( + String displayName, + String sellerCompartmentId, + String buyerCompartmentId, + String description, + String internalNotes, + java.util.Date timeStartDate, + String duration, + java.util.Date timeAcceptBy, + Pricing pricing, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + java.util.List resourceBundles, + java.util.List customFields, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.sellerCompartmentId = sellerCompartmentId; + this.buyerCompartmentId = buyerCompartmentId; + this.description = description; + this.internalNotes = internalNotes; + this.timeStartDate = timeStartDate; + this.duration = duration; + this.timeAcceptBy = timeAcceptBy; + this.pricing = pricing; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.resourceBundles = resourceBundles; + this.customFields = customFields; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offers Identifier + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Compartment Identifier of the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * Compartment Identifier of the seller + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** Compartment Identifier of the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * Compartment Identifier of the buyer + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Offer + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private String internalNotes; + + /** + * Internal notes of the Offer + * + * @param internalNotes the value to set + * @return this builder + */ + public Builder internalNotes(String internalNotes) { + this.internalNotes = internalNotes; + this.__explicitlySet__.add("internalNotes"); + return this; + } + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @param resourceBundles the value to set + * @return this builder + */ + public Builder resourceBundles(java.util.List resourceBundles) { + this.resourceBundles = resourceBundles; + this.__explicitlySet__.add("resourceBundles"); + return this; + } + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @param customFields the value to set + * @return this builder + */ + public Builder customFields(java.util.List customFields) { + this.customFields = customFields; + this.__explicitlySet__.add("customFields"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOfferDetails build() { + CreateOfferDetails model = + new CreateOfferDetails( + this.displayName, + this.sellerCompartmentId, + this.buyerCompartmentId, + this.description, + this.internalNotes, + this.timeStartDate, + this.duration, + this.timeAcceptBy, + this.pricing, + this.buyerInformation, + this.sellerInformation, + this.resourceBundles, + this.customFields, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOfferDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("internalNotes")) { + this.internalNotes(model.getInternalNotes()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + if (model.wasPropertyExplicitlySet("customFields")) { + this.customFields(model.getCustomFields()); + } + 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); + } + + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offers Identifier + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Compartment Identifier of the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * Compartment Identifier of the seller + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** Compartment Identifier of the buyer */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * Compartment Identifier of the buyer + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Offer + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private final String internalNotes; + + /** + * Internal notes of the Offer + * + * @return the value + */ + public String getInternalNotes() { + return internalNotes; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private final java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @return the value + */ + public java.util.List getCustomFields() { + return customFields; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOfferDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", internalNotes=").append(String.valueOf(this.internalNotes)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + sb.append(", customFields=").append(String.valueOf(this.customFields)); + 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 CreateOfferDetails)) { + return false; + } + + CreateOfferDetails other = (CreateOfferDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.internalNotes, other.internalNotes) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals(this.customFields, other.customFields) + && 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.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.internalNotes == null ? 43 : this.internalNotes.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = (result * PRIME) + (this.customFields == null ? 43 : this.customFields.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomField.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomField.java new file mode 100644 index 00000000000..0aea0adcf60 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomField.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * A key value pair specified by the seller of the offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CustomField.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CustomField extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"key", "value"}) + public CustomField(String key, String value) { + super(); + this.key = key; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** the key of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + /** + * the key of the custom field + * + * @param key the value to set + * @return this builder + */ + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + /** the value of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * the value of the custom field + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CustomField build() { + CustomField model = new CustomField(this.key, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomField model) { + if (model.wasPropertyExplicitlySet("key")) { + this.key(model.getKey()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** the key of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("key") + private final String key; + + /** + * the key of the custom field + * + * @return the value + */ + public String getKey() { + return key; + } + + /** the value of the custom field */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * the value of the custom field + * + * @return the value + */ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CustomField("); + sb.append("super=").append(super.toString()); + sb.append("key=").append(String.valueOf(this.key)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CustomField)) { + return false; + } + + CustomField other = (CustomField) o; + return java.util.Objects.equals(this.key, other.key) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Offer.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Offer.java new file mode 100644 index 00000000000..1771f6fae1f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Offer.java @@ -0,0 +1,1067 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Description of Offer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Offer.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Offer extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "sellerCompartmentId", + "buyerCompartmentId", + "description", + "timeStartDate", + "duration", + "timeCreated", + "timeUpdated", + "timeAcceptBy", + "timeAccepted", + "timeOfferEnd", + "lifecycleState", + "lifecycleDetails", + "offerStatus", + "publisherSummary", + "pricing", + "buyerInformation", + "sellerInformation", + "resourceBundles", + "freeformTags", + "definedTags" + }) + public Offer( + String id, + String displayName, + String sellerCompartmentId, + String buyerCompartmentId, + String description, + java.util.Date timeStartDate, + String duration, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeAcceptBy, + java.util.Date timeAccepted, + java.util.Date timeOfferEnd, + LifecycleState lifecycleState, + String lifecycleDetails, + OfferStatus offerStatus, + PublisherSummary publisherSummary, + Pricing pricing, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + java.util.List resourceBundles, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.displayName = displayName; + this.sellerCompartmentId = sellerCompartmentId; + this.buyerCompartmentId = buyerCompartmentId; + this.description = description; + this.timeStartDate = timeStartDate; + this.duration = duration; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeAcceptBy = timeAcceptBy; + this.timeAccepted = timeAccepted; + this.timeOfferEnd = timeOfferEnd; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.offerStatus = offerStatus; + this.publisherSummary = publisherSummary; + this.pricing = pricing; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.resourceBundles = resourceBundles; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer Identifier, can be renamed + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** The description of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the offer + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @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 time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @param timeOfferEnd the value to set + * @return this builder + */ + public Builder timeOfferEnd(java.util.Date timeOfferEnd) { + this.timeOfferEnd = timeOfferEnd; + this.__explicitlySet__.add("timeOfferEnd"); + return this; + } + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** A substate for lifeCycleStatus to give a more human readable version of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private OfferStatus offerStatus; + + /** + * A substate for lifeCycleStatus to give a more human readable version of the offer + * + * @param offerStatus the value to set + * @return this builder + */ + public Builder offerStatus(OfferStatus offerStatus) { + this.offerStatus = offerStatus; + this.__explicitlySet__.add("offerStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherSummary") + private PublisherSummary publisherSummary; + + public Builder publisherSummary(PublisherSummary publisherSummary) { + this.publisherSummary = publisherSummary; + this.__explicitlySet__.add("publisherSummary"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @param resourceBundles the value to set + * @return this builder + */ + public Builder resourceBundles(java.util.List resourceBundles) { + this.resourceBundles = resourceBundles; + this.__explicitlySet__.add("resourceBundles"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Offer build() { + Offer model = + new Offer( + this.id, + this.displayName, + this.sellerCompartmentId, + this.buyerCompartmentId, + this.description, + this.timeStartDate, + this.duration, + this.timeCreated, + this.timeUpdated, + this.timeAcceptBy, + this.timeAccepted, + this.timeOfferEnd, + this.lifecycleState, + this.lifecycleDetails, + this.offerStatus, + this.publisherSummary, + this.pricing, + this.buyerInformation, + this.sellerInformation, + this.resourceBundles, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Offer model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeOfferEnd")) { + this.timeOfferEnd(model.getTimeOfferEnd()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("offerStatus")) { + this.offerStatus(model.getOfferStatus()); + } + if (model.wasPropertyExplicitlySet("publisherSummary")) { + this.publisherSummary(model.getPublisherSummary()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + 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); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer Identifier, can be renamed + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** OCID of the seller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * OCID of the seller's tenancy (root compartment). + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** The description of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the offer + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** The time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private final java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeOfferEnd() { + return timeOfferEnd; + } + + /** The current state of the Offer. */ + 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 Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** A substate for lifeCycleStatus to give a more human readable version of the offer */ + public enum OfferStatus implements com.oracle.bmc.http.internal.BmcEnum { + Draft("DRAFT"), + PendingMarketplace("PENDING_MARKETPLACE"), + PendingBuyer("PENDING_BUYER"), + Expired("EXPIRED"), + Accepted("ACCEPTED"), + Active("ACTIVE"), + Ended("ENDED"), + FailedSend("FAILED_SEND"), + FailedAccept("FAILED_ACCEPT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OfferStatus v : OfferStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OfferStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OfferStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OfferStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** A substate for lifeCycleStatus to give a more human readable version of the offer */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private final OfferStatus offerStatus; + + /** + * A substate for lifeCycleStatus to give a more human readable version of the offer + * + * @return the value + */ + public OfferStatus getOfferStatus() { + return offerStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("publisherSummary") + private final PublisherSummary publisherSummary; + + public PublisherSummary getPublisherSummary() { + return publisherSummary; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Offer("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeOfferEnd=").append(String.valueOf(this.timeOfferEnd)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", offerStatus=").append(String.valueOf(this.offerStatus)); + sb.append(", publisherSummary=").append(String.valueOf(this.publisherSummary)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + 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 Offer)) { + return false; + } + + Offer other = (Offer) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeOfferEnd, other.timeOfferEnd) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.offerStatus, other.offerStatus) + && java.util.Objects.equals(this.publisherSummary, other.publisherSummary) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.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.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeOfferEnd == null ? 43 : this.timeOfferEnd.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.offerStatus == null ? 43 : this.offerStatus.hashCode()); + result = + (result * PRIME) + + (this.publisherSummary == null ? 43 : this.publisherSummary.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferCollection.java new file mode 100644 index 00000000000..8d78dcf2edb --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Results of a offers search. Contains boh OfferSummary 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: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OfferCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OfferCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of offers. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of offers. + * + * @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 OfferCollection build() { + OfferCollection model = new OfferCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferCollection 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 offers. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of offers. + * + * @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("OfferCollection("); + 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 OfferCollection)) { + return false; + } + + OfferCollection other = (OfferCollection) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferInternalDetail.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferInternalDetail.java new file mode 100644 index 00000000000..98b3876b474 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferInternalDetail.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * the internal details of an offer that are only visible to the seller
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OfferInternalDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferInternalDetail + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"customFields", "internalNotes"}) + public OfferInternalDetail(java.util.List customFields, String internalNotes) { + super(); + this.customFields = customFields; + this.internalNotes = internalNotes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @param customFields the value to set + * @return this builder + */ + public Builder customFields(java.util.List customFields) { + this.customFields = customFields; + this.__explicitlySet__.add("customFields"); + return this; + } + /** Internal notes only intended for the Publisher of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private String internalNotes; + + /** + * Internal notes only intended for the Publisher of the Offer + * + * @param internalNotes the value to set + * @return this builder + */ + public Builder internalNotes(String internalNotes) { + this.internalNotes = internalNotes; + this.__explicitlySet__.add("internalNotes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OfferInternalDetail build() { + OfferInternalDetail model = + new OfferInternalDetail(this.customFields, this.internalNotes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferInternalDetail model) { + if (model.wasPropertyExplicitlySet("customFields")) { + this.customFields(model.getCustomFields()); + } + if (model.wasPropertyExplicitlySet("internalNotes")) { + this.internalNotes(model.getInternalNotes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private final java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @return the value + */ + public java.util.List getCustomFields() { + return customFields; + } + + /** Internal notes only intended for the Publisher of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private final String internalNotes; + + /** + * Internal notes only intended for the Publisher of the Offer + * + * @return the value + */ + public String getInternalNotes() { + return internalNotes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OfferInternalDetail("); + sb.append("super=").append(super.toString()); + sb.append("customFields=").append(String.valueOf(this.customFields)); + sb.append(", internalNotes=").append(String.valueOf(this.internalNotes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OfferInternalDetail)) { + return false; + } + + OfferInternalDetail other = (OfferInternalDetail) o; + return java.util.Objects.equals(this.customFields, other.customFields) + && java.util.Objects.equals(this.internalNotes, other.internalNotes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.customFields == null ? 43 : this.customFields.hashCode()); + result = + (result * PRIME) + + (this.internalNotes == null ? 43 : this.internalNotes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferSummary.java new file mode 100644 index 00000000000..408defa8cb0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OfferSummary.java @@ -0,0 +1,816 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Summary of the Offers.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OfferSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "buyerCompartmentId", + "sellerCompartmentId", + "timeCreated", + "timeUpdated", + "timeAcceptBy", + "timeAccepted", + "timeStartDate", + "timeOfferEnd", + "lifecycleState", + "lifecycleDetails", + "offerStatus", + "buyerInformation", + "sellerInformation", + "pricing", + "freeformTags", + "definedTags" + }) + public OfferSummary( + String id, + String displayName, + String buyerCompartmentId, + String sellerCompartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeAcceptBy, + java.util.Date timeAccepted, + java.util.Date timeStartDate, + java.util.Date timeOfferEnd, + Offer.LifecycleState lifecycleState, + String lifecycleDetails, + Offer.OfferStatus offerStatus, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + Pricing pricing, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.displayName = displayName; + this.buyerCompartmentId = buyerCompartmentId; + this.sellerCompartmentId = sellerCompartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeAcceptBy = timeAcceptBy; + this.timeAccepted = timeAccepted; + this.timeStartDate = timeStartDate; + this.timeOfferEnd = timeOfferEnd; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.offerStatus = offerStatus; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.pricing = pricing; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer Identifier, can be renamed + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Ocid of the buyer tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * Ocid of the buyer tenancy. + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** Ocid of the seller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private String sellerCompartmentId; + + /** + * Ocid of the seller tenancy. + * + * @param sellerCompartmentId the value to set + * @return this builder + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + this.__explicitlySet__.add("sellerCompartmentId"); + return this; + } + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @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 time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** The time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @param timeOfferEnd the value to set + * @return this builder + */ + public Builder timeOfferEnd(java.util.Date timeOfferEnd) { + this.timeOfferEnd = timeOfferEnd; + this.__explicitlySet__.add("timeOfferEnd"); + return this; + } + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Offer.LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Offer.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The human readable representation of where the offer is at in it's contract lifecycle. + */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private Offer.OfferStatus offerStatus; + + /** + * The human readable representation of where the offer is at in it's contract lifecycle. + * + * @param offerStatus the value to set + * @return this builder + */ + public Builder offerStatus(Offer.OfferStatus offerStatus) { + this.offerStatus = offerStatus; + this.__explicitlySet__.add("offerStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OfferSummary build() { + OfferSummary model = + new OfferSummary( + this.id, + this.displayName, + this.buyerCompartmentId, + this.sellerCompartmentId, + this.timeCreated, + this.timeUpdated, + this.timeAcceptBy, + this.timeAccepted, + this.timeStartDate, + this.timeOfferEnd, + this.lifecycleState, + this.lifecycleDetails, + this.offerStatus, + this.buyerInformation, + this.sellerInformation, + this.pricing, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("sellerCompartmentId")) { + this.sellerCompartmentId(model.getSellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("timeOfferEnd")) { + this.timeOfferEnd(model.getTimeOfferEnd()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("offerStatus")) { + this.offerStatus(model.getOfferStatus()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + 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); + } + + /** Unique identifier that is immutable on creation */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation + * + * @return the value + */ + public String getId() { + return id; + } + + /** Offer Identifier, can be renamed */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer Identifier, can be renamed + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Ocid of the buyer tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * Ocid of the buyer tenancy. + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** Ocid of the seller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("sellerCompartmentId") + private final String sellerCompartmentId; + + /** + * Ocid of the seller tenancy. + * + * @return the value + */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + + /** The time the the Offer was created. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the the Offer was created. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the Offer was updated. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the Offer was updated. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The time the Offer was accepted by the Buyer of the Offer. An RFC3339 formatted datetime + * string + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** The time the accepted Offer will end. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfferEnd") + private final java.util.Date timeOfferEnd; + + /** + * The time the accepted Offer will end. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeOfferEnd() { + return timeOfferEnd; + } + + /** The current state of the Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Offer.LifecycleState lifecycleState; + + /** + * The current state of the Offer. + * + * @return the value + */ + public Offer.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The human readable representation of where the offer is at in it's contract lifecycle. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerStatus") + private final Offer.OfferStatus offerStatus; + + /** + * The human readable representation of where the offer is at in it's contract lifecycle. + * + * @return the value + */ + public Offer.OfferStatus getOfferStatus() { + return offerStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OfferSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", timeOfferEnd=").append(String.valueOf(this.timeOfferEnd)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", offerStatus=").append(String.valueOf(this.offerStatus)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + 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 OfferSummary)) { + return false; + } + + OfferSummary other = (OfferSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.timeOfferEnd, other.timeOfferEnd) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.offerStatus, other.offerStatus) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.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.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.timeOfferEnd == null ? 43 : this.timeOfferEnd.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.offerStatus == null ? 43 : this.offerStatus.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java index 3823d9a56e3..259c7f0bbaf 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/OperationType.java @@ -7,6 +7,11 @@ /** Possible operation types. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateOffer("CREATE_OFFER"), + UpdateOffer("UPDATE_OFFER"), + DeleteOffer("DELETE_OFFER"), + MoveOffer("MOVE_OFFER"), + DeleteOfferAttachment("DELETE_OFFER_ATTACHMENT"), PublishListingRevisionPackage("PUBLISH_LISTING_REVISION_PACKAGE"), UnpublishListingRevisionPackage("UNPUBLISH_LISTING_REVISION_PACKAGE"), PublishListingRevision("PUBLISH_LISTING_REVISION"), diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Pricing.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Pricing.java new file mode 100644 index 00000000000..d0bcef30e7b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/Pricing.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * the pricing information for the offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Pricing.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Pricing extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"currencyType", "totalAmount", "billingCycle"}) + public Pricing(String currencyType, Long totalAmount, BillingCycle billingCycle) { + super(); + this.currencyType = currencyType; + this.totalAmount = totalAmount; + this.billingCycle = billingCycle; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The currency supported for a given Offer, in the format specified by ISO-4217 */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyType") + private String currencyType; + + /** + * The currency supported for a given Offer, in the format specified by ISO-4217 + * + * @param currencyType the value to set + * @return this builder + */ + public Builder currencyType(String currencyType) { + this.currencyType = currencyType; + this.__explicitlySet__.add("currencyType"); + return this; + } + /** The total amount an Offer costs */ + @com.fasterxml.jackson.annotation.JsonProperty("totalAmount") + private Long totalAmount; + + /** + * The total amount an Offer costs + * + * @param totalAmount the value to set + * @return this builder + */ + public Builder totalAmount(Long totalAmount) { + this.totalAmount = totalAmount; + this.__explicitlySet__.add("totalAmount"); + return this; + } + /** The frequency at which the customer is billed for the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("billingCycle") + private BillingCycle billingCycle; + + /** + * The frequency at which the customer is billed for the Offer + * + * @param billingCycle the value to set + * @return this builder + */ + public Builder billingCycle(BillingCycle billingCycle) { + this.billingCycle = billingCycle; + this.__explicitlySet__.add("billingCycle"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Pricing build() { + Pricing model = new Pricing(this.currencyType, this.totalAmount, this.billingCycle); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Pricing model) { + if (model.wasPropertyExplicitlySet("currencyType")) { + this.currencyType(model.getCurrencyType()); + } + if (model.wasPropertyExplicitlySet("totalAmount")) { + this.totalAmount(model.getTotalAmount()); + } + if (model.wasPropertyExplicitlySet("billingCycle")) { + this.billingCycle(model.getBillingCycle()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The currency supported for a given Offer, in the format specified by ISO-4217 */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyType") + private final String currencyType; + + /** + * The currency supported for a given Offer, in the format specified by ISO-4217 + * + * @return the value + */ + public String getCurrencyType() { + return currencyType; + } + + /** The total amount an Offer costs */ + @com.fasterxml.jackson.annotation.JsonProperty("totalAmount") + private final Long totalAmount; + + /** + * The total amount an Offer costs + * + * @return the value + */ + public Long getTotalAmount() { + return totalAmount; + } + + /** The frequency at which the customer is billed for the Offer */ + public enum BillingCycle implements com.oracle.bmc.http.internal.BmcEnum { + OneTime("ONE_TIME"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BillingCycle.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BillingCycle v : BillingCycle.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BillingCycle(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BillingCycle create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BillingCycle', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The frequency at which the customer is billed for the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("billingCycle") + private final BillingCycle billingCycle; + + /** + * The frequency at which the customer is billed for the Offer + * + * @return the value + */ + public BillingCycle getBillingCycle() { + return billingCycle; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Pricing("); + sb.append("super=").append(super.toString()); + sb.append("currencyType=").append(String.valueOf(this.currencyType)); + sb.append(", totalAmount=").append(String.valueOf(this.totalAmount)); + sb.append(", billingCycle=").append(String.valueOf(this.billingCycle)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Pricing)) { + return false; + } + + Pricing other = (Pricing) o; + return java.util.Objects.equals(this.currencyType, other.currencyType) + && java.util.Objects.equals(this.totalAmount, other.totalAmount) + && java.util.Objects.equals(this.billingCycle, other.billingCycle) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.currencyType == null ? 43 : this.currencyType.hashCode()); + result = (result * PRIME) + (this.totalAmount == null ? 43 : this.totalAmount.hashCode()); + result = (result * PRIME) + (this.billingCycle == null ? 43 : this.billingCycle.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ResourceBundle.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ResourceBundle.java new file mode 100644 index 00000000000..5f84b58f239 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ResourceBundle.java @@ -0,0 +1,338 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Resource Bundle associated with an Offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceBundle.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceBundle + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "quantity", "unitOfMeasurement", "resourceIds"}) + public ResourceBundle( + Type type, + Long quantity, + UnitOfMeasurement unitOfMeasurement, + java.util.List resourceIds) { + super(); + this.type = type; + this.quantity = quantity; + this.unitOfMeasurement = unitOfMeasurement; + this.resourceIds = resourceIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The type of resources in the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of resources in the bundle + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The quantity of a resources associated with the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("quantity") + private Long quantity; + + /** + * The quantity of a resources associated with the bundle + * + * @param quantity the value to set + * @return this builder + */ + public Builder quantity(Long quantity) { + this.quantity = quantity; + this.__explicitlySet__.add("quantity"); + return this; + } + /** The unit of measurement for the resource bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("unitOfMeasurement") + private UnitOfMeasurement unitOfMeasurement; + + /** + * The unit of measurement for the resource bundle + * + * @param unitOfMeasurement the value to set + * @return this builder + */ + public Builder unitOfMeasurement(UnitOfMeasurement unitOfMeasurement) { + this.unitOfMeasurement = unitOfMeasurement; + this.__explicitlySet__.add("unitOfMeasurement"); + return this; + } + /** the ids of the resources in the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * the ids of the resources in the Offer + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceBundle build() { + ResourceBundle model = + new ResourceBundle( + this.type, this.quantity, this.unitOfMeasurement, this.resourceIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceBundle model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("quantity")) { + this.quantity(model.getQuantity()); + } + if (model.wasPropertyExplicitlySet("unitOfMeasurement")) { + this.unitOfMeasurement(model.getUnitOfMeasurement()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The type of resources in the bundle */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Listing("LISTING"), + + /** + * This value is used if a service returns a value for this 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; + } + }; + /** The type of resources in the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of resources in the bundle + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The quantity of a resources associated with the bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("quantity") + private final Long quantity; + + /** + * The quantity of a resources associated with the bundle + * + * @return the value + */ + public Long getQuantity() { + return quantity; + } + + /** The unit of measurement for the resource bundle */ + public enum UnitOfMeasurement implements com.oracle.bmc.http.internal.BmcEnum { + OcpuPerHour("OCPU_PER_HOUR"), + InstancePerHour("INSTANCE_PER_HOUR"), + Credits("CREDITS"), + Instances("INSTANCES"), + Nodes("NODES"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UnitOfMeasurement.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (UnitOfMeasurement v : UnitOfMeasurement.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + UnitOfMeasurement(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static UnitOfMeasurement create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'UnitOfMeasurement', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The unit of measurement for the resource bundle */ + @com.fasterxml.jackson.annotation.JsonProperty("unitOfMeasurement") + private final UnitOfMeasurement unitOfMeasurement; + + /** + * The unit of measurement for the resource bundle + * + * @return the value + */ + public UnitOfMeasurement getUnitOfMeasurement() { + return unitOfMeasurement; + } + + /** the ids of the resources in the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * the ids of the resources in the Offer + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceBundle("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", quantity=").append(String.valueOf(this.quantity)); + sb.append(", unitOfMeasurement=").append(String.valueOf(this.unitOfMeasurement)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceBundle)) { + return false; + } + + ResourceBundle other = (ResourceBundle) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.quantity, other.quantity) + && java.util.Objects.equals(this.unitOfMeasurement, other.unitOfMeasurement) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && 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.quantity == null ? 43 : this.quantity.hashCode()); + result = + (result * PRIME) + + (this.unitOfMeasurement == null ? 43 : this.unitOfMeasurement.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SellerInformation.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SellerInformation.java new file mode 100644 index 00000000000..74d031687f1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/SellerInformation.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The information related to the seller of an Offer
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SellerInformation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SellerInformation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"primaryContact", "additionalContacts"}) + public SellerInformation(Contact primaryContact, java.util.List additionalContacts) { + super(); + this.primaryContact = primaryContact; + this.additionalContacts = additionalContacts; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private Contact primaryContact; + + public Builder primaryContact(Contact primaryContact) { + this.primaryContact = primaryContact; + this.__explicitlySet__.add("primaryContact"); + return this; + } + /** the additional contacts associated with the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private java.util.List additionalContacts; + + /** + * the additional contacts associated with the seller + * + * @param additionalContacts the value to set + * @return this builder + */ + public Builder additionalContacts(java.util.List additionalContacts) { + this.additionalContacts = additionalContacts; + this.__explicitlySet__.add("additionalContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SellerInformation build() { + SellerInformation model = + new SellerInformation(this.primaryContact, this.additionalContacts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SellerInformation model) { + if (model.wasPropertyExplicitlySet("primaryContact")) { + this.primaryContact(model.getPrimaryContact()); + } + if (model.wasPropertyExplicitlySet("additionalContacts")) { + this.additionalContacts(model.getAdditionalContacts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("primaryContact") + private final Contact primaryContact; + + public Contact getPrimaryContact() { + return primaryContact; + } + + /** the additional contacts associated with the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private final java.util.List additionalContacts; + + /** + * the additional contacts associated with the seller + * + * @return the value + */ + public java.util.List getAdditionalContacts() { + return additionalContacts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SellerInformation("); + sb.append("super=").append(super.toString()); + sb.append("primaryContact=").append(String.valueOf(this.primaryContact)); + sb.append(", additionalContacts=").append(String.valueOf(this.additionalContacts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SellerInformation)) { + return false; + } + + SellerInformation other = (SellerInformation) o; + return java.util.Objects.equals(this.primaryContact, other.primaryContact) + && java.util.Objects.equals(this.additionalContacts, other.additionalContacts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.primaryContact == null ? 43 : this.primaryContact.hashCode()); + result = + (result * PRIME) + + (this.additionalContacts == null + ? 43 + : this.additionalContacts.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateOfferDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateOfferDetails.java new file mode 100644 index 00000000000..86305476e04 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UpdateOfferDetails.java @@ -0,0 +1,650 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOfferDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOfferDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "buyerCompartmentId", + "description", + "internalNotes", + "timeStartDate", + "duration", + "timeAcceptBy", + "pricing", + "buyerInformation", + "sellerInformation", + "resourceBundles", + "customFields", + "freeformTags", + "definedTags" + }) + public UpdateOfferDetails( + String displayName, + String buyerCompartmentId, + String description, + String internalNotes, + java.util.Date timeStartDate, + String duration, + java.util.Date timeAcceptBy, + Pricing pricing, + BuyerInformation buyerInformation, + SellerInformation sellerInformation, + java.util.List resourceBundles, + java.util.List customFields, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.buyerCompartmentId = buyerCompartmentId; + this.description = description; + this.internalNotes = internalNotes; + this.timeStartDate = timeStartDate; + this.duration = duration; + this.timeAcceptBy = timeAcceptBy; + this.pricing = pricing; + this.buyerInformation = buyerInformation; + this.sellerInformation = sellerInformation; + this.resourceBundles = resourceBundles; + this.customFields = customFields; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offers Identifier + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @param buyerCompartmentId the value to set + * @return this builder + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + this.__explicitlySet__.add("buyerCompartmentId"); + return this; + } + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Offer + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private String internalNotes; + + /** + * Internal notes of the Offer + * + * @param internalNotes the value to set + * @return this builder + */ + public Builder internalNotes(String internalNotes) { + this.internalNotes = internalNotes; + this.__explicitlySet__.add("internalNotes"); + return this; + } + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @param timeStartDate the value to set + * @return this builder + */ + public Builder timeStartDate(java.util.Date timeStartDate) { + this.timeStartDate = timeStartDate; + this.__explicitlySet__.add("timeStartDate"); + return this; + } + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted + * string. + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An + * RFC3339 formatted datetime string + * + * @param timeAcceptBy the value to set + * @return this builder + */ + public Builder timeAcceptBy(java.util.Date timeAcceptBy) { + this.timeAcceptBy = timeAcceptBy; + this.__explicitlySet__.add("timeAcceptBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private Pricing pricing; + + public Builder pricing(Pricing pricing) { + this.pricing = pricing; + this.__explicitlySet__.add("pricing"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private BuyerInformation buyerInformation; + + public Builder buyerInformation(BuyerInformation buyerInformation) { + this.buyerInformation = buyerInformation; + this.__explicitlySet__.add("buyerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private SellerInformation sellerInformation; + + public Builder sellerInformation(SellerInformation sellerInformation) { + this.sellerInformation = sellerInformation; + this.__explicitlySet__.add("sellerInformation"); + return this; + } + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @param resourceBundles the value to set + * @return this builder + */ + public Builder resourceBundles(java.util.List resourceBundles) { + this.resourceBundles = resourceBundles; + this.__explicitlySet__.add("resourceBundles"); + return this; + } + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @param customFields the value to set + * @return this builder + */ + public Builder customFields(java.util.List customFields) { + this.customFields = customFields; + this.__explicitlySet__.add("customFields"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOfferDetails build() { + UpdateOfferDetails model = + new UpdateOfferDetails( + this.displayName, + this.buyerCompartmentId, + this.description, + this.internalNotes, + this.timeStartDate, + this.duration, + this.timeAcceptBy, + this.pricing, + this.buyerInformation, + this.sellerInformation, + this.resourceBundles, + this.customFields, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOfferDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentId")) { + this.buyerCompartmentId(model.getBuyerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("internalNotes")) { + this.internalNotes(model.getInternalNotes()); + } + if (model.wasPropertyExplicitlySet("timeStartDate")) { + this.timeStartDate(model.getTimeStartDate()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("timeAcceptBy")) { + this.timeAcceptBy(model.getTimeAcceptBy()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("buyerInformation")) { + this.buyerInformation(model.getBuyerInformation()); + } + if (model.wasPropertyExplicitlySet("sellerInformation")) { + this.sellerInformation(model.getSellerInformation()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + if (model.wasPropertyExplicitlySet("customFields")) { + this.customFields(model.getCustomFields()); + } + 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); + } + + /** Offers Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offers Identifier + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** OCID of the buyer's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentId") + private final String buyerCompartmentId; + + /** + * OCID of the buyer's tenancy (root compartment). + * + * @return the value + */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + + /** Description of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Offer + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Internal notes of the Offer */ + @com.fasterxml.jackson.annotation.JsonProperty("internalNotes") + private final String internalNotes; + + /** + * Internal notes of the Offer + * + * @return the value + */ + public String getInternalNotes() { + return internalNotes; + } + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStartDate") + private final java.util.Date timeStartDate; + + /** + * The time the Offer will become active after it has been accepted by the Buyer. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStartDate() { + return timeStartDate; + } + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration the Offer will be active after its start date. An ISO8601 extended formatted string. + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAcceptBy") + private final java.util.Date timeAcceptBy; + + /** + * The time the Offer must be accepted by the Buyer before the Offer becomes invalid. An RFC3339 + * formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeAcceptBy() { + return timeAcceptBy; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + @com.fasterxml.jackson.annotation.JsonProperty("buyerInformation") + private final BuyerInformation buyerInformation; + + public BuyerInformation getBuyerInformation() { + return buyerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sellerInformation") + private final SellerInformation sellerInformation; + + public SellerInformation getSellerInformation() { + return sellerInformation; + } + + /** A list of Resource Bundles associated with an Offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of Resource Bundles associated with an Offer. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** A list of key value pairs specified by the seller */ + @com.fasterxml.jackson.annotation.JsonProperty("customFields") + private final java.util.List customFields; + + /** + * A list of key value pairs specified by the seller + * + * @return the value + */ + public java.util.List getCustomFields() { + return customFields; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOfferDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", internalNotes=").append(String.valueOf(this.internalNotes)); + sb.append(", timeStartDate=").append(String.valueOf(this.timeStartDate)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", timeAcceptBy=").append(String.valueOf(this.timeAcceptBy)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", buyerInformation=").append(String.valueOf(this.buyerInformation)); + sb.append(", sellerInformation=").append(String.valueOf(this.sellerInformation)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + sb.append(", customFields=").append(String.valueOf(this.customFields)); + 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 UpdateOfferDetails)) { + return false; + } + + UpdateOfferDetails other = (UpdateOfferDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.internalNotes, other.internalNotes) + && java.util.Objects.equals(this.timeStartDate, other.timeStartDate) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.timeAcceptBy, other.timeAcceptBy) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.buyerInformation, other.buyerInformation) + && java.util.Objects.equals(this.sellerInformation, other.sellerInformation) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals(this.customFields, other.customFields) + && 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.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.internalNotes == null ? 43 : this.internalNotes.hashCode()); + result = + (result * PRIME) + + (this.timeStartDate == null ? 43 : this.timeStartDate.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.timeAcceptBy == null ? 43 : this.timeAcceptBy.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.buyerInformation == null ? 43 : this.buyerInformation.hashCode()); + result = + (result * PRIME) + + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = (result * PRIME) + (this.customFields == null ? 43 : this.customFields.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateAttachmentRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateAttachmentRequest.java new file mode 100644 index 00000000000..d02e4cea16d --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateAttachmentRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use CreateAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateAttachmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails> { + + /** Details for the new Attachment. */ + private com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails + createAttachmentDetails; + + /** Details for the new Attachment. */ + public com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails + getCreateAttachmentDetails() { + return createAttachmentDetails; + } + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails getBody$() { + return createAttachmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateAttachmentRequest, + com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Attachment. */ + private com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails + createAttachmentDetails = null; + + /** + * Details for the new Attachment. + * + * @param createAttachmentDetails the value to set + * @return this builder instance + */ + public Builder createAttachmentDetails( + com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails + createAttachmentDetails) { + this.createAttachmentDetails = createAttachmentDetails; + return this; + } + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(CreateAttachmentRequest o) { + createAttachmentDetails(o.getCreateAttachmentDetails()); + offerId(o.getOfferId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateAttachmentRequest 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 CreateAttachmentRequest + */ + public CreateAttachmentRequest build() { + CreateAttachmentRequest 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.marketplacepublisher.model.CreateAttachmentDetails body) { + createAttachmentDetails(body); + return this; + } + + /** + * Build the instance of CreateAttachmentRequest 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 CreateAttachmentRequest + */ + public CreateAttachmentRequest buildWithoutInvocationCallback() { + CreateAttachmentRequest request = new CreateAttachmentRequest(); + request.createAttachmentDetails = createAttachmentDetails; + request.offerId = offerId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateAttachmentRequest(createAttachmentDetails, offerId, 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() + .createAttachmentDetails(createAttachmentDetails) + .offerId(offerId) + .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(",createAttachmentDetails=").append(String.valueOf(this.createAttachmentDetails)); + sb.append(",offerId=").append(String.valueOf(this.offerId)); + 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 CreateAttachmentRequest)) { + return false; + } + + CreateAttachmentRequest other = (CreateAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createAttachmentDetails, other.createAttachmentDetails) + && java.util.Objects.equals(this.offerId, other.offerId) + && 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.createAttachmentDetails == null + ? 43 + : this.createAttachmentDetails.hashCode()); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateOfferRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateOfferRequest.java new file mode 100644 index 00000000000..ee1ec356619 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateOfferRequest.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use CreateOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateOfferRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails> { + + /** Details for the new Offer. */ + private com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails createOfferDetails; + + /** Details for the new Offer. */ + public com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails getCreateOfferDetails() { + return createOfferDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails getBody$() { + return createOfferDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOfferRequest, + com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Offer. */ + private com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails createOfferDetails = + null; + + /** + * Details for the new Offer. + * + * @param createOfferDetails the value to set + * @return this builder instance + */ + public Builder createOfferDetails( + com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails createOfferDetails) { + this.createOfferDetails = createOfferDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(CreateOfferRequest o) { + createOfferDetails(o.getCreateOfferDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOfferRequest 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 CreateOfferRequest + */ + public CreateOfferRequest build() { + CreateOfferRequest 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.marketplacepublisher.model.CreateOfferDetails body) { + createOfferDetails(body); + return this; + } + + /** + * Build the instance of CreateOfferRequest 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 CreateOfferRequest + */ + public CreateOfferRequest buildWithoutInvocationCallback() { + CreateOfferRequest request = new CreateOfferRequest(); + request.createOfferDetails = createOfferDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOfferRequest(createOfferDetails, 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() + .createOfferDetails(createOfferDetails) + .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(",createOfferDetails=").append(String.valueOf(this.createOfferDetails)); + 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 CreateOfferRequest)) { + return false; + } + + CreateOfferRequest other = (CreateOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createOfferDetails, other.createOfferDetails) + && 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.createOfferDetails == null + ? 43 + : this.createOfferDetails.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteAttachmentRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteAttachmentRequest.java new file mode 100644 index 00000000000..085d7926777 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteAttachmentRequest.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use DeleteAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteAttachmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** unique Offer identifier */ + private String attachmentId; + + /** unique Offer identifier */ + public String getAttachmentId() { + return attachmentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteAttachmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** unique Offer identifier */ + private String attachmentId = null; + + /** + * unique Offer identifier + * + * @param attachmentId the value to set + * @return this builder instance + */ + public Builder attachmentId(String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteAttachmentRequest o) { + offerId(o.getOfferId()); + attachmentId(o.getAttachmentId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteAttachmentRequest 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 DeleteAttachmentRequest + */ + public DeleteAttachmentRequest build() { + DeleteAttachmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteAttachmentRequest 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 DeleteAttachmentRequest + */ + public DeleteAttachmentRequest buildWithoutInvocationCallback() { + DeleteAttachmentRequest request = new DeleteAttachmentRequest(); + request.offerId = offerId; + request.attachmentId = attachmentId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteAttachmentRequest(offerId, attachmentId, 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() + .offerId(offerId) + .attachmentId(attachmentId) + .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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",attachmentId=").append(String.valueOf(this.attachmentId)); + 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 DeleteAttachmentRequest)) { + return false; + } + + DeleteAttachmentRequest other = (DeleteAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.attachmentId, other.attachmentId) + && 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.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.attachmentId == null ? 43 : this.attachmentId.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteOfferRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteOfferRequest.java new file mode 100644 index 00000000000..a30e99443df --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteOfferRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use DeleteOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteOfferRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteOfferRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteOfferRequest o) { + offerId(o.getOfferId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteOfferRequest 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 DeleteOfferRequest + */ + public DeleteOfferRequest build() { + DeleteOfferRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteOfferRequest 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 DeleteOfferRequest + */ + public DeleteOfferRequest buildWithoutInvocationCallback() { + DeleteOfferRequest request = new DeleteOfferRequest(); + request.offerId = offerId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteOfferRequest(offerId, 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().offerId(offerId).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(",offerId=").append(String.valueOf(this.offerId)); + 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 DeleteOfferRequest)) { + return false; + } + + DeleteOfferRequest other = (DeleteOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && 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.offerId == null ? 43 : this.offerId.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAttachmentContentRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAttachmentContentRequest.java new file mode 100644 index 00000000000..3a13b777094 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAttachmentContentRequest.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAttachmentContentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentContentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** unique Offer identifier */ + private String attachmentId; + + /** unique Offer identifier */ + public String getAttachmentId() { + return attachmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetAttachmentContentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** unique Offer identifier */ + private String attachmentId = null; + + /** + * unique Offer identifier + * + * @param attachmentId the value to set + * @return this builder instance + */ + public Builder attachmentId(String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetAttachmentContentRequest o) { + offerId(o.getOfferId()); + attachmentId(o.getAttachmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAttachmentContentRequest 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 GetAttachmentContentRequest + */ + public GetAttachmentContentRequest build() { + GetAttachmentContentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAttachmentContentRequest 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 GetAttachmentContentRequest + */ + public GetAttachmentContentRequest buildWithoutInvocationCallback() { + GetAttachmentContentRequest request = new GetAttachmentContentRequest(); + request.offerId = offerId; + request.attachmentId = attachmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetAttachmentContentRequest(offerId, attachmentId, 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().offerId(offerId).attachmentId(attachmentId).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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",attachmentId=").append(String.valueOf(this.attachmentId)); + 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 GetAttachmentContentRequest)) { + return false; + } + + GetAttachmentContentRequest other = (GetAttachmentContentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.attachmentId, other.attachmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.attachmentId == null ? 43 : this.attachmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAttachmentRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAttachmentRequest.java new file mode 100644 index 00000000000..6e688885e5d --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAttachmentRequest.java @@ -0,0 +1,216 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** unique Offer identifier */ + private String attachmentId; + + /** unique Offer identifier */ + public String getAttachmentId() { + return attachmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetAttachmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** unique Offer identifier */ + private String attachmentId = null; + + /** + * unique Offer identifier + * + * @param attachmentId the value to set + * @return this builder instance + */ + public Builder attachmentId(String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetAttachmentRequest o) { + offerId(o.getOfferId()); + attachmentId(o.getAttachmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAttachmentRequest 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 GetAttachmentRequest + */ + public GetAttachmentRequest build() { + GetAttachmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAttachmentRequest 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 GetAttachmentRequest + */ + public GetAttachmentRequest buildWithoutInvocationCallback() { + GetAttachmentRequest request = new GetAttachmentRequest(); + request.offerId = offerId; + request.attachmentId = attachmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetAttachmentRequest(offerId, attachmentId, 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().offerId(offerId).attachmentId(attachmentId).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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",attachmentId=").append(String.valueOf(this.attachmentId)); + 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 GetAttachmentRequest)) { + return false; + } + + GetAttachmentRequest other = (GetAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.attachmentId, other.attachmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.attachmentId == null ? 43 : this.attachmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetOfferInternalDetailRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetOfferInternalDetailRequest.java new file mode 100644 index 00000000000..2ccf73d09b3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetOfferInternalDetailRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use + * GetOfferInternalDetailRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferInternalDetailRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetOfferInternalDetailRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetOfferInternalDetailRequest o) { + offerId(o.getOfferId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOfferInternalDetailRequest 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 GetOfferInternalDetailRequest + */ + public GetOfferInternalDetailRequest build() { + GetOfferInternalDetailRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOfferInternalDetailRequest 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 GetOfferInternalDetailRequest + */ + public GetOfferInternalDetailRequest buildWithoutInvocationCallback() { + GetOfferInternalDetailRequest request = new GetOfferInternalDetailRequest(); + request.offerId = offerId; + request.opcRequestId = opcRequestId; + return request; + // new GetOfferInternalDetailRequest(offerId, 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().offerId(offerId).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(",offerId=").append(String.valueOf(this.offerId)); + 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 GetOfferInternalDetailRequest)) { + return false; + } + + GetOfferInternalDetailRequest other = (GetOfferInternalDetailRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetOfferRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetOfferRequest.java new file mode 100644 index 00000000000..e818b870280 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetOfferRequest.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetOfferRequest o) { + offerId(o.getOfferId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOfferRequest 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 GetOfferRequest + */ + public GetOfferRequest build() { + GetOfferRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOfferRequest 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 GetOfferRequest + */ + public GetOfferRequest buildWithoutInvocationCallback() { + GetOfferRequest request = new GetOfferRequest(); + request.offerId = offerId; + request.opcRequestId = opcRequestId; + return request; + // new GetOfferRequest(offerId, 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().offerId(offerId).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(",offerId=").append(String.valueOf(this.offerId)); + 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 GetOfferRequest)) { + return false; + } + + GetOfferRequest other = (GetOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerId == null ? 43 : this.offerId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAttachmentsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAttachmentsRequest.java new file mode 100644 index 00000000000..dc827a866bf --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAttachmentsRequest.java @@ -0,0 +1,508 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use ListAttachmentsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAttachmentsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId; + + /** The ID of the buyer compartment this offer is associated with. */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId; + + /** The ID of the seller compartment this offer is associated with. */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.marketplacepublisher.model.Attachment.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.marketplacepublisher.model.Attachment.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique Offer identifier */ + private String id; + + /** unique Offer identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplacepublisher.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAttachmentsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId = null; + + /** + * The ID of the buyer compartment this offer is associated with. + * + * @param buyerCompartmentId the value to set + * @return this builder instance + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + return this; + } + + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId = null; + + /** + * The ID of the seller compartment this offer is associated with. + * + * @param sellerCompartmentId the value to set + * @return this builder instance + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplacepublisher.model.Attachment.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.marketplacepublisher.model.Attachment.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique Offer identifier */ + private String id = null; + + /** + * unique Offer identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ListAttachmentsRequest o) { + offerId(o.getOfferId()); + buyerCompartmentId(o.getBuyerCompartmentId()); + sellerCompartmentId(o.getSellerCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + 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 ListAttachmentsRequest 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 ListAttachmentsRequest + */ + public ListAttachmentsRequest build() { + ListAttachmentsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAttachmentsRequest 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 ListAttachmentsRequest + */ + public ListAttachmentsRequest buildWithoutInvocationCallback() { + ListAttachmentsRequest request = new ListAttachmentsRequest(); + request.offerId = offerId; + request.buyerCompartmentId = buyerCompartmentId; + request.sellerCompartmentId = sellerCompartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListAttachmentsRequest(offerId, buyerCompartmentId, sellerCompartmentId, + // lifecycleState, displayName, id, 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() + .offerId(offerId) + .buyerCompartmentId(buyerCompartmentId) + .sellerCompartmentId(sellerCompartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(",sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListAttachmentsRequest)) { + return false; + } + + ListAttachmentsRequest other = (ListAttachmentsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.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.offerId == null ? 43 : this.offerId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListOffersRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListOffersRequest.java new file mode 100644 index 00000000000..cd11badfab3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListOffersRequest.java @@ -0,0 +1,480 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use ListOffersRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListOffersRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId; + + /** The ID of the buyer compartment this offer is associated with. */ + public String getBuyerCompartmentId() { + return buyerCompartmentId; + } + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId; + + /** The ID of the seller compartment this offer is associated with. */ + public String getSellerCompartmentId() { + return sellerCompartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.marketplacepublisher.model.Offer.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.marketplacepublisher.model.Offer.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique Offer identifier */ + private String id; + + /** unique Offer identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.marketplacepublisher.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy 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; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOffersRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the buyer compartment this offer is associated with. */ + private String buyerCompartmentId = null; + + /** + * The ID of the buyer compartment this offer is associated with. + * + * @param buyerCompartmentId the value to set + * @return this builder instance + */ + public Builder buyerCompartmentId(String buyerCompartmentId) { + this.buyerCompartmentId = buyerCompartmentId; + return this; + } + + /** The ID of the seller compartment this offer is associated with. */ + private String sellerCompartmentId = null; + + /** + * The ID of the seller compartment this offer is associated with. + * + * @param sellerCompartmentId the value to set + * @return this builder instance + */ + public Builder sellerCompartmentId(String sellerCompartmentId) { + this.sellerCompartmentId = sellerCompartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplacepublisher.model.Offer.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.marketplacepublisher.model.Offer.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique Offer identifier */ + private String id = null; + + /** + * unique Offer identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.marketplacepublisher.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(ListOffersRequest o) { + buyerCompartmentId(o.getBuyerCompartmentId()); + sellerCompartmentId(o.getSellerCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + 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 ListOffersRequest 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 ListOffersRequest + */ + public ListOffersRequest build() { + ListOffersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOffersRequest 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 ListOffersRequest + */ + public ListOffersRequest buildWithoutInvocationCallback() { + ListOffersRequest request = new ListOffersRequest(); + request.buyerCompartmentId = buyerCompartmentId; + request.sellerCompartmentId = sellerCompartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListOffersRequest(buyerCompartmentId, sellerCompartmentId, lifecycleState, + // displayName, id, 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() + .buyerCompartmentId(buyerCompartmentId) + .sellerCompartmentId(sellerCompartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .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(",buyerCompartmentId=").append(String.valueOf(this.buyerCompartmentId)); + sb.append(",sellerCompartmentId=").append(String.valueOf(this.sellerCompartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListOffersRequest)) { + return false; + } + + ListOffersRequest other = (ListOffersRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.buyerCompartmentId, other.buyerCompartmentId) + && java.util.Objects.equals(this.sellerCompartmentId, other.sellerCompartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.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.buyerCompartmentId == null + ? 43 + : this.buyerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.sellerCompartmentId == null + ? 43 + : this.sellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateOfferRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateOfferRequest.java new file mode 100644 index 00000000000..76a5bd28698 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/UpdateOfferRequest.java @@ -0,0 +1,296 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use UpdateOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateOfferRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails> { + + /** unique Offer identifier */ + private String offerId; + + /** unique Offer identifier */ + public String getOfferId() { + return offerId; + } + /** The information to be updated. */ + private com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails updateOfferDetails; + + /** The information to be updated. */ + public com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails getUpdateOfferDetails() { + return updateOfferDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails getBody$() { + return updateOfferDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOfferRequest, + com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Offer identifier */ + private String offerId = null; + + /** + * unique Offer identifier + * + * @param offerId the value to set + * @return this builder instance + */ + public Builder offerId(String offerId) { + this.offerId = offerId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails updateOfferDetails = + null; + + /** + * The information to be updated. + * + * @param updateOfferDetails the value to set + * @return this builder instance + */ + public Builder updateOfferDetails( + com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails updateOfferDetails) { + this.updateOfferDetails = updateOfferDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateOfferRequest o) { + offerId(o.getOfferId()); + updateOfferDetails(o.getUpdateOfferDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOfferRequest 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 UpdateOfferRequest + */ + public UpdateOfferRequest build() { + UpdateOfferRequest 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.marketplacepublisher.model.UpdateOfferDetails body) { + updateOfferDetails(body); + return this; + } + + /** + * Build the instance of UpdateOfferRequest 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 UpdateOfferRequest + */ + public UpdateOfferRequest buildWithoutInvocationCallback() { + UpdateOfferRequest request = new UpdateOfferRequest(); + request.offerId = offerId; + request.updateOfferDetails = updateOfferDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOfferRequest(offerId, updateOfferDetails, 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() + .offerId(offerId) + .updateOfferDetails(updateOfferDetails) + .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(",offerId=").append(String.valueOf(this.offerId)); + sb.append(",updateOfferDetails=").append(String.valueOf(this.updateOfferDetails)); + 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 UpdateOfferRequest)) { + return false; + } + + UpdateOfferRequest other = (UpdateOfferRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerId, other.offerId) + && java.util.Objects.equals(this.updateOfferDetails, other.updateOfferDetails) + && 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.offerId == null ? 43 : this.offerId.hashCode()); + result = + (result * PRIME) + + (this.updateOfferDetails == null + ? 43 + : this.updateOfferDetails.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateAttachmentResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateAttachmentResponse.java new file mode 100644 index 00000000000..3d2aface192 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateAttachmentResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateAttachmentResponse 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 Attachment} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.Attachment getAttachment() { + return attachment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "attachment" + }) + private CreateAttachmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.Attachment attachment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.attachment = attachment; + } + + 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 Attachment} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @param attachment the value to set + * @return this builder + */ + public Builder attachment(com.oracle.bmc.marketplacepublisher.model.Attachment attachment) { + this.attachment = attachment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateAttachmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attachment(o.getAttachment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateAttachmentResponse build() { + return new CreateAttachmentResponse( + __httpStatusCode__, headers, etag, opcRequestId, attachment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",attachment=").append(String.valueOf(attachment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAttachmentResponse)) { + return false; + } + + CreateAttachmentResponse other = (CreateAttachmentResponse) 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.attachment, other.attachment); + } + + @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.attachment == null ? 43 : this.attachment.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateOfferResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateOfferResponse.java new file mode 100644 index 00000000000..206a2245faf --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreateOfferResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateOfferResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code Offer} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.Offer getOffer() { + return offer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "offer" + }) + private CreateOfferResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.marketplacepublisher.model.Offer offer) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.offer = offer; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code Offer} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @param offer the value to set + * @return this builder + */ + public Builder offer(com.oracle.bmc.marketplacepublisher.model.Offer offer) { + this.offer = offer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateOfferResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + offer(o.getOffer()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateOfferResponse build() { + return new CreateOfferResponse(__httpStatusCode__, headers, opcRequestId, etag, offer); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",offer=").append(String.valueOf(offer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOfferResponse)) { + return false; + } + + CreateOfferResponse other = (CreateOfferResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.offer, other.offer); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.offer == null ? 43 : this.offer.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteAttachmentResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteAttachmentResponse.java new file mode 100644 index 00000000000..d0dc9a521fc --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteAttachmentResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteAttachmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteAttachmentResponse( + 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; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteAttachmentResponse 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 DeleteAttachmentResponse build() { + return new DeleteAttachmentResponse( + __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 DeleteAttachmentResponse)) { + return false; + } + + DeleteAttachmentResponse other = (DeleteAttachmentResponse) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteOfferResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteOfferResponse.java new file mode 100644 index 00000000000..7ac9aee61de --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/DeleteOfferResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteOfferResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteOfferResponse( + 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; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteOfferResponse 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 DeleteOfferResponse build() { + return new DeleteOfferResponse( + __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 DeleteOfferResponse)) { + return false; + } + + DeleteOfferResponse other = (DeleteOfferResponse) 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAttachmentContentResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAttachmentContentResponse.java new file mode 100644 index 00000000000..ae2b9bba751 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAttachmentContentResponse.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentContentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "inputStream" + }) + private GetAttachmentContentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAttachmentContentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAttachmentContentResponse build() { + return new GetAttachmentContentResponse( + __httpStatusCode__, headers, opcRequestId, inputStream); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAttachmentContentResponse)) { + return false; + } + + GetAttachmentContentResponse other = (GetAttachmentContentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAttachmentResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAttachmentResponse.java new file mode 100644 index 00000000000..55d2e3df738 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAttachmentResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetAttachmentResponse 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 Attachment} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.Attachment getAttachment() { + return attachment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "attachment" + }) + private GetAttachmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.Attachment attachment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.attachment = attachment; + } + + 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 Attachment} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Attachment attachment; + + /** + * The returned {@code Attachment} instance. + * + * @param attachment the value to set + * @return this builder + */ + public Builder attachment(com.oracle.bmc.marketplacepublisher.model.Attachment attachment) { + this.attachment = attachment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAttachmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attachment(o.getAttachment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAttachmentResponse build() { + return new GetAttachmentResponse( + __httpStatusCode__, headers, etag, opcRequestId, attachment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",attachment=").append(String.valueOf(attachment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAttachmentResponse)) { + return false; + } + + GetAttachmentResponse other = (GetAttachmentResponse) 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.attachment, other.attachment); + } + + @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.attachment == null ? 43 : this.attachment.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetOfferInternalDetailResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetOfferInternalDetailResponse.java new file mode 100644 index 00000000000..4d8037b7ab7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetOfferInternalDetailResponse.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferInternalDetailResponse 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 OfferInternalDetail} instance. */ + private com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail offerInternalDetail; + + /** + * The returned {@code OfferInternalDetail} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail getOfferInternalDetail() { + return offerInternalDetail; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offerInternalDetail" + }) + private GetOfferInternalDetailResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail offerInternalDetail) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offerInternalDetail = offerInternalDetail; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetOfferInternalDetailResponse> { + 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 OfferInternalDetail} instance. */ + private com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail offerInternalDetail; + + /** + * The returned {@code OfferInternalDetail} instance. + * + * @param offerInternalDetail the value to set + * @return this builder + */ + public Builder offerInternalDetail( + com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail offerInternalDetail) { + this.offerInternalDetail = offerInternalDetail; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOfferInternalDetailResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offerInternalDetail(o.getOfferInternalDetail()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOfferInternalDetailResponse build() { + return new GetOfferInternalDetailResponse( + __httpStatusCode__, headers, etag, opcRequestId, offerInternalDetail); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offerInternalDetail=").append(String.valueOf(offerInternalDetail)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOfferInternalDetailResponse)) { + return false; + } + + GetOfferInternalDetailResponse other = (GetOfferInternalDetailResponse) 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.offerInternalDetail, other.offerInternalDetail); + } + + @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.offerInternalDetail == null + ? 43 + : this.offerInternalDetail.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetOfferResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetOfferResponse.java new file mode 100644 index 00000000000..591057218c2 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetOfferResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferResponse 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 Offer} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.Offer getOffer() { + return offer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offer" + }) + private GetOfferResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.Offer offer) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offer = offer; + } + + 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 Offer} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @param offer the value to set + * @return this builder + */ + public Builder offer(com.oracle.bmc.marketplacepublisher.model.Offer offer) { + this.offer = offer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOfferResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offer(o.getOffer()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOfferResponse build() { + return new GetOfferResponse(__httpStatusCode__, headers, etag, opcRequestId, offer); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offer=").append(String.valueOf(offer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOfferResponse)) { + return false; + } + + GetOfferResponse other = (GetOfferResponse) 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.offer, other.offer); + } + + @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.offer == null ? 43 : this.offer.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAttachmentsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAttachmentsResponse.java new file mode 100644 index 00000000000..93e4d02dbcb --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAttachmentsResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAttachmentsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code AttachmentCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AttachmentCollection attachmentCollection; + + /** + * The returned {@code AttachmentCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AttachmentCollection + getAttachmentCollection() { + return attachmentCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "attachmentCollection" + }) + private ListAttachmentsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AttachmentCollection attachmentCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.attachmentCollection = attachmentCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code AttachmentCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.AttachmentCollection attachmentCollection; + + /** + * The returned {@code AttachmentCollection} instance. + * + * @param attachmentCollection the value to set + * @return this builder + */ + public Builder attachmentCollection( + com.oracle.bmc.marketplacepublisher.model.AttachmentCollection + attachmentCollection) { + this.attachmentCollection = attachmentCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAttachmentsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + attachmentCollection(o.getAttachmentCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAttachmentsResponse build() { + return new ListAttachmentsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, attachmentCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",attachmentCollection=").append(String.valueOf(attachmentCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAttachmentsResponse)) { + return false; + } + + ListAttachmentsResponse other = (ListAttachmentsResponse) 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.attachmentCollection, other.attachmentCollection); + } + + @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.attachmentCollection == null + ? 43 + : this.attachmentCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListOffersResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListOffersResponse.java new file mode 100644 index 00000000000..61cfb6ae672 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListOffersResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListOffersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code OfferCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.OfferCollection offerCollection; + + /** + * The returned {@code OfferCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.OfferCollection getOfferCollection() { + return offerCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "offerCollection" + }) + private ListOffersResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.OfferCollection offerCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.offerCollection = offerCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code OfferCollection} instance. */ + private com.oracle.bmc.marketplacepublisher.model.OfferCollection offerCollection; + + /** + * The returned {@code OfferCollection} instance. + * + * @param offerCollection the value to set + * @return this builder + */ + public Builder offerCollection( + com.oracle.bmc.marketplacepublisher.model.OfferCollection offerCollection) { + this.offerCollection = offerCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOffersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + offerCollection(o.getOfferCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOffersResponse build() { + return new ListOffersResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, offerCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offerCollection=").append(String.valueOf(offerCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOffersResponse)) { + return false; + } + + ListOffersResponse other = (ListOffersResponse) 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.offerCollection, other.offerCollection); + } + + @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.offerCollection == null ? 43 : this.offerCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateOfferResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateOfferResponse.java new file mode 100644 index 00000000000..425aa1144aa --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateOfferResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateOfferResponse 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 Offer} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.Offer getOffer() { + return offer; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offer" + }) + private UpdateOfferResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplacepublisher.model.Offer offer) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offer = offer; + } + + 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 Offer} instance. */ + private com.oracle.bmc.marketplacepublisher.model.Offer offer; + + /** + * The returned {@code Offer} instance. + * + * @param offer the value to set + * @return this builder + */ + public Builder offer(com.oracle.bmc.marketplacepublisher.model.Offer offer) { + this.offer = offer; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateOfferResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offer(o.getOffer()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateOfferResponse build() { + return new UpdateOfferResponse(__httpStatusCode__, headers, etag, opcRequestId, offer); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offer=").append(String.valueOf(offer)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOfferResponse)) { + return false; + } + + UpdateOfferResponse other = (UpdateOfferResponse) 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.offer, other.offer); + } + + @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.offer == null ? 43 : this.offer.hashCode()); + return result; + } +} diff --git a/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json b/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json index 1bb52fd2439..546078353a2 100644 --- a/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json +++ b/bmc-marketplacepublisher/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-marketplacepublisher/reflect-config.json @@ -58,6 +58,74 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Attachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Attachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Attachment$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Attachment$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AttachmentCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AttachmentCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AttachmentSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.AttachmentSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.BuyerInformation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.BuyerInformation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.Category", @@ -148,6 +216,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Contact", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Contact$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.ContainerImageArtifact", @@ -197,6 +279,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateAttachmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.CreateContainerImageArtifactDetails", @@ -316,6 +412,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CreateOfferDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.CreateRelatedDocumentAttachmentDetails", @@ -386,6 +496,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomField", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.CustomField$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.HelmChartImageDetails", @@ -780,6 +904,74 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Offer", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Offer$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Offer$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Offer$OfferStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.OfferCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.OfferCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.OfferInternalDetail$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.OfferSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.OfferSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.OperationStatus", @@ -818,6 +1010,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Pricing", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Pricing$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.Pricing$BillingCycle", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.PrivateOfferAccountDetails", @@ -980,6 +1192,32 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.ResourceBundle", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.ResourceBundle$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.ResourceBundle$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.ResourceBundle$UnitOfMeasurement", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.ScreenShotAttachment", @@ -994,6 +1232,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.SellerInformation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.SellerInformation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.SortOrder", @@ -1262,6 +1514,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplacepublisher.model.UpdateOfferDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplacepublisher.model.UpdateRelatedDocumentAttachmentDetails", diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 16ca92f8cf9..1ea7f32f273 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 87defe6c295..ee76de750e5 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index b3827a4ca91..3441a48c06e 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index e2a98b905ea..aa10c51e07b 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 0730685c9b2..4f69cc2680e 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/CreateListenerDetails.java b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/CreateListenerDetails.java index 53740a488ea..f61a8bc9793 100644 --- a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/CreateListenerDetails.java +++ b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/CreateListenerDetails.java @@ -31,20 +31,23 @@ public final class CreateListenerDetails "defaultBackendSetName", "port", "protocol", - "ipVersion" + "ipVersion", + "isPpv2Enabled" }) public CreateListenerDetails( String name, String defaultBackendSetName, Integer port, ListenerProtocols protocol, - IpVersion ipVersion) { + IpVersion ipVersion, + Boolean isPpv2Enabled) { super(); this.name = name; this.defaultBackendSetName = defaultBackendSetName; this.port = port; this.protocol = protocol; this.ipVersion = ipVersion; + this.isPpv2Enabled = isPpv2Enabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -158,6 +161,21 @@ public Builder ipVersion(IpVersion ipVersion) { this.__explicitlySet__.add("ipVersion"); return this; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @param isPpv2Enabled the value to set + * @return this builder + */ + public Builder isPpv2Enabled(Boolean isPpv2Enabled) { + this.isPpv2Enabled = isPpv2Enabled; + this.__explicitlySet__.add("isPpv2Enabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -169,7 +187,8 @@ public CreateListenerDetails build() { this.defaultBackendSetName, this.port, this.protocol, - this.ipVersion); + this.ipVersion, + this.isPpv2Enabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -193,6 +212,9 @@ public Builder copy(CreateListenerDetails model) { if (model.wasPropertyExplicitlySet("ipVersion")) { this.ipVersion(model.getIpVersion()); } + if (model.wasPropertyExplicitlySet("isPpv2Enabled")) { + this.isPpv2Enabled(model.getIsPpv2Enabled()); + } return this; } } @@ -305,6 +327,19 @@ public IpVersion getIpVersion() { return ipVersion; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private final Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @return the value + */ + public Boolean getIsPpv2Enabled() { + return isPpv2Enabled; + } + @Override public String toString() { return this.toString(true); @@ -325,6 +360,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", port=").append(String.valueOf(this.port)); sb.append(", protocol=").append(String.valueOf(this.protocol)); sb.append(", ipVersion=").append(String.valueOf(this.ipVersion)); + sb.append(", isPpv2Enabled=").append(String.valueOf(this.isPpv2Enabled)); sb.append(")"); return sb.toString(); } @@ -344,6 +380,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.protocol, other.protocol) && java.util.Objects.equals(this.ipVersion, other.ipVersion) + && java.util.Objects.equals(this.isPpv2Enabled, other.isPpv2Enabled) && super.equals(other); } @@ -360,6 +397,9 @@ public int hashCode() { result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); result = (result * PRIME) + (this.ipVersion == null ? 43 : this.ipVersion.hashCode()); + result = + (result * PRIME) + + (this.isPpv2Enabled == null ? 43 : this.isPpv2Enabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/Listener.java b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/Listener.java index 4e4387d6ab2..7a8862118e0 100644 --- a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/Listener.java +++ b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/Listener.java @@ -29,20 +29,23 @@ public final class Listener extends com.oracle.bmc.http.client.internal.Explicit "defaultBackendSetName", "port", "protocol", - "ipVersion" + "ipVersion", + "isPpv2Enabled" }) public Listener( String name, String defaultBackendSetName, Integer port, ListenerProtocols protocol, - IpVersion ipVersion) { + IpVersion ipVersion, + Boolean isPpv2Enabled) { super(); this.name = name; this.defaultBackendSetName = defaultBackendSetName; this.port = port; this.protocol = protocol; this.ipVersion = ipVersion; + this.isPpv2Enabled = isPpv2Enabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -156,6 +159,21 @@ public Builder ipVersion(IpVersion ipVersion) { this.__explicitlySet__.add("ipVersion"); return this; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @param isPpv2Enabled the value to set + * @return this builder + */ + public Builder isPpv2Enabled(Boolean isPpv2Enabled) { + this.isPpv2Enabled = isPpv2Enabled; + this.__explicitlySet__.add("isPpv2Enabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -167,7 +185,8 @@ public Listener build() { this.defaultBackendSetName, this.port, this.protocol, - this.ipVersion); + this.ipVersion, + this.isPpv2Enabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -191,6 +210,9 @@ public Builder copy(Listener model) { if (model.wasPropertyExplicitlySet("ipVersion")) { this.ipVersion(model.getIpVersion()); } + if (model.wasPropertyExplicitlySet("isPpv2Enabled")) { + this.isPpv2Enabled(model.getIsPpv2Enabled()); + } return this; } } @@ -303,6 +325,19 @@ public IpVersion getIpVersion() { return ipVersion; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private final Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @return the value + */ + public Boolean getIsPpv2Enabled() { + return isPpv2Enabled; + } + @Override public String toString() { return this.toString(true); @@ -323,6 +358,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", port=").append(String.valueOf(this.port)); sb.append(", protocol=").append(String.valueOf(this.protocol)); sb.append(", ipVersion=").append(String.valueOf(this.ipVersion)); + sb.append(", isPpv2Enabled=").append(String.valueOf(this.isPpv2Enabled)); sb.append(")"); return sb.toString(); } @@ -342,6 +378,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.protocol, other.protocol) && java.util.Objects.equals(this.ipVersion, other.ipVersion) + && java.util.Objects.equals(this.isPpv2Enabled, other.isPpv2Enabled) && super.equals(other); } @@ -358,6 +395,9 @@ public int hashCode() { result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); result = (result * PRIME) + (this.ipVersion == null ? 43 : this.ipVersion.hashCode()); + result = + (result * PRIME) + + (this.isPpv2Enabled == null ? 43 : this.isPpv2Enabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerDetails.java b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerDetails.java index 0b372f6014b..16030fc7b99 100644 --- a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerDetails.java +++ b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerDetails.java @@ -30,20 +30,23 @@ public final class ListenerDetails "defaultBackendSetName", "ipVersion", "port", - "protocol" + "protocol", + "isPpv2Enabled" }) public ListenerDetails( String name, String defaultBackendSetName, IpVersion ipVersion, Integer port, - ListenerProtocols protocol) { + ListenerProtocols protocol, + Boolean isPpv2Enabled) { super(); this.name = name; this.defaultBackendSetName = defaultBackendSetName; this.ipVersion = ipVersion; this.port = port; this.protocol = protocol; + this.isPpv2Enabled = isPpv2Enabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -157,6 +160,21 @@ public Builder protocol(ListenerProtocols protocol) { this.__explicitlySet__.add("protocol"); return this; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @param isPpv2Enabled the value to set + * @return this builder + */ + public Builder isPpv2Enabled(Boolean isPpv2Enabled) { + this.isPpv2Enabled = isPpv2Enabled; + this.__explicitlySet__.add("isPpv2Enabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -168,7 +186,8 @@ public ListenerDetails build() { this.defaultBackendSetName, this.ipVersion, this.port, - this.protocol); + this.protocol, + this.isPpv2Enabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -192,6 +211,9 @@ public Builder copy(ListenerDetails model) { if (model.wasPropertyExplicitlySet("protocol")) { this.protocol(model.getProtocol()); } + if (model.wasPropertyExplicitlySet("isPpv2Enabled")) { + this.isPpv2Enabled(model.getIsPpv2Enabled()); + } return this; } } @@ -304,6 +326,19 @@ public ListenerProtocols getProtocol() { return protocol; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private final Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @return the value + */ + public Boolean getIsPpv2Enabled() { + return isPpv2Enabled; + } + @Override public String toString() { return this.toString(true); @@ -324,6 +359,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", ipVersion=").append(String.valueOf(this.ipVersion)); sb.append(", port=").append(String.valueOf(this.port)); sb.append(", protocol=").append(String.valueOf(this.protocol)); + sb.append(", isPpv2Enabled=").append(String.valueOf(this.isPpv2Enabled)); sb.append(")"); return sb.toString(); } @@ -343,6 +379,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.ipVersion, other.ipVersion) && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.protocol, other.protocol) + && java.util.Objects.equals(this.isPpv2Enabled, other.isPpv2Enabled) && super.equals(other); } @@ -359,6 +396,9 @@ public int hashCode() { result = (result * PRIME) + (this.ipVersion == null ? 43 : this.ipVersion.hashCode()); result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); + result = + (result * PRIME) + + (this.isPpv2Enabled == null ? 43 : this.isPpv2Enabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerSummary.java b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerSummary.java index fc2350e0534..5298641f34b 100644 --- a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerSummary.java +++ b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/ListenerSummary.java @@ -30,20 +30,23 @@ public final class ListenerSummary "defaultBackendSetName", "port", "protocol", - "ipVersion" + "ipVersion", + "isPpv2Enabled" }) public ListenerSummary( String name, String defaultBackendSetName, Integer port, ListenerProtocols protocol, - IpVersion ipVersion) { + IpVersion ipVersion, + Boolean isPpv2Enabled) { super(); this.name = name; this.defaultBackendSetName = defaultBackendSetName; this.port = port; this.protocol = protocol; this.ipVersion = ipVersion; + this.isPpv2Enabled = isPpv2Enabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -157,6 +160,21 @@ public Builder ipVersion(IpVersion ipVersion) { this.__explicitlySet__.add("ipVersion"); return this; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @param isPpv2Enabled the value to set + * @return this builder + */ + public Builder isPpv2Enabled(Boolean isPpv2Enabled) { + this.isPpv2Enabled = isPpv2Enabled; + this.__explicitlySet__.add("isPpv2Enabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -168,7 +186,8 @@ public ListenerSummary build() { this.defaultBackendSetName, this.port, this.protocol, - this.ipVersion); + this.ipVersion, + this.isPpv2Enabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -192,6 +211,9 @@ public Builder copy(ListenerSummary model) { if (model.wasPropertyExplicitlySet("ipVersion")) { this.ipVersion(model.getIpVersion()); } + if (model.wasPropertyExplicitlySet("isPpv2Enabled")) { + this.isPpv2Enabled(model.getIsPpv2Enabled()); + } return this; } } @@ -304,6 +326,19 @@ public IpVersion getIpVersion() { return ipVersion; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private final Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @return the value + */ + public Boolean getIsPpv2Enabled() { + return isPpv2Enabled; + } + @Override public String toString() { return this.toString(true); @@ -324,6 +359,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", port=").append(String.valueOf(this.port)); sb.append(", protocol=").append(String.valueOf(this.protocol)); sb.append(", ipVersion=").append(String.valueOf(this.ipVersion)); + sb.append(", isPpv2Enabled=").append(String.valueOf(this.isPpv2Enabled)); sb.append(")"); return sb.toString(); } @@ -343,6 +379,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.protocol, other.protocol) && java.util.Objects.equals(this.ipVersion, other.ipVersion) + && java.util.Objects.equals(this.isPpv2Enabled, other.isPpv2Enabled) && super.equals(other); } @@ -359,6 +396,9 @@ public int hashCode() { result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); result = (result * PRIME) + (this.ipVersion == null ? 43 : this.ipVersion.hashCode()); + result = + (result * PRIME) + + (this.isPpv2Enabled == null ? 43 : this.isPpv2Enabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/UpdateListenerDetails.java b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/UpdateListenerDetails.java index da8088c27c4..dfafe22d6ef 100644 --- a/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/UpdateListenerDetails.java +++ b/bmc-networkloadbalancer/src/main/java/com/oracle/bmc/networkloadbalancer/model/UpdateListenerDetails.java @@ -26,17 +26,25 @@ public final class UpdateListenerDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"defaultBackendSetName", "port", "protocol", "ipVersion"}) + @java.beans.ConstructorProperties({ + "defaultBackendSetName", + "port", + "protocol", + "ipVersion", + "isPpv2Enabled" + }) public UpdateListenerDetails( String defaultBackendSetName, Integer port, ListenerProtocols protocol, - IpVersion ipVersion) { + IpVersion ipVersion, + Boolean isPpv2Enabled) { super(); this.defaultBackendSetName = defaultBackendSetName; this.port = port; this.protocol = protocol; this.ipVersion = ipVersion; + this.isPpv2Enabled = isPpv2Enabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -129,6 +137,21 @@ public Builder ipVersion(IpVersion ipVersion) { this.__explicitlySet__.add("ipVersion"); return this; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @param isPpv2Enabled the value to set + * @return this builder + */ + public Builder isPpv2Enabled(Boolean isPpv2Enabled) { + this.isPpv2Enabled = isPpv2Enabled; + this.__explicitlySet__.add("isPpv2Enabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -136,7 +159,11 @@ public Builder ipVersion(IpVersion ipVersion) { public UpdateListenerDetails build() { UpdateListenerDetails model = new UpdateListenerDetails( - this.defaultBackendSetName, this.port, this.protocol, this.ipVersion); + this.defaultBackendSetName, + this.port, + this.protocol, + this.ipVersion, + this.isPpv2Enabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -157,6 +184,9 @@ public Builder copy(UpdateListenerDetails model) { if (model.wasPropertyExplicitlySet("ipVersion")) { this.ipVersion(model.getIpVersion()); } + if (model.wasPropertyExplicitlySet("isPpv2Enabled")) { + this.isPpv2Enabled(model.getIsPpv2Enabled()); + } return this; } } @@ -250,6 +280,19 @@ public IpVersion getIpVersion() { return ipVersion; } + /** Property to enable/disable PPv2 feature for this listener. */ + @com.fasterxml.jackson.annotation.JsonProperty("isPpv2Enabled") + private final Boolean isPpv2Enabled; + + /** + * Property to enable/disable PPv2 feature for this listener. + * + * @return the value + */ + public Boolean getIsPpv2Enabled() { + return isPpv2Enabled; + } + @Override public String toString() { return this.toString(true); @@ -269,6 +312,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", port=").append(String.valueOf(this.port)); sb.append(", protocol=").append(String.valueOf(this.protocol)); sb.append(", ipVersion=").append(String.valueOf(this.ipVersion)); + sb.append(", isPpv2Enabled=").append(String.valueOf(this.isPpv2Enabled)); sb.append(")"); return sb.toString(); } @@ -287,6 +331,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.protocol, other.protocol) && java.util.Objects.equals(this.ipVersion, other.ipVersion) + && java.util.Objects.equals(this.isPpv2Enabled, other.isPpv2Enabled) && super.equals(other); } @@ -302,6 +347,9 @@ public int hashCode() { result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); result = (result * PRIME) + (this.ipVersion == null ? 43 : this.ipVersion.hashCode()); + result = + (result * PRIME) + + (this.isPpv2Enabled == null ? 43 : this.isPpv2Enabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index fed20bd7ef5..0de0720951f 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index e2a4d638319..e78a7fced38 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.41.1 + 3.41.2 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.41.1 + 3.41.2 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 43e7fbdb848..647af00a8c1 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.41.1 + 3.41.2 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.41.1 + 3.41.2 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index e28ea6c6144..3f00429037f 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.41.1 + 3.41.2 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 8a19292eec1..102a1c54d98 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index bce256fba0b..8f43c879724 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index b4ba044ada3..c65f721f54d 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 3c770e9aebf..3a75e248b86 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 8d37746f8d4..b692a39e054 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 39046e2600e..476fe441099 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index fb3653a06f3..b6ba96d0a12 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index f46d45f29ba..689caeb9451 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 0db1a54d730..137bd2aa18e 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 89374737b80..076cd24b12d 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index b28a0fb8cf6..a891d24bea6 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index ce5247db76d..38f664d4a37 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 12d3944d5f3..48833eb6fce 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 96b221d6654..9ecaf35f327 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index f922248bb76..ec93b63f178 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 176dd8af59b..e93a1719e9c 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index a581b0d52c3..e3ece6f86ba 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 090559b549c..a4943317d57 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 624739ade14..336aabd8f42 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index 12dcd48b786..fd66cafa3ed 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.41.1 + 3.41.2 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.41.1 + 3.41.2 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.1 + 3.41.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 201658212c7..2dd7df1383e 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.41.1 + 3.41.2 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.41.1 + 3.41.2 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.1 + 3.41.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.41.1 + 3.41.2 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 27c7d8d8382..909db0c6891 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.41.1 + 3.41.2 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -89,14 +89,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.41.1 + 3.41.2 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.41.1 + 3.41.2 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 7e77614e116..830bb448edd 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.41.1 + 3.41.2 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index fa7ecdfe40b..cceef26c849 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index eee5e07d431..d58085fcfec 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 91619b2200b..e1eb35e0ffb 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 38ec9d4f70a..5db9ddcd579 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index caf0552a043..c4219d6506a 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index aa840a55ead..2b4214034ff 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 8d477a6b4b9..48db5f5a0d1 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 8bbfb4eca8e..28fcebdb2bf 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index a8f10ffb84f..a68aa2a0fa8 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 48058ad8283..704593e9fc0 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 4a9b2c4e6f0..a90f8490e15 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index f5e12109a3f..2c9e8a629d8 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index 85b7c02d212..1f30303e96b 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.41.1 + 3.41.2 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 810224b5b7c..d9f4bc9a73f 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 80423759363..79d5ee2c432 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 1a5b1c916c0..e223e2ee349 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index c0f5edf5fcf..8ede9a8bf1d 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 99907bb7a1f..d02d2fae1a3 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 9f48bb5e5a1..1f032faee43 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index a2daca4668f..bd803cb5e09 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 5b6c34303cb..7b7bd6f2d7a 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.41.1 + 3.41.2 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 5801a1f223c..be888059cd2 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index f4dd750299e..b262e5c0380 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index e381ef6c785..19c8f5613d1 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 16ba8363615..58995dd880f 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 093341dbe2c..cced1d23f4e 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 7a20d426e30..99d89be8b34 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 470b730fbf1..ebfeaa4926e 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 61efa86141c..16b55df8b66 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.41.1 + 3.41.2 diff --git a/pom.xml b/pom.xml index f10ee7cfafe..07cfb60eb52 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.41.1 + 3.41.2 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -771,5 +771,6 @@ bmc-desktops bmc-emaildataplane bmc-clusterplacementgroups + bmc-marketplaceprivateoffer \ No newline at end of file