From d1f1404298e9ea27ca89e6465ffdb9d680d22842 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 4 Aug 2026 16:07:45 +0000 Subject: [PATCH] Releasing version 3.94.0 --- CHANGELOG.md | 19 +- bmc-accessgovernancecp/pom.xml | 4 +- bmc-addons/bmc-adk/pom.xml | 2 +- bmc-addons/bmc-aispeech-realtime/pom.xml | 6 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../bmc-apache-connector-provider/pom.xml | 4 +- bmc-addons/bmc-oke-workload-identity/pom.xml | 10 +- .../bmc-resteasy-client-configurator/pom.xml | 4 +- .../bmc-sasl-oke-workload-identity/pom.xml | 6 +- bmc-addons/bmc-sasl/pom.xml | 4 +- bmc-addons/bmc-sse-support-jersey3/pom.xml | 8 +- bmc-addons/bmc-sse-support/pom.xml | 8 +- bmc-addons/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- bmc-aidataplatform/pom.xml | 4 +- bmc-aidocument/pom.xml | 4 +- bmc-ailanguage/pom.xml | 4 +- bmc-aispeech/pom.xml | 4 +- bmc-aivision/pom.xml | 4 +- bmc-analytics/pom.xml | 4 +- bmc-announcementsservice/pom.xml | 4 +- bmc-apiaccesscontrol/pom.xml | 4 +- bmc-apigateway/pom.xml | 4 +- bmc-apiplatform/pom.xml | 4 +- bmc-apmconfig/pom.xml | 4 +- bmc-apmcontrolplane/pom.xml | 4 +- bmc-apmsynthetics/pom.xml | 4 +- bmc-apmtraces/pom.xml | 4 +- bmc-appmgmtcontrol/pom.xml | 4 +- bmc-artifacts/pom.xml | 4 +- bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bastion/pom.xml | 4 +- bmc-batch/pom.xml | 4 +- bmc-bds/pom.xml | 4 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 376 +++--- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-containerregistry/pom.xml | 4 +- bmc-core/pom.xml | 6 +- bmc-costad/pom.xml | 4 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- .../com/oracle/bmc/database/Database.java | 37 + .../oracle/bmc/database/DatabaseAsync.java | 38 + .../bmc/database/DatabaseAsyncClient.java | 91 ++ .../oracle/bmc/database/DatabaseClient.java | 81 ++ .../bmc/database/DatabasePaginators.java | 159 +++ .../oracle/bmc/database/DatabaseWaiters.java | 128 ++ .../model/AutoFailoverConfiguration.java | 210 +++ .../AutonomousContainerDatabaseBackup.java | 159 ++- ...onomousContainerDatabaseBackupSummary.java | 104 +- .../model/AutonomousDatabaseInBackup.java | 111 +- .../AutonomousDatabaseInBackupCollection.java | 142 ++ .../AutonomousDatabaseInBackupSummary.java | 292 +++++ ...CreateAutonomousContainerDatabaseBase.java | 4 + ...ousContainerDatabaseFromBackupDetails.java | 211 ++- ...nerDatabaseFromBackupTimestampDetails.java | 1075 +++++++++++++++ .../database/model/CreateStandbyDetails.java | 43 +- .../bmc/database/model/DataGuardGroup.java | 98 +- .../database/model/DataGuardGroupMember.java | 188 ++- .../database/model/UpdateDatabaseDetails.java | 400 +++++- ...onomousContainerDatabaseBackupRequest.java | 217 ++++ .../ListAutonomousDatabaseBackupsRequest.java | 45 +- ...onomousContainerDatabaseBackupRequest.java | 360 ++++++ .../requests/ListDatabasesRequest.java | 136 +- ...nomousContainerDatabaseBackupResponse.java | 191 +++ ...nomousContainerDatabaseBackupResponse.java | 246 ++++ .../oci-java-sdk-database/reflect-config.json | 122 ++ bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-databasetoolsruntime/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- bmc-datacc/pom.xml | 4 +- bmc-dataflow/pom.xml | 4 +- bmc-dataintegration/pom.xml | 4 +- bmc-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- bmc-datascience/pom.xml | 4 +- bmc-dblm/pom.xml | 4 +- bmc-dbmulticloud/pom.xml | 4 +- bmc-delegateaccesscontrol/pom.xml | 4 +- bmc-demandsignal/pom.xml | 4 +- bmc-desktops/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-dif/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- bmc-distributeddatabase/pom.xml | 4 +- bmc-dns/pom.xml | 6 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 6 +- bmc-filestorage/pom.xml | 4 +- bmc-fleetappsmanagement/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 4 +- bmc-functions/pom.xml | 4 +- bmc-fusionapps/pom.xml | 4 +- bmc-gdp/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- bmc-generativeaiagent/pom.xml | 4 +- bmc-generativeaiagentruntime/pom.xml | 4 +- bmc-generativeaidata/pom.xml | 4 +- bmc-generativeaiinference/pom.xml | 4 +- bmc-genericartifactscontent/pom.xml | 4 +- bmc-goldengate/pom.xml | 4 +- bmc-governancerulescontrolplane/pom.xml | 4 +- bmc-healthchecks/pom.xml | 4 +- bmc-identity/pom.xml | 4 +- bmc-identitydataplane/pom.xml | 4 +- bmc-identitydomains/pom.xml | 4 +- bmc-integration/pom.xml | 4 +- bmc-iot/pom.xml | 4 +- bmc-jms/pom.xml | 4 +- bmc-jmsjavadownloads/pom.xml | 4 +- bmc-jmsutils/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/pom.xml | 4 +- bmc-limitsincrease/pom.xml | 4 +- bmc-loadbalancer/pom.xml | 4 +- bmc-lockbox/pom.xml | 4 +- bmc-loganalytics/pom.xml | 4 +- bmc-logging/pom.xml | 4 +- bmc-loggingingestion/pom.xml | 4 +- bmc-loggingsearch/pom.xml | 4 +- bmc-lustrefilestorage/pom.xml | 4 +- bmc-managedkafka/pom.xml | 4 +- bmc-managementagent/pom.xml | 4 +- bmc-managementdashboard/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-marketplaceprivateoffer/pom.xml | 4 +- .../bmc/marketplaceprivateoffer/Offer.java | 32 + .../marketplaceprivateoffer/OfferAsync.java | 31 + .../OfferAsyncClient.java | 56 + .../marketplaceprivateoffer/OfferClient.java | 52 + .../marketplaceprivateoffer/OfferQuote.java | 229 ++++ .../OfferQuoteAsync.java | 206 +++ .../OfferQuoteAsyncClient.java | 542 ++++++++ .../OfferQuoteClient.java | 598 +++++++++ .../OfferQuotePaginators.java | 160 +++ .../OfferQuoteWaiters.java | 131 ++ .../QuoteAttachment.java | 164 +++ .../QuoteAttachmentAsync.java | 145 +++ .../QuoteAttachmentAsyncClient.java | 462 +++++++ .../QuoteAttachmentClient.java | 531 ++++++++ .../QuoteAttachmentPaginators.java | 166 +++ .../QuoteAttachmentWaiters.java | 140 ++ .../model/Attachment.java | 90 +- .../model/AttachmentSummary.java | 90 +- .../model/Contact.java | 26 +- .../model/CreateOfferDetails.java | 78 ++ .../model/CreateOfferQuoteDetails.java | 634 +++++++++ .../model/CreateQuoteAttachmentDetails.java | 252 ++++ .../model/CustomField.java | 18 +- .../model/IsvInformation.java | 162 +++ .../marketplaceprivateoffer/model/Offer.java | 136 +- .../model/OfferInternalDetail.java | 47 +- .../model/OfferQuote.java | 1148 +++++++++++++++++ .../model/OfferQuoteCollection.java | 133 ++ .../model/OfferQuoteInternalDetail.java | 133 ++ .../model/OfferQuoteSummary.java | 924 +++++++++++++ .../model/OfferSummary.java | 90 +- .../model/Pricing.java | 28 +- .../model/QuoteAttachment.java | 864 +++++++++++++ .../model/QuoteAttachmentCollection.java | 133 ++ .../model/QuoteAttachmentSummary.java | 722 +++++++++++ .../model/ResellerInformation.java | 164 +++ .../model/ResourceBundle.java | 38 +- .../model/RespondToOfferQuoteDetails.java | 121 ++ .../model/UpdateOfferQuoteDetails.java | 592 +++++++++ .../requests/CreateOfferQuoteRequest.java | 280 ++++ .../CreateQuoteAttachmentRequest.java | 310 +++++ .../requests/DeleteOfferQuoteRequest.java | 234 ++++ .../DeleteQuoteAttachmentRequest.java | 269 ++++ .../GetOfferQuoteInternalDetailRequest.java | 192 +++ .../requests/GetOfferQuoteRequest.java | 190 +++ .../GetQuoteAttachmentContentRequest.java | 223 ++++ .../requests/GetQuoteAttachmentRequest.java | 221 ++++ .../requests/ListOfferQuotesRequest.java | 478 +++++++ .../requests/ListQuoteAttachmentsRequest.java | 510 ++++++++ .../requests/RespondToOfferQuoteRequest.java | 354 +++++ .../requests/SendOfferQuoteRequest.java | 288 +++++ .../requests/SendOfferRequest.java | 234 ++++ .../requests/UpdateOfferQuoteRequest.java | 302 +++++ .../requests/WithdrawOfferQuoteRequest.java | 349 +++++ .../requests/WithdrawOfferRequest.java | 234 ++++ .../responses/CreateOfferQuoteResponse.java | 335 +++++ .../CreateQuoteAttachmentResponse.java | 337 +++++ .../responses/DeleteOfferQuoteResponse.java | 185 +++ .../DeleteQuoteAttachmentResponse.java | 185 +++ .../GetOfferQuoteInternalDetailResponse.java | 220 ++++ .../responses/GetOfferQuoteResponse.java | 209 +++ .../GetQuoteAttachmentContentResponse.java | 176 +++ .../responses/GetQuoteAttachmentResponse.java | 211 +++ .../responses/ListOfferQuotesResponse.java | 229 ++++ .../ListQuoteAttachmentsResponse.java | 235 ++++ .../RespondToOfferQuoteResponse.java | 185 +++ .../responses/SendOfferQuoteResponse.java | 185 +++ .../responses/SendOfferResponse.java | 185 +++ .../responses/UpdateOfferQuoteResponse.java | 252 ++++ .../responses/WithdrawOfferQuoteResponse.java | 185 +++ .../responses/WithdrawOfferResponse.java | 185 +++ .../reflect-config.json | 218 ++++ bmc-marketplacepublisher/pom.xml | 4 +- bmc-mediaservices/pom.xml | 4 +- bmc-mngdmac/pom.xml | 4 +- bmc-modeldeployment/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-multicloud/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-onesubscription/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-opa/pom.xml | 4 +- bmc-opensearch/pom.xml | 4 +- .../model/UpdateOpensearchClusterDetails.java | 38 + bmc-operatoraccesscontrol/pom.xml | 4 +- bmc-opsi/pom.xml | 4 +- bmc-optimizer/pom.xml | 4 +- bmc-osmanagementhub/pom.xml | 4 +- bmc-ospgateway/pom.xml | 4 +- bmc-osubbillingschedule/pom.xml | 4 +- bmc-osuborganizationsubscription/pom.xml | 4 +- bmc-osubsubscription/pom.xml | 4 +- bmc-osubusage/pom.xml | 4 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-psa/pom.xml | 4 +- bmc-psql/pom.xml | 4 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- bmc-redis/pom.xml | 4 +- bmc-resourceanalytics/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcescheduler/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-securityattribute/pom.xml | 4 +- bmc-self/pom.xml | 4 +- .../oracle/bmc/self/PartnerIntegeration.java | 82 ++ .../bmc/self/PartnerIntegerationAsync.java | 53 + .../self/PartnerIntegerationAsyncClient.java | 118 +- .../bmc/self/PartnerIntegerationClient.java | 108 +- .../self/PartnerIntegerationPaginators.java | 114 ++ .../com/oracle/bmc/self/Subscription.java | 18 + .../oracle/bmc/self/SubscriptionAsync.java | 18 + .../bmc/self/SubscriptionAsyncClient.java | 38 + .../oracle/bmc/self/SubscriptionClient.java | 35 + .../oracle/bmc/self/model/BillingDetails.java | 130 +- .../bmc/self/model/BillingFrequency.java | 58 + .../self/model/CancelSubscriptionDetails.java | 133 ++ .../CreateSubscriptionUsageRecordDetails.java | 893 +++++++++++++ .../bmc/self/model/LifecycleDetailsEnum.java | 3 + .../com/oracle/bmc/self/model/MetricType.java | 3 +- .../oracle/bmc/self/model/OperationType.java | 1 + .../com/oracle/bmc/self/model/Partner.java | 468 +++++++ .../bmc/self/model/PartnerCollection.java | 133 ++ .../oracle/bmc/self/model/PartnerSummary.java | 423 ++++++ .../oracle/bmc/self/model/PricingPlan.java | 120 +- ...SubmitSubscriptionUsageRecordsDetails.java | 151 +++ .../bmc/self/model/SubscriptionDetails.java | 24 +- .../oracle/bmc/self/model/UsageDimension.java | 380 ++++++ .../requests/CancelSubscriptionRequest.java | 366 ++++++ .../self/requests/ListPartnersRequest.java | 417 ++++++ .../requests/ListSubscriptionsRequest.java | 1 - .../requests/ListingSubscriptionsRequest.java | 1 - .../SubmitSubscriptionUsageBatchRequest.java | 366 ++++++ ...SubmitSubscriptionUsageRecordsRequest.java | 337 +++++ .../responses/CancelSubscriptionResponse.java | 208 +++ .../self/responses/ListPartnersResponse.java | 223 ++++ .../SubmitSubscriptionUsageBatchResponse.java | 190 +++ ...ubmitSubscriptionUsageRecordsResponse.java | 138 ++ .../oci-java-sdk-self/reflect-config.json | 126 +- bmc-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-stackmonitoring/pom.xml | 4 +- bmc-streaming/pom.xml | 4 +- bmc-tenantmanagercontrolplane/pom.xml | 4 +- bmc-threatintelligence/pom.xml | 4 +- bmc-usage/pom.xml | 4 +- bmc-usageapi/pom.xml | 4 +- bmc-vault/pom.xml | 6 +- bmc-vbsinst/pom.xml | 4 +- bmc-visualbuilder/pom.xml | 4 +- bmc-vnmonitoring/pom.xml | 4 +- bmc-vulnerabilityscanning/pom.xml | 4 +- bmc-waa/pom.xml | 4 +- bmc-waas/pom.xml | 4 +- bmc-waf/pom.xml | 4 +- bmc-wlms/pom.xml | 4 +- bmc-workrequests/pom.xml | 4 +- bmc-zpr/pom.xml | 4 +- pom.xml | 2 +- 335 files changed, 29882 insertions(+), 809 deletions(-) create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/AutoFailoverConfiguration.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupCollection.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupTimestampDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetAutonomousContainerDatabaseBackupRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetAutonomousContainerDatabaseBackupResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuote.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsync.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsyncClient.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteClient.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuotePaginators.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteWaiters.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachment.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsync.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsyncClient.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentClient.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentPaginators.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentWaiters.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateOfferQuoteDetails.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateQuoteAttachmentDetails.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/IsvInformation.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuote.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteCollection.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteInternalDetail.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteSummary.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachment.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachmentCollection.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachmentSummary.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/ResellerInformation.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/RespondToOfferQuoteDetails.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UpdateOfferQuoteDetails.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateOfferQuoteRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateQuoteAttachmentRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteOfferQuoteRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteQuoteAttachmentRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferQuoteInternalDetailRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferQuoteRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetQuoteAttachmentContentRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetQuoteAttachmentRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListOfferQuotesRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListQuoteAttachmentsRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/RespondToOfferQuoteRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferQuoteRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/UpdateOfferQuoteRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/WithdrawOfferQuoteRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/WithdrawOfferRequest.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateOfferQuoteResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateQuoteAttachmentResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteOfferQuoteResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteQuoteAttachmentResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferQuoteInternalDetailResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferQuoteResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetQuoteAttachmentContentResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetQuoteAttachmentResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListOfferQuotesResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListQuoteAttachmentsResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/RespondToOfferQuoteResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/SendOfferQuoteResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/SendOfferResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/UpdateOfferQuoteResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/WithdrawOfferQuoteResponse.java create mode 100644 bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/WithdrawOfferResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/BillingFrequency.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/CancelSubscriptionDetails.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/Partner.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/PartnerCollection.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/PartnerSummary.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/model/UsageDimension.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/CancelSubscriptionRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/ListPartnersRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageRecordsRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/CancelSubscriptionResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/ListPartnersResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageBatchResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageRecordsResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index b99525ef875..bae9c22f75a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). -## Unreleased -### Breaking Changes -- Apache configurator add-ons now propagate `SSLInitializationException` when TLS initialization fails instead of silently registering a plaintext socket factory for `https`. Applications that require plaintext transport must explicitly provide a connection manager; see [PlainConnectionSocketFactoryExample.java](bmc-other-examples/bmc-jersey-examples/src/main/java/PlainConnectionSocketFactoryExample.java) and [PlainConnectionSocketFactoryExample.java](bmc-other-examples/bmc-jersey3-examples/src/main/java/PlainConnectionSocketFactoryExample.java) (Jersey 3). + +## 3.94.0 - 2026-08-04 +### Added +- Support for cloning autonomous container databases from backups by timestamp and retrieving backup details in the Database service +- Support for managing automatic failover for existing data guard configurations with multiple standby databases in the Database service +- Support for creating and managing private-offer quotes and quote attachments in the Marketplace Private Offer service +- Support for usage-based SaaS listings, subscription usage reporting, and subscription cancellation in the Service Enablement Lifecycle Framework service +- Support for network security group IDs on private endpoints during open search cluster updates in the OpenSearch service +- Support for database tools MCP server, DB API gateway configuration, and IAM authentication APIs in the Database Tools service    + +### Breaking Changes +- The return type of method `public com.oracle.bmc.self.model.PricingPlan$BillingFrequency getBillingFrequency()` has been changed to `com.oracle.bmc.self.model.BillingFrequency` in the model `com.oracle.bmc.self.model.PricingPlan` in the Service Enablement Lifecycle Framework service +- The return type of method `public com.oracle.bmc.self.model.BillingDetails getBillingDetails()` has been changed to `java.util.List` in the model `com.oracle.bmc.self.model.SubscriptionDetails` in the Service Enablement Lifecycle Framework service +- Class `com.oracle.bmc.self.model.PricingPlan$BillingFrequency` has been removed from the Service Enablement Lifecycle Framework service +- Enum value `SelfTokenId` has been removed from the enum class `SortBy` in request classes `com.oracle.bmc.self.requests.ListSubscriptionsRequest` and `com.oracle.bmc.self.requests.ListingSubscriptionsRequest` in the Service Enablement Lifecycle Framework service ## 3.93.0 - 2026-07-28 ### Added @@ -28,6 +40,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ### Breaking Changes - The field `compartmentId` has been made required in the requests `ListApiMetadataByEntityTypesRequest`, `ListApiMetadataRequest`, `ListPrivilegedApiControlsRequest`, `ListPrivilegedApiRequestsRequest`, and `ListWorkRequestsRequest` in the Oracle API Access Control service - The field `compartmentId` has been made required in the model `CreatePrivilegedApiRequestDetails` in the Oracle API Access Control service +- Apache configurator add-ons now propagate `SSLInitializationException` when TLS initialization fails instead of silently registering a plaintext socket factory for `https`. Applications that require plaintext transport must explicitly provide a connection manager; see [PlainConnectionSocketFactoryExample.java](bmc-other-examples/bmc-jersey-examples/src/main/java/PlainConnectionSocketFactoryExample.java) and [PlainConnectionSocketFactoryExample.java](bmc-other-examples/bmc-jersey3-examples/src/main/java/PlainConnectionSocketFactoryExample.java) (Jersey 3) ## 3.92.1 - 2026-07-21 ### Added diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 2d79c59b041..54415e1289f 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index 36df4d55f87..2006d3a97de 100644 --- a/bmc-addons/bmc-adk/pom.xml +++ b/bmc-addons/bmc-adk/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.93.0 + 3.94.0 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index 599e692708e..2208ffc7ae3 100644 --- a/bmc-addons/bmc-aispeech-realtime/pom.xml +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.93.0 + 3.94.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index e406aaa8256..0784e3cf5b7 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.93.0 + 3.94.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.93.0 + 3.94.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 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 81eb3372fd2..a19d4468947 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.93.0 + 3.94.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.93.0 + 3.94.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.93.0 + 3.94.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index c5ebac43aa8..8a26487c96c 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.93.0 + 3.94.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 769200f09c5..9ab409f9981 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.93.0 + 3.94.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.93.0 + 3.94.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.93.0 + 3.94.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.93.0 + 3.94.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 1a1750d6ea0..8b31ac5e9b8 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.93.0 + 3.94.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ 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 0c14c594f6f..fa60105b4b4 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.93.0 + 3.94.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.93.0 + 3.94.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.93.0 + 3.94.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 9016f25efd1..760fb3a7ef0 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.93.0 + 3.94.0 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 7ca0861fb8e..f8718def37b 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.93.0 + 3.94.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.93.0 + 3.94.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.93.0 + 3.94.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 1b352becdf1..1c8d27e25a3 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.93.0 + 3.94.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.93.0 + 3.94.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 1356dc0dbd8..af5e107b9c9 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index c963464b270..60dea5e4782 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 3385bea307c..222f3d5232c 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 1ba9ecbb449..5d9aef629f5 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 2a8bf61e7d3..fdbac0edb5f 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index e7c63fa698c..13cabcb9013 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index b2ece7095e5..c6151f45a94 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 80ee6ada412..f3c9fdfb34c 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 436277613fe..0aab9f31699 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index de0fade9f89..07057139a45 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 0ea7be0e8f7..7f0383af84f 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index bec9e974e45..6552905eac7 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 1b9761d22b1..9605daf2c13 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 676295113cd..1f923e338d3 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index c0e810fe615..419358d2482 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index c01b79e68f3..7d4c8eab412 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 254cb31496f..e4ff145b754 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index de347987a64..ad9fe8de7e4 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index c6d6f83bf20..3fb2818fefa 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 7b636806bd3..ebdd92ff38e 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index d1da6a90ac6..696650be549 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 9b362cb7a9b..47fb11f50a6 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 55c1530ed33..7fab0b82775 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 2edb67fae80..3ada07dbbd1 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 0abe12e52e5..a2ee8fa6bdf 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.93.0 + 3.94.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1117 +38,1117 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-iot - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-psa - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-dif - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-batch - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-self - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-costad - 3.93.0 + 3.94.0 false com.oracle.oci.sdk oci-java-sdk-datacc - 3.93.0 + 3.94.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 715bd71a0d4..268c5395eb3 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index ceb0dbabd4f..ec2eb6d89c1 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 3dd54c08862..b9be6973ea1 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 60566a76f24..846dfcfdd9b 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index c9fe567c013..c3279ffe613 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 8af8639d521..93b2742be50 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 704ca83577d..6b10b4be5e3 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 3548e55a1b8..78519f614e4 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 7a8accf22d5..03703364c5a 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index b49996cb017..a7a9fa89b47 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ 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 d444594789c..8baf41a3a6b 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.93.0 + 3.94.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.93.0 + 3.94.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.93.0 + 3.94.0 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 4ac8e6e203d..12c710db538 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.93.0 + 3.94.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.93.0 + 3.94.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.93.0 + 3.94.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index f5f0bb1d8ae..d5efcc6ad15 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.93.0 + 3.94.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 7c928869f5f..d3fa761fffb 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.93.0 + 3.94.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index ec15a3e6dd0..3c774178a7e 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.93.0 + 3.94.0 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 4c3c089c11e..3165dcf28d0 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index f29a09114b4..7655e782736 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index a55e8b611ed..55388ef9a4b 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index a4d71e97279..441cdf75739 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index 6528b7deaf4..78bf7f3b556 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index d4a742e4bf3..f458f196be6 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.93.0 + 3.94.0 diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index e4c59b28ec8..86b003dafc5 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 8d12208c472..b6292fde6bc 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 5c73f418a85..4f571d5a797 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.93.0 + 3.94.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 3b854f18d0d..84d2f8856a2 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -3307,6 +3307,23 @@ GetAdvancedClusterFileSystemResponse getAdvancedClusterFileSystem( GetAutonomousContainerDatabaseResponse getAutonomousContainerDatabase( GetAutonomousContainerDatabaseRequest request); + /** + * Gets information about the specified Autonomous Container Database backup. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * GetAutonomousContainerDatabaseBackup API. + */ + GetAutonomousContainerDatabaseBackupResponse getAutonomousContainerDatabaseBackup( + GetAutonomousContainerDatabaseBackupRequest request); + /** * **Deprecated.** Use the {@link * #getAutonomousContainerDatabase(GetAutonomousContainerDatabaseRequest) @@ -4986,6 +5003,26 @@ ListAutonomousDatabaseSoftwareImagesResponse listAutonomousDatabaseSoftwareImage */ ListAutonomousDatabasesResponse listAutonomousDatabases(ListAutonomousDatabasesRequest request); + /** + * Gets a list of Autonomous Databases associated with backups at the given timestamp for the + * specified Autonomous Container Database. If `compartmentId` is provided, filters to that + * compartment; otherwise, uses the container's compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ListAutonomousDatabasesInAutonomousContainerDatabaseBackup API. + */ + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse + listAutonomousDatabasesInAutonomousContainerDatabaseBackup( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest request); + /** * Gets a list of supported Autonomous AI Database versions. Note that preview version software * is only available for Autonomous AI Database Serverless diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index f4eb69111e3..74214f1975b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -3356,6 +3356,24 @@ java.util.concurrent.Future getApplicationVip( GetAutonomousContainerDatabaseResponse> handler); + /** + * Gets information about the specified Autonomous Container Database backup. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + getAutonomousContainerDatabaseBackup( + GetAutonomousContainerDatabaseBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetAutonomousContainerDatabaseBackupRequest, + GetAutonomousContainerDatabaseBackupResponse> + handler); + /** * **Deprecated.** Use the {@link * #getAutonomousContainerDatabase(GetAutonomousContainerDatabaseRequest, Consumer, Consumer) @@ -5047,6 +5065,26 @@ java.util.concurrent.Future listAutonomousDatab ListAutonomousDatabasesRequest, ListAutonomousDatabasesResponse> handler); + /** + * Gets a list of Autonomous Databases associated with backups at the given timestamp for the + * specified Autonomous Container Database. If `compartmentId` is provided, filters to that + * compartment; otherwise, uses the container's compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + listAutonomousDatabasesInAutonomousContainerDatabaseBackup( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse> + handler); + /** * Gets a list of supported Autonomous AI Database versions. Note that preview version software * is only available for Autonomous AI Database Serverless diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index aa7461449a9..4b0188be5e2 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -7213,6 +7213,42 @@ public java.util.concurrent.Future getApplicationVip( .callAsync(handler); } + @Override + public java.util.concurrent.Future + getAutonomousContainerDatabaseBackup( + GetAutonomousContainerDatabaseBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAutonomousContainerDatabaseBackupRequest, + GetAutonomousContainerDatabaseBackupResponse> + handler) { + + Validate.notBlank( + request.getAutonomousContainerDatabaseBackupId(), + "autonomousContainerDatabaseBackupId must not be blank"); + + return clientCall(request, GetAutonomousContainerDatabaseBackupResponse::builder) + .logger(LOG, "getAutonomousContainerDatabaseBackup") + .serviceDetails( + "Database", + "GetAutonomousContainerDatabaseBackup", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabaseBackup/GetAutonomousContainerDatabaseBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAutonomousContainerDatabaseBackupRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousContainerDatabaseBackups") + .appendPathParam(request.getAutonomousContainerDatabaseBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup.class, + GetAutonomousContainerDatabaseBackupResponse.Builder + ::autonomousContainerDatabaseBackup) + .handleResponseHeaderString( + "opc-request-id", + GetAutonomousContainerDatabaseBackupResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getAutonomousContainerDatabaseDataguardAssociation( @@ -10349,6 +10385,7 @@ public java.util.concurrent.Future listApplicationV .appendQueryParam("backupDestinationId", request.getBackupDestinationId()) .appendQueryParam("keyStoreId", request.getKeyStoreId()) .appendEnumQueryParam("infrastructureType", request.getInfrastructureType()) + .appendQueryParam("isPitrEligible", request.getIsPitrEligible()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( @@ -10658,6 +10695,58 @@ public java.util.concurrent.Future listAutonomo .callAsync(handler); } + @Override + public java.util.concurrent.Future< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse> + listAutonomousDatabasesInAutonomousContainerDatabaseBackup( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse> + handler) { + Objects.requireNonNull( + request.getAutonomousContainerDatabaseId(), + "autonomousContainerDatabaseId is required"); + + Objects.requireNonNull(request.getTimeStampRequested(), "timeStampRequested is required"); + + return clientCall( + request, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse::builder) + .logger(LOG, "listAutonomousDatabasesInAutonomousContainerDatabaseBackup") + .serviceDetails( + "Database", + "ListAutonomousDatabasesInAutonomousContainerDatabaseBackup", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseInBackup/ListAutonomousDatabasesInAutonomousContainerDatabaseBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousContainerDatabaseBackups") + .appendPathParam("listAutonomousDatabasesInBackup") + .appendQueryParam( + "autonomousContainerDatabaseId", request.getAutonomousContainerDatabaseId()) + .appendQueryParam("timeStampRequested", request.getTimeStampRequested()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection.class, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.Builder + ::autonomousDatabaseInBackupCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.Builder + ::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listAutonomousDbPreviewVersions( @@ -11636,6 +11725,8 @@ public java.util.concurrent.Future listDatabases( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("dbName", request.getDbName()) + .appendEnumQueryParam("managedAutoFailover", request.getManagedAutoFailover()) + .appendEnumQueryParam("failoverTargets", request.getFailoverTargets()) .accept("application/json") .handleBodyList( com.oracle.bmc.database.model.DatabaseSummary.class, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index ce468dbaf94..6da70926373 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -6493,6 +6493,37 @@ public GetAutonomousContainerDatabaseResponse getAutonomousContainerDatabase( .callSync(); } + @Override + public GetAutonomousContainerDatabaseBackupResponse getAutonomousContainerDatabaseBackup( + GetAutonomousContainerDatabaseBackupRequest request) { + + Validate.notBlank( + request.getAutonomousContainerDatabaseBackupId(), + "autonomousContainerDatabaseBackupId must not be blank"); + + return clientCall(request, GetAutonomousContainerDatabaseBackupResponse::builder) + .logger(LOG, "getAutonomousContainerDatabaseBackup") + .serviceDetails( + "Database", + "GetAutonomousContainerDatabaseBackup", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabaseBackup/GetAutonomousContainerDatabaseBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetAutonomousContainerDatabaseBackupRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousContainerDatabaseBackups") + .appendPathParam(request.getAutonomousContainerDatabaseBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup.class, + GetAutonomousContainerDatabaseBackupResponse.Builder + ::autonomousContainerDatabaseBackup) + .handleResponseHeaderString( + "opc-request-id", + GetAutonomousContainerDatabaseBackupResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetAutonomousContainerDatabaseDataguardAssociationResponse getAutonomousContainerDatabaseDataguardAssociation( @@ -9262,6 +9293,7 @@ public ListAutonomousDatabaseBackupsResponse listAutonomousDatabaseBackups( .appendQueryParam("backupDestinationId", request.getBackupDestinationId()) .appendQueryParam("keyStoreId", request.getKeyStoreId()) .appendEnumQueryParam("infrastructureType", request.getInfrastructureType()) + .appendQueryParam("isPitrEligible", request.getIsPitrEligible()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( @@ -9539,6 +9571,53 @@ public ListAutonomousDatabasesResponse listAutonomousDatabases( .callSync(); } + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse + listAutonomousDatabasesInAutonomousContainerDatabaseBackup( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest request) { + Objects.requireNonNull( + request.getAutonomousContainerDatabaseId(), + "autonomousContainerDatabaseId is required"); + + Objects.requireNonNull(request.getTimeStampRequested(), "timeStampRequested is required"); + + return clientCall( + request, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse::builder) + .logger(LOG, "listAutonomousDatabasesInAutonomousContainerDatabaseBackup") + .serviceDetails( + "Database", + "ListAutonomousDatabasesInAutonomousContainerDatabaseBackup", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseInBackup/ListAutonomousDatabasesInAutonomousContainerDatabaseBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousContainerDatabaseBackups") + .appendPathParam("listAutonomousDatabasesInBackup") + .appendQueryParam( + "autonomousContainerDatabaseId", request.getAutonomousContainerDatabaseId()) + .appendQueryParam("timeStampRequested", request.getTimeStampRequested()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection.class, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.Builder + ::autonomousDatabaseInBackupCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.Builder + ::opcNextPage) + .callSync(); + } + @Override public ListAutonomousDbPreviewVersionsResponse listAutonomousDbPreviewVersions( ListAutonomousDbPreviewVersionsRequest request) { @@ -10413,6 +10492,8 @@ public ListDatabasesResponse listDatabases(ListDatabasesRequest request) { .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("dbName", request.getDbName()) + .appendEnumQueryParam("managedAutoFailover", request.getManagedAutoFailover()) + .appendEnumQueryParam("failoverTargets", request.getFailoverTargets()) .accept("application/json") .handleBodyList( com.oracle.bmc.database.model.DatabaseSummary.class, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java index b3a28b2aaca..9ffbde37949 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java @@ -1745,6 +1745,165 @@ public ListAutonomousDatabasesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listAutonomousDatabasesInAutonomousContainerDatabaseBackup 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 + listAutonomousDatabasesInAutonomousContainerDatabaseBackupResponseIterator( + final ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.Builder, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse>( + new java.util.function.Supplier< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .Builder>() { + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.Builder + get() { + return ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .builder() + .copy(request); + } + }, + new java.util.function.Function< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse, + String>() { + @Override + public String apply( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse + response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .Builder>, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest>() { + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .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< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse>() { + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse apply( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + request) { + return client.listAutonomousDatabasesInAutonomousContainerDatabaseBackup( + request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.database.model.AutonomousDatabaseInBackupSummary} objects contained in + * responses from the listAutonomousDatabasesInAutonomousContainerDatabaseBackup operation. This + * iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.database.model.AutonomousDatabaseInBackupSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAutonomousDatabasesInAutonomousContainerDatabaseBackupRecordIterator( + final ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.Builder, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse, + com.oracle.bmc.database.model.AutonomousDatabaseInBackupSummary>( + new java.util.function.Supplier< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .Builder>() { + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.Builder + get() { + return ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .builder() + .copy(request); + } + }, + new java.util.function.Function< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse, + String>() { + @Override + public String apply( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse + response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .Builder>, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest>() { + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + .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< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest, + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse>() { + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse apply( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + request) { + return client.listAutonomousDatabasesInAutonomousContainerDatabaseBackup( + request); + } + }, + new java.util.function.Function< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse, + java.util.List< + com.oracle.bmc.database.model + .AutonomousDatabaseInBackupSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model.AutonomousDatabaseInBackupSummary> + apply( + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse + response) { + return response.getAutonomousDatabaseInBackupCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listAutonomousDbPreviewVersions operation. This iterable will fetch more data from the server diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java index d7dbf89b405..6533dcf7ce0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java @@ -10664,6 +10664,134 @@ public boolean test(GetAutonomousContainerDatabaseResponse 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< + GetAutonomousContainerDatabaseBackupRequest, + GetAutonomousContainerDatabaseBackupResponse> + forAutonomousContainerDatabaseBackup( + GetAutonomousContainerDatabaseBackupRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup.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 forAutonomousContainerDatabaseBackup( + 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< + GetAutonomousContainerDatabaseBackupRequest, + GetAutonomousContainerDatabaseBackupResponse> + forAutonomousContainerDatabaseBackup( + GetAutonomousContainerDatabaseBackupRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup.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 forAutonomousContainerDatabaseBackup( + 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< + GetAutonomousContainerDatabaseBackupRequest, + GetAutonomousContainerDatabaseBackupResponse> + forAutonomousContainerDatabaseBackup( + GetAutonomousContainerDatabaseBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup.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 forAutonomousContainerDatabaseBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for AutonomousContainerDatabaseBackup. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseBackupRequest, + GetAutonomousContainerDatabaseBackupResponse> + forAutonomousContainerDatabaseBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAutonomousContainerDatabaseBackupRequest request, + final com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + .LifecycleState> + 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< + GetAutonomousContainerDatabaseBackupRequest, + GetAutonomousContainerDatabaseBackupResponse>() { + @Override + public GetAutonomousContainerDatabaseBackupResponse apply( + GetAutonomousContainerDatabaseBackupRequest request) { + return client.getAutonomousContainerDatabaseBackup(request); + } + }, + new java.util.function.Predicate< + GetAutonomousContainerDatabaseBackupResponse>() { + @Override + public boolean test( + GetAutonomousContainerDatabaseBackupResponse response) { + return targetStatesSet.contains( + response.getAutonomousContainerDatabaseBackup() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + .LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutoFailoverConfiguration.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutoFailoverConfiguration.java new file mode 100644 index 00000000000..924bc94d6a4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutoFailoverConfiguration.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The properties for defining auto failover configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutoFailoverConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutoFailoverConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managedAutoFailover", "failoverTargets"}) + public AutoFailoverConfiguration( + ManagedAutoFailover managedAutoFailover, java.util.List failoverTargets) { + super(); + this.managedAutoFailover = managedAutoFailover; + this.failoverTargets = failoverTargets; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The state of managed auto failover. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedAutoFailover") + private ManagedAutoFailover managedAutoFailover; + + /** + * The state of managed auto failover. + * + * @param managedAutoFailover the value to set + * @return this builder + */ + public Builder managedAutoFailover(ManagedAutoFailover managedAutoFailover) { + this.managedAutoFailover = managedAutoFailover; + this.__explicitlySet__.add("managedAutoFailover"); + return this; + } + /** Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("failoverTargets") + private java.util.List failoverTargets; + + /** + * Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. + * + * @param failoverTargets the value to set + * @return this builder + */ + public Builder failoverTargets(java.util.List failoverTargets) { + this.failoverTargets = failoverTargets; + this.__explicitlySet__.add("failoverTargets"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutoFailoverConfiguration build() { + AutoFailoverConfiguration model = + new AutoFailoverConfiguration(this.managedAutoFailover, this.failoverTargets); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutoFailoverConfiguration model) { + if (model.wasPropertyExplicitlySet("managedAutoFailover")) { + this.managedAutoFailover(model.getManagedAutoFailover()); + } + if (model.wasPropertyExplicitlySet("failoverTargets")) { + this.failoverTargets(model.getFailoverTargets()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The state of managed auto failover. */ + public enum ManagedAutoFailover implements com.oracle.bmc.http.internal.BmcEnum { + Enable("ENABLE"), + Disable("DISABLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ManagedAutoFailover v : ManagedAutoFailover.values()) { + map.put(v.getValue(), v); + } + } + + ManagedAutoFailover(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ManagedAutoFailover create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ManagedAutoFailover: " + key); + } + }; + /** The state of managed auto failover. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedAutoFailover") + private final ManagedAutoFailover managedAutoFailover; + + /** + * The state of managed auto failover. + * + * @return the value + */ + public ManagedAutoFailover getManagedAutoFailover() { + return managedAutoFailover; + } + + /** Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("failoverTargets") + private final java.util.List failoverTargets; + + /** + * Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. + * + * @return the value + */ + public java.util.List getFailoverTargets() { + return failoverTargets; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutoFailoverConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("managedAutoFailover=").append(String.valueOf(this.managedAutoFailover)); + sb.append(", failoverTargets=").append(String.valueOf(this.failoverTargets)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutoFailoverConfiguration)) { + return false; + } + + AutoFailoverConfiguration other = (AutoFailoverConfiguration) o; + return java.util.Objects.equals(this.managedAutoFailover, other.managedAutoFailover) + && java.util.Objects.equals(this.failoverTargets, other.failoverTargets) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managedAutoFailover == null + ? 43 + : this.managedAutoFailover.hashCode()); + result = + (result * PRIME) + + (this.failoverTargets == null ? 43 : this.failoverTargets.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackup.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackup.java index a6386036b8c..fc017ae074e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackup.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackup.java @@ -41,7 +41,9 @@ public final class AutonomousContainerDatabaseBackup "freeformTags", "definedTags", "systemTags", - "autonomousDatabases" + "autonomousDatabases", + "dbVersion", + "backupDestinationDetails" }) public AutonomousContainerDatabaseBackup( String id, @@ -61,7 +63,9 @@ public AutonomousContainerDatabaseBackup( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, - java.util.List autonomousDatabases) { + java.util.List autonomousDatabases, + String dbVersion, + BackupDestinationDetails backupDestinationDetails) { super(); this.id = id; this.compartmentId = compartmentId; @@ -81,6 +85,8 @@ public AutonomousContainerDatabaseBackup( this.definedTags = definedTags; this.systemTags = systemTags; this.autonomousDatabases = autonomousDatabases; + this.dbVersion = dbVersion; + this.backupDestinationDetails = backupDestinationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -399,6 +405,44 @@ public Builder autonomousDatabases( this.__explicitlySet__.add("autonomousDatabases"); return this; } + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai + * database as expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai + * database as expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + * + * @param dbVersion the value to set + * @return this builder + */ + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private BackupDestinationDetails backupDestinationDetails; + + public Builder backupDestinationDetails(BackupDestinationDetails backupDestinationDetails) { + this.backupDestinationDetails = backupDestinationDetails; + this.__explicitlySet__.add("backupDestinationDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -423,7 +467,9 @@ public AutonomousContainerDatabaseBackup build() { this.freeformTags, this.definedTags, this.systemTags, - this.autonomousDatabases); + this.autonomousDatabases, + this.dbVersion, + this.backupDestinationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -486,6 +532,12 @@ public Builder copy(AutonomousContainerDatabaseBackup model) { if (model.wasPropertyExplicitlySet("autonomousDatabases")) { this.autonomousDatabases(model.getAutonomousDatabases()); } + if (model.wasPropertyExplicitlySet("dbVersion")) { + this.dbVersion(model.getDbVersion()); + } + if (model.wasPropertyExplicitlySet("backupDestinationDetails")) { + this.backupDestinationDetails(model.getBackupDestinationDetails()); + } return this; } } @@ -587,7 +639,14 @@ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { Incremental("INCREMENTAL"), Full("FULL"), VirtualFull("VIRTUAL_FULL"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); private final String value; private static java.util.Map map; @@ -595,7 +654,9 @@ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (Type v : Type.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -613,7 +674,9 @@ public static Type create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Type: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; } }; /** The type of backup. */ @@ -688,7 +751,15 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { 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; @@ -696,7 +767,9 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (LifecycleState v : LifecycleState.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -714,7 +787,10 @@ public static LifecycleState create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid LifecycleState: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; /** The current state of the backup. */ @@ -760,7 +836,15 @@ public Boolean getIsRemoteBackup() { public enum InfrastructureType implements com.oracle.bmc.http.internal.BmcEnum { Cloud("CLOUD"), CloudAtCustomer("CLOUD_AT_CUSTOMER"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InfrastructureType.class); private final String value; private static java.util.Map map; @@ -768,7 +852,9 @@ public enum InfrastructureType implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (InfrastructureType v : InfrastructureType.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -786,7 +872,10 @@ public static InfrastructureType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid InfrastructureType: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'InfrastructureType', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; /** The infrastructure type this resource belongs to. */ @@ -876,6 +965,40 @@ public java.util.List getAutonomousDatabases() { return autonomousDatabases; } + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai database as + * expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private final String dbVersion; + + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai database as + * expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + * + * @return the value + */ + public String getDbVersion() { + return dbVersion; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private final BackupDestinationDetails backupDestinationDetails; + + public BackupDestinationDetails getBackupDestinationDetails() { + return backupDestinationDetails; + } + @Override public String toString() { return this.toString(true); @@ -910,6 +1033,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", autonomousDatabases=").append(String.valueOf(this.autonomousDatabases)); + sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); + sb.append(", backupDestinationDetails=") + .append(String.valueOf(this.backupDestinationDetails)); sb.append(")"); return sb.toString(); } @@ -943,6 +1069,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.autonomousDatabases, other.autonomousDatabases) + && java.util.Objects.equals(this.dbVersion, other.dbVersion) + && java.util.Objects.equals( + this.backupDestinationDetails, other.backupDestinationDetails) && super.equals(other); } @@ -994,6 +1123,12 @@ public int hashCode() { + (this.autonomousDatabases == null ? 43 : this.autonomousDatabases.hashCode()); + result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode()); + result = + (result * PRIME) + + (this.backupDestinationDetails == null + ? 43 + : this.backupDestinationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackupSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackupSummary.java index a5262670228..458a868acb5 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackupSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseBackupSummary.java @@ -47,7 +47,9 @@ public final class AutonomousContainerDatabaseBackupSummary "freeformTags", "definedTags", "systemTags", - "autonomousDatabases" + "autonomousDatabases", + "dbVersion", + "backupDestinationDetails" }) public AutonomousContainerDatabaseBackupSummary( String id, @@ -67,7 +69,9 @@ public AutonomousContainerDatabaseBackupSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, - java.util.List autonomousDatabases) { + java.util.List autonomousDatabases, + String dbVersion, + BackupDestinationDetails backupDestinationDetails) { super(); this.id = id; this.compartmentId = compartmentId; @@ -87,6 +91,8 @@ public AutonomousContainerDatabaseBackupSummary( this.definedTags = definedTags; this.systemTags = systemTags; this.autonomousDatabases = autonomousDatabases; + this.dbVersion = dbVersion; + this.backupDestinationDetails = backupDestinationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -405,6 +411,44 @@ public Builder autonomousDatabases( this.__explicitlySet__.add("autonomousDatabases"); return this; } + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai + * database as expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai + * database as expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + * + * @param dbVersion the value to set + * @return this builder + */ + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private BackupDestinationDetails backupDestinationDetails; + + public Builder backupDestinationDetails(BackupDestinationDetails backupDestinationDetails) { + this.backupDestinationDetails = backupDestinationDetails; + this.__explicitlySet__.add("backupDestinationDetails"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -429,7 +473,9 @@ public AutonomousContainerDatabaseBackupSummary build() { this.freeformTags, this.definedTags, this.systemTags, - this.autonomousDatabases); + this.autonomousDatabases, + this.dbVersion, + this.backupDestinationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -492,6 +538,12 @@ public Builder copy(AutonomousContainerDatabaseBackupSummary model) { if (model.wasPropertyExplicitlySet("autonomousDatabases")) { this.autonomousDatabases(model.getAutonomousDatabases()); } + if (model.wasPropertyExplicitlySet("dbVersion")) { + this.dbVersion(model.getDbVersion()); + } + if (model.wasPropertyExplicitlySet("backupDestinationDetails")) { + this.backupDestinationDetails(model.getBackupDestinationDetails()); + } return this; } } @@ -919,6 +971,40 @@ public java.util.List getAutonomousDatabases() { return autonomousDatabases; } + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai database as + * expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private final String dbVersion; + + /** + * A valid Oracle AI Database version for Autonomous AI Database. When you specify 23ai for + * dbversion, the system will provision a 23ai database, but the UI will display it as 26ai. + * When you specify 26ai for dbversion, the system will provision and display a 26ai database as + * expected. For new databases, it is recommended to use either 19c or 26ai. + * + *

*Note** Starting December 2026, 23ai will not be supported as a valid value for this + * parameter. + * + * @return the value + */ + public String getDbVersion() { + return dbVersion; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationDetails") + private final BackupDestinationDetails backupDestinationDetails; + + public BackupDestinationDetails getBackupDestinationDetails() { + return backupDestinationDetails; + } + @Override public String toString() { return this.toString(true); @@ -953,6 +1039,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", autonomousDatabases=").append(String.valueOf(this.autonomousDatabases)); + sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); + sb.append(", backupDestinationDetails=") + .append(String.valueOf(this.backupDestinationDetails)); sb.append(")"); return sb.toString(); } @@ -987,6 +1076,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.autonomousDatabases, other.autonomousDatabases) + && java.util.Objects.equals(this.dbVersion, other.dbVersion) + && java.util.Objects.equals( + this.backupDestinationDetails, other.backupDestinationDetails) && super.equals(other); } @@ -1038,6 +1130,12 @@ public int hashCode() { + (this.autonomousDatabases == null ? 43 : this.autonomousDatabases.hashCode()); + result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode()); + result = + (result * PRIME) + + (this.backupDestinationDetails == null + ? 43 + : this.backupDestinationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackup.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackup.java index afdffcdf613..d3349240174 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackup.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackup.java @@ -23,11 +23,13 @@ public final class AutonomousDatabaseInBackup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "displayName"}) - public AutonomousDatabaseInBackup(String compartmentId, String displayName) { + @java.beans.ConstructorProperties({"compartmentId", "displayName", "lifecycleState"}) + public AutonomousDatabaseInBackup( + String compartmentId, String displayName, LifecycleState lifecycleState) { super(); this.compartmentId = compartmentId; this.displayName = displayName; + this.lifecycleState = lifecycleState; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -70,13 +72,29 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** The current state of the Autonomous AI Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Autonomous AI Database. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AutonomousDatabaseInBackup build() { AutonomousDatabaseInBackup model = - new AutonomousDatabaseInBackup(this.compartmentId, this.displayName); + new AutonomousDatabaseInBackup( + this.compartmentId, this.displayName, this.lifecycleState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -91,6 +109,9 @@ public Builder copy(AutonomousDatabaseInBackup model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } return this; } } @@ -136,6 +157,85 @@ public String getDisplayName() { return displayName; } + /** The current state of the Autonomous AI Database. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Stopping("STOPPING"), + Stopped("STOPPED"), + Starting("STARTING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Unavailable("UNAVAILABLE"), + RestoreInProgress("RESTORE_IN_PROGRESS"), + RestoreFailed("RESTORE_FAILED"), + BackupInProgress("BACKUP_IN_PROGRESS"), + ScaleInProgress("SCALE_IN_PROGRESS"), + AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"), + Updating("UPDATING"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + Restarting("RESTARTING"), + Recreating("RECREATING"), + RoleChangeInProgress("ROLE_CHANGE_IN_PROGRESS"), + Upgrading("UPGRADING"), + Inaccessible("INACCESSIBLE"), + Standby("STANDBY"), + Transporting("TRANSPORTING"), + + /** + * This value is used if a service returns a value for this 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 Autonomous AI Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Autonomous AI Database. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + @Override public String toString() { return this.toString(true); @@ -153,6 +253,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(")"); return sb.toString(); } @@ -169,6 +270,7 @@ public boolean equals(Object o) { AutonomousDatabaseInBackup other = (AutonomousDatabaseInBackup) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && super.equals(other); } @@ -180,6 +282,9 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupCollection.java new file mode 100644 index 00000000000..aafa748e296 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupCollection.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The collection of Autonomous Database details that are part of Autonomous Container Database + * Backup associated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousDatabaseInBackupCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousDatabaseInBackupCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AutonomousDatabaseInBackupCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of Autonomous Databases that are part of the Autonomous Container Database + * Backup. + */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of Autonomous Databases that are part of the Autonomous Container Database + * Backup. + * + * @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 AutonomousDatabaseInBackupCollection build() { + AutonomousDatabaseInBackupCollection model = + new AutonomousDatabaseInBackupCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousDatabaseInBackupCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The list of Autonomous Databases that are part of the Autonomous Container Database Backup. + */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of Autonomous Databases that are part of the Autonomous Container Database Backup. + * + * @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("AutonomousDatabaseInBackupCollection("); + 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 AutonomousDatabaseInBackupCollection)) { + return false; + } + + AutonomousDatabaseInBackupCollection other = (AutonomousDatabaseInBackupCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupSummary.java new file mode 100644 index 00000000000..c72aff417c7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseInBackupSummary.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The summary of the autonomous database that are in the Autonomous Container Database Backup + * associated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousDatabaseInBackupSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AutonomousDatabaseInBackupSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "displayName", "lifecycleState"}) + public AutonomousDatabaseInBackupSummary( + String compartmentId, String displayName, LifecycleState lifecycleState) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-friendly name for the Autonomous AI Database. The name does not have to be + * unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the Autonomous AI Database. The name does not have to be + * unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The current state of the Autonomous AI Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Autonomous AI Database. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousDatabaseInBackupSummary build() { + AutonomousDatabaseInBackupSummary model = + new AutonomousDatabaseInBackupSummary( + this.compartmentId, this.displayName, this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousDatabaseInBackupSummary model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-friendly name for the Autonomous AI Database. The name does not have to be unique. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the Autonomous AI Database. The name does not have to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current state of the Autonomous AI Database. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Stopping("STOPPING"), + Stopped("STOPPED"), + Starting("STARTING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Unavailable("UNAVAILABLE"), + RestoreInProgress("RESTORE_IN_PROGRESS"), + RestoreFailed("RESTORE_FAILED"), + BackupInProgress("BACKUP_IN_PROGRESS"), + ScaleInProgress("SCALE_IN_PROGRESS"), + AvailableNeedsAttention("AVAILABLE_NEEDS_ATTENTION"), + Updating("UPDATING"), + MaintenanceInProgress("MAINTENANCE_IN_PROGRESS"), + Restarting("RESTARTING"), + Recreating("RECREATING"), + RoleChangeInProgress("ROLE_CHANGE_IN_PROGRESS"), + Upgrading("UPGRADING"), + Inaccessible("INACCESSIBLE"), + Standby("STANDBY"), + Transporting("TRANSPORTING"), + + /** + * This value is used if a service returns a value for this 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 Autonomous AI Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Autonomous AI Database. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AutonomousDatabaseInBackupSummary("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AutonomousDatabaseInBackupSummary)) { + return false; + } + + AutonomousDatabaseInBackupSummary other = (AutonomousDatabaseInBackupSummary) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java index 54b80ec6fd1..76ec2f4347b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseBase.java @@ -22,6 +22,9 @@ property = "source", defaultImpl = CreateAutonomousContainerDatabaseBase.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateAutonomousContainerDatabaseFromBackupTimestampDetails.class, + name = "BACKUP_FROM_TIMESTAMP"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateAutonomousContainerDatabaseDetails.class, name = "NONE"), @@ -1302,6 +1305,7 @@ public int hashCode() { public enum Source implements com.oracle.bmc.http.internal.BmcEnum { None("NONE"), BackupFromId("BACKUP_FROM_ID"), + BackupFromTimestamp("BACKUP_FROM_TIMESTAMP"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupDetails.java index 4174befc5aa..eefb3de908e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupDetails.java @@ -414,6 +414,60 @@ public Builder autonomousContainerDatabaseBackupId( this.__explicitlySet__.add("autonomousContainerDatabaseBackupId"); return this; } + /** The Autonomous AI Database clone type. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneType") + private CloneType cloneType; + + /** + * The Autonomous AI Database clone type. + * + * @param cloneType the value to set + * @return this builder + */ + public Builder cloneType(CloneType cloneType) { + this.cloneType = cloneType; + this.__explicitlySet__.add("cloneType"); + return this; + } + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabasesToClone") + private java.util.List autonomousDatabasesToClone; + + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + * + * @param autonomousDatabasesToClone the value to set + * @return this builder + */ + public Builder autonomousDatabasesToClone( + java.util.List autonomousDatabasesToClone) { + this.autonomousDatabasesToClone = autonomousDatabasesToClone; + this.__explicitlySet__.add("autonomousDatabasesToClone"); + return this; + } + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneBandWidth") + private CloneBandWidth cloneBandWidth; + + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + * + * @param cloneBandWidth the value to set + * @return this builder + */ + public Builder cloneBandWidth(CloneBandWidth cloneBandWidth) { + this.cloneBandWidth = cloneBandWidth; + this.__explicitlySet__.add("cloneBandWidth"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -460,7 +514,10 @@ public CreateAutonomousContainerDatabaseFromBackupDetails build() { this.vmFailoverReservation, this.distributionAffinity, this.netServicesArchitecture, - this.autonomousContainerDatabaseBackupId); + this.autonomousContainerDatabaseBackupId, + this.cloneType, + this.autonomousDatabasesToClone, + this.cloneBandWidth); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -596,6 +653,15 @@ public Builder copy(CreateAutonomousContainerDatabaseFromBackupDetails model) { this.autonomousContainerDatabaseBackupId( model.getAutonomousContainerDatabaseBackupId()); } + if (model.wasPropertyExplicitlySet("cloneType")) { + this.cloneType(model.getCloneType()); + } + if (model.wasPropertyExplicitlySet("autonomousDatabasesToClone")) { + this.autonomousDatabasesToClone(model.getAutonomousDatabasesToClone()); + } + if (model.wasPropertyExplicitlySet("cloneBandWidth")) { + this.cloneBandWidth(model.getCloneBandWidth()); + } return this; } } @@ -650,7 +716,10 @@ public CreateAutonomousContainerDatabaseFromBackupDetails( Integer vmFailoverReservation, DistributionAffinity distributionAffinity, NetServicesArchitecture netServicesArchitecture, - String autonomousContainerDatabaseBackupId) { + String autonomousContainerDatabaseBackupId, + CloneType cloneType, + java.util.List autonomousDatabasesToClone, + CloneBandWidth cloneBandWidth) { super( customerContacts, okvEndPointGroupName, @@ -692,6 +761,9 @@ public CreateAutonomousContainerDatabaseFromBackupDetails( distributionAffinity, netServicesArchitecture); this.autonomousContainerDatabaseBackupId = autonomousContainerDatabaseBackupId; + this.cloneType = cloneType; + this.autonomousDatabasesToClone = autonomousDatabasesToClone; + this.cloneBandWidth = cloneBandWidth; } /** @@ -711,6 +783,124 @@ public String getAutonomousContainerDatabaseBackupId() { return autonomousContainerDatabaseBackupId; } + /** The Autonomous AI Database clone type. */ + public enum CloneType implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Metadata("METADATA"), + Partial("PARTIAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CloneType v : CloneType.values()) { + map.put(v.getValue(), v); + } + } + + CloneType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CloneType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CloneType: " + key); + } + }; + /** The Autonomous AI Database clone type. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneType") + private final CloneType cloneType; + + /** + * The Autonomous AI Database clone type. + * + * @return the value + */ + public CloneType getCloneType() { + return cloneType; + } + + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabasesToClone") + private final java.util.List autonomousDatabasesToClone; + + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + * + * @return the value + */ + public java.util.List getAutonomousDatabasesToClone() { + return autonomousDatabasesToClone; + } + + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + */ + public enum CloneBandWidth implements com.oracle.bmc.http.internal.BmcEnum { + Slow("SLOW"), + Medium("MEDIUM"), + Fast("FAST"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CloneBandWidth v : CloneBandWidth.values()) { + map.put(v.getValue(), v); + } + } + + CloneBandWidth(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CloneBandWidth create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CloneBandWidth: " + key); + } + }; + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneBandWidth") + private final CloneBandWidth cloneBandWidth; + + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + * + * @return the value + */ + public CloneBandWidth getCloneBandWidth() { + return cloneBandWidth; + } + @Override public String toString() { return this.toString(true); @@ -728,6 +918,10 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", autonomousContainerDatabaseBackupId=") .append(String.valueOf(this.autonomousContainerDatabaseBackupId)); + sb.append(", cloneType=").append(String.valueOf(this.cloneType)); + sb.append(", autonomousDatabasesToClone=") + .append(String.valueOf(this.autonomousDatabasesToClone)); + sb.append(", cloneBandWidth=").append(String.valueOf(this.cloneBandWidth)); sb.append(")"); return sb.toString(); } @@ -746,6 +940,10 @@ public boolean equals(Object o) { return java.util.Objects.equals( this.autonomousContainerDatabaseBackupId, other.autonomousContainerDatabaseBackupId) + && java.util.Objects.equals(this.cloneType, other.cloneType) + && java.util.Objects.equals( + this.autonomousDatabasesToClone, other.autonomousDatabasesToClone) + && java.util.Objects.equals(this.cloneBandWidth, other.cloneBandWidth) && super.equals(other); } @@ -758,6 +956,15 @@ public int hashCode() { + (this.autonomousContainerDatabaseBackupId == null ? 43 : this.autonomousContainerDatabaseBackupId.hashCode()); + result = (result * PRIME) + (this.cloneType == null ? 43 : this.cloneType.hashCode()); + result = + (result * PRIME) + + (this.autonomousDatabasesToClone == null + ? 43 + : this.autonomousDatabasesToClone.hashCode()); + result = + (result * PRIME) + + (this.cloneBandWidth == null ? 43 : this.cloneBandWidth.hashCode()); return result; } } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupTimestampDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupTimestampDetails.java new file mode 100644 index 00000000000..32af6428e07 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseFromBackupTimestampDetails.java @@ -0,0 +1,1075 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details to create an Autonomous Container Database (ACD) by cloning backup available, of an + * existing ACD, at the requested time stamp.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAutonomousContainerDatabaseFromBackupTimestampDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "source") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateAutonomousContainerDatabaseFromBackupTimestampDetails + extends CreateAutonomousContainerDatabaseBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("customerContacts") + private java.util.List customerContacts; + + public Builder customerContacts(java.util.List customerContacts) { + this.customerContacts = customerContacts; + this.__explicitlySet__.add("customerContacts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; + + public Builder okvEndPointGroupName(String okvEndPointGroupName) { + this.okvEndPointGroupName = okvEndPointGroupName; + this.__explicitlySet__.add("okvEndPointGroupName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbName") + private String dbName; + + public Builder dbName(String dbName) { + this.dbName = dbName; + this.__explicitlySet__.add("dbName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serviceLevelAgreementType") + private ServiceLevelAgreementType serviceLevelAgreementType; + + public Builder serviceLevelAgreementType( + ServiceLevelAgreementType serviceLevelAgreementType) { + this.serviceLevelAgreementType = serviceLevelAgreementType; + this.__explicitlySet__.add("serviceLevelAgreementType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autonomousExadataInfrastructureId") + private String autonomousExadataInfrastructureId; + + public Builder autonomousExadataInfrastructureId(String autonomousExadataInfrastructureId) { + this.autonomousExadataInfrastructureId = autonomousExadataInfrastructureId; + this.__explicitlySet__.add("autonomousExadataInfrastructureId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseSoftwareImageId") + private String databaseSoftwareImageId; + + public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.__explicitlySet__.add("databaseSoftwareImageId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("peerAutonomousExadataInfrastructureId") + private String peerAutonomousExadataInfrastructureId; + + public Builder peerAutonomousExadataInfrastructureId( + String peerAutonomousExadataInfrastructureId) { + this.peerAutonomousExadataInfrastructureId = peerAutonomousExadataInfrastructureId; + this.__explicitlySet__.add("peerAutonomousExadataInfrastructureId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("peerAutonomousContainerDatabaseDisplayName") + private String peerAutonomousContainerDatabaseDisplayName; + + public Builder peerAutonomousContainerDatabaseDisplayName( + String peerAutonomousContainerDatabaseDisplayName) { + this.peerAutonomousContainerDatabaseDisplayName = + peerAutonomousContainerDatabaseDisplayName; + this.__explicitlySet__.add("peerAutonomousContainerDatabaseDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private ProtectionMode protectionMode; + + public Builder protectionMode(ProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; + + public Builder fastStartFailOverLagLimitInSeconds( + Integer fastStartFailOverLagLimitInSeconds) { + this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; + this.__explicitlySet__.add("fastStartFailOverLagLimitInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAutomaticFailoverEnabled") + private Boolean isAutomaticFailoverEnabled; + + public Builder isAutomaticFailoverEnabled(Boolean isAutomaticFailoverEnabled) { + this.isAutomaticFailoverEnabled = isAutomaticFailoverEnabled; + this.__explicitlySet__.add("isAutomaticFailoverEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("peerCloudAutonomousVmClusterId") + private String peerCloudAutonomousVmClusterId; + + public Builder peerCloudAutonomousVmClusterId(String peerCloudAutonomousVmClusterId) { + this.peerCloudAutonomousVmClusterId = peerCloudAutonomousVmClusterId; + this.__explicitlySet__.add("peerCloudAutonomousVmClusterId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("peerAutonomousVmClusterId") + private String peerAutonomousVmClusterId; + + public Builder peerAutonomousVmClusterId(String peerAutonomousVmClusterId) { + this.peerAutonomousVmClusterId = peerAutonomousVmClusterId; + this.__explicitlySet__.add("peerAutonomousVmClusterId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty( + "peerAutonomousContainerDatabaseCompartmentId") + private String peerAutonomousContainerDatabaseCompartmentId; + + public Builder peerAutonomousContainerDatabaseCompartmentId( + String peerAutonomousContainerDatabaseCompartmentId) { + this.peerAutonomousContainerDatabaseCompartmentId = + peerAutonomousContainerDatabaseCompartmentId; + this.__explicitlySet__.add("peerAutonomousContainerDatabaseCompartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty( + "peerAutonomousContainerDatabaseBackupConfig") + private PeerAutonomousContainerDatabaseBackupConfig + peerAutonomousContainerDatabaseBackupConfig; + + public Builder peerAutonomousContainerDatabaseBackupConfig( + PeerAutonomousContainerDatabaseBackupConfig + peerAutonomousContainerDatabaseBackupConfig) { + this.peerAutonomousContainerDatabaseBackupConfig = + peerAutonomousContainerDatabaseBackupConfig; + this.__explicitlySet__.add("peerAutonomousContainerDatabaseBackupConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("peerDbUniqueName") + private String peerDbUniqueName; + + public Builder peerDbUniqueName(String peerDbUniqueName) { + this.peerDbUniqueName = peerDbUniqueName; + this.__explicitlySet__.add("peerDbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autonomousVmClusterId") + private String autonomousVmClusterId; + + public Builder autonomousVmClusterId(String autonomousVmClusterId) { + this.autonomousVmClusterId = autonomousVmClusterId; + this.__explicitlySet__.add("autonomousVmClusterId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private String cloudAutonomousVmClusterId; + + public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + this.__explicitlySet__.add("cloudAutonomousVmClusterId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("patchModel") + private PatchModel patchModel; + + public Builder patchModel(PatchModel patchModel) { + this.patchModel = patchModel; + this.__explicitlySet__.add("patchModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowDetails") + private MaintenanceWindow maintenanceWindowDetails; + + public Builder maintenanceWindowDetails(MaintenanceWindow maintenanceWindowDetails) { + this.maintenanceWindowDetails = maintenanceWindowDetails; + this.__explicitlySet__.add("maintenanceWindowDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private Integer standbyMaintenanceBufferInDays; + + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionPreference") + private VersionPreference versionPreference; + + public Builder versionPreference(VersionPreference versionPreference) { + this.versionPreference = versionPreference; + this.__explicitlySet__.add("versionPreference"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDstFileUpdateEnabled") + private Boolean isDstFileUpdateEnabled; + + public Builder isDstFileUpdateEnabled(Boolean isDstFileUpdateEnabled) { + this.isDstFileUpdateEnabled = isDstFileUpdateEnabled; + this.__explicitlySet__.add("isDstFileUpdateEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("backupConfig") + private AutonomousContainerDatabaseBackupConfig backupConfig; + + public Builder backupConfig(AutonomousContainerDatabaseBackupConfig backupConfig) { + this.backupConfig = backupConfig; + this.__explicitlySet__.add("backupConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private String kmsKeyVersionId; + + public Builder kmsKeyVersionId(String kmsKeyVersionId) { + this.kmsKeyVersionId = kmsKeyVersionId; + this.__explicitlySet__.add("kmsKeyVersionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyStoreId") + private String keyStoreId; + + public Builder keyStoreId(String keyStoreId) { + this.keyStoreId = keyStoreId; + this.__explicitlySet__.add("keyStoreId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("encryptionKeyLocationDetails") + private EncryptionKeyLocationDetails encryptionKeyLocationDetails; + + public Builder encryptionKeyLocationDetails( + EncryptionKeyLocationDetails encryptionKeyLocationDetails) { + this.encryptionKeyLocationDetails = encryptionKeyLocationDetails; + this.__explicitlySet__.add("encryptionKeyLocationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") + private Integer dbSplitThreshold; + + public Builder dbSplitThreshold(Integer dbSplitThreshold) { + this.dbSplitThreshold = dbSplitThreshold; + this.__explicitlySet__.add("dbSplitThreshold"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") + private Integer vmFailoverReservation; + + public Builder vmFailoverReservation(Integer vmFailoverReservation) { + this.vmFailoverReservation = vmFailoverReservation; + this.__explicitlySet__.add("vmFailoverReservation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") + private DistributionAffinity distributionAffinity; + + public Builder distributionAffinity(DistributionAffinity distributionAffinity) { + this.distributionAffinity = distributionAffinity; + this.__explicitlySet__.add("distributionAffinity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("netServicesArchitecture") + private NetServicesArchitecture netServicesArchitecture; + + public Builder netServicesArchitecture(NetServicesArchitecture netServicesArchitecture) { + this.netServicesArchitecture = netServicesArchitecture; + this.__explicitlySet__.add("netServicesArchitecture"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * source ACD that you will clone to create a new ACD. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceAutonomousContainerDatabaseId") + private String sourceAutonomousContainerDatabaseId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * source ACD that you will clone to create a new ACD. + * + * @param sourceAutonomousContainerDatabaseId the value to set + * @return this builder + */ + public Builder sourceAutonomousContainerDatabaseId( + String sourceAutonomousContainerDatabaseId) { + this.sourceAutonomousContainerDatabaseId = sourceAutonomousContainerDatabaseId; + this.__explicitlySet__.add("sourceAutonomousContainerDatabaseId"); + return this; + } + /** + * The time stamp representing the point in time to which the Autonomous Container Database + * should be cloned from backup. And the requested timeStamp should be in the past. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStampToUseForCloning") + private java.util.Date timeStampToUseForCloning; + + /** + * The time stamp representing the point in time to which the Autonomous Container Database + * should be cloned from backup. And the requested timeStamp should be in the past. + * + * @param timeStampToUseForCloning the value to set + * @return this builder + */ + public Builder timeStampToUseForCloning(java.util.Date timeStampToUseForCloning) { + this.timeStampToUseForCloning = timeStampToUseForCloning; + this.__explicitlySet__.add("timeStampToUseForCloning"); + return this; + } + /** + * If set to true, OCI shall attempt to create a point in time to the latest available + * backup of the source Autonomous Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseLatestAvailableBackupTimeStamp") + private Boolean shouldUseLatestAvailableBackupTimeStamp; + + /** + * If set to true, OCI shall attempt to create a point in time to the latest available + * backup of the source Autonomous Container Database. + * + * @param shouldUseLatestAvailableBackupTimeStamp the value to set + * @return this builder + */ + public Builder shouldUseLatestAvailableBackupTimeStamp( + Boolean shouldUseLatestAvailableBackupTimeStamp) { + this.shouldUseLatestAvailableBackupTimeStamp = shouldUseLatestAvailableBackupTimeStamp; + this.__explicitlySet__.add("shouldUseLatestAvailableBackupTimeStamp"); + return this; + } + /** The Autonomous AI Database clone type. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneType") + private CloneType cloneType; + + /** + * The Autonomous AI Database clone type. + * + * @param cloneType the value to set + * @return this builder + */ + public Builder cloneType(CloneType cloneType) { + this.cloneType = cloneType; + this.__explicitlySet__.add("cloneType"); + return this; + } + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabasesToClone") + private java.util.List autonomousDatabasesToClone; + + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + * + * @param autonomousDatabasesToClone the value to set + * @return this builder + */ + public Builder autonomousDatabasesToClone( + java.util.List autonomousDatabasesToClone) { + this.autonomousDatabasesToClone = autonomousDatabasesToClone; + this.__explicitlySet__.add("autonomousDatabasesToClone"); + return this; + } + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneBandWidth") + private CloneBandWidth cloneBandWidth; + + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + * + * @param cloneBandWidth the value to set + * @return this builder + */ + public Builder cloneBandWidth(CloneBandWidth cloneBandWidth) { + this.cloneBandWidth = cloneBandWidth; + this.__explicitlySet__.add("cloneBandWidth"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAutonomousContainerDatabaseFromBackupTimestampDetails build() { + CreateAutonomousContainerDatabaseFromBackupTimestampDetails model = + new CreateAutonomousContainerDatabaseFromBackupTimestampDetails( + this.customerContacts, + this.okvEndPointGroupName, + this.displayName, + this.dbUniqueName, + this.dbName, + this.serviceLevelAgreementType, + this.autonomousExadataInfrastructureId, + this.dbVersion, + this.databaseSoftwareImageId, + this.peerAutonomousExadataInfrastructureId, + this.peerAutonomousContainerDatabaseDisplayName, + this.protectionMode, + this.fastStartFailOverLagLimitInSeconds, + this.isAutomaticFailoverEnabled, + this.peerCloudAutonomousVmClusterId, + this.peerAutonomousVmClusterId, + this.peerAutonomousContainerDatabaseCompartmentId, + this.peerAutonomousContainerDatabaseBackupConfig, + this.peerDbUniqueName, + this.autonomousVmClusterId, + this.cloudAutonomousVmClusterId, + this.compartmentId, + this.patchModel, + this.maintenanceWindowDetails, + this.standbyMaintenanceBufferInDays, + this.versionPreference, + this.isDstFileUpdateEnabled, + this.freeformTags, + this.definedTags, + this.backupConfig, + this.kmsKeyId, + this.kmsKeyVersionId, + this.vaultId, + this.keyStoreId, + this.encryptionKeyLocationDetails, + this.dbSplitThreshold, + this.vmFailoverReservation, + this.distributionAffinity, + this.netServicesArchitecture, + this.sourceAutonomousContainerDatabaseId, + this.timeStampToUseForCloning, + this.shouldUseLatestAvailableBackupTimeStamp, + this.cloneType, + this.autonomousDatabasesToClone, + this.cloneBandWidth); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAutonomousContainerDatabaseFromBackupTimestampDetails model) { + if (model.wasPropertyExplicitlySet("customerContacts")) { + this.customerContacts(model.getCustomerContacts()); + } + if (model.wasPropertyExplicitlySet("okvEndPointGroupName")) { + this.okvEndPointGroupName(model.getOkvEndPointGroupName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("dbUniqueName")) { + this.dbUniqueName(model.getDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("dbName")) { + this.dbName(model.getDbName()); + } + if (model.wasPropertyExplicitlySet("serviceLevelAgreementType")) { + this.serviceLevelAgreementType(model.getServiceLevelAgreementType()); + } + if (model.wasPropertyExplicitlySet("autonomousExadataInfrastructureId")) { + this.autonomousExadataInfrastructureId( + model.getAutonomousExadataInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("dbVersion")) { + this.dbVersion(model.getDbVersion()); + } + if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { + this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); + } + if (model.wasPropertyExplicitlySet("peerAutonomousExadataInfrastructureId")) { + this.peerAutonomousExadataInfrastructureId( + model.getPeerAutonomousExadataInfrastructureId()); + } + if (model.wasPropertyExplicitlySet("peerAutonomousContainerDatabaseDisplayName")) { + this.peerAutonomousContainerDatabaseDisplayName( + model.getPeerAutonomousContainerDatabaseDisplayName()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("fastStartFailOverLagLimitInSeconds")) { + this.fastStartFailOverLagLimitInSeconds( + model.getFastStartFailOverLagLimitInSeconds()); + } + if (model.wasPropertyExplicitlySet("isAutomaticFailoverEnabled")) { + this.isAutomaticFailoverEnabled(model.getIsAutomaticFailoverEnabled()); + } + if (model.wasPropertyExplicitlySet("peerCloudAutonomousVmClusterId")) { + this.peerCloudAutonomousVmClusterId(model.getPeerCloudAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("peerAutonomousVmClusterId")) { + this.peerAutonomousVmClusterId(model.getPeerAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("peerAutonomousContainerDatabaseCompartmentId")) { + this.peerAutonomousContainerDatabaseCompartmentId( + model.getPeerAutonomousContainerDatabaseCompartmentId()); + } + if (model.wasPropertyExplicitlySet("peerAutonomousContainerDatabaseBackupConfig")) { + this.peerAutonomousContainerDatabaseBackupConfig( + model.getPeerAutonomousContainerDatabaseBackupConfig()); + } + if (model.wasPropertyExplicitlySet("peerDbUniqueName")) { + this.peerDbUniqueName(model.getPeerDbUniqueName()); + } + if (model.wasPropertyExplicitlySet("autonomousVmClusterId")) { + this.autonomousVmClusterId(model.getAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("cloudAutonomousVmClusterId")) { + this.cloudAutonomousVmClusterId(model.getCloudAutonomousVmClusterId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("patchModel")) { + this.patchModel(model.getPatchModel()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindowDetails")) { + this.maintenanceWindowDetails(model.getMaintenanceWindowDetails()); + } + if (model.wasPropertyExplicitlySet("standbyMaintenanceBufferInDays")) { + this.standbyMaintenanceBufferInDays(model.getStandbyMaintenanceBufferInDays()); + } + if (model.wasPropertyExplicitlySet("versionPreference")) { + this.versionPreference(model.getVersionPreference()); + } + if (model.wasPropertyExplicitlySet("isDstFileUpdateEnabled")) { + this.isDstFileUpdateEnabled(model.getIsDstFileUpdateEnabled()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("backupConfig")) { + this.backupConfig(model.getBackupConfig()); + } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } + if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { + this.kmsKeyVersionId(model.getKmsKeyVersionId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyStoreId")) { + this.keyStoreId(model.getKeyStoreId()); + } + if (model.wasPropertyExplicitlySet("encryptionKeyLocationDetails")) { + this.encryptionKeyLocationDetails(model.getEncryptionKeyLocationDetails()); + } + if (model.wasPropertyExplicitlySet("dbSplitThreshold")) { + this.dbSplitThreshold(model.getDbSplitThreshold()); + } + if (model.wasPropertyExplicitlySet("vmFailoverReservation")) { + this.vmFailoverReservation(model.getVmFailoverReservation()); + } + if (model.wasPropertyExplicitlySet("distributionAffinity")) { + this.distributionAffinity(model.getDistributionAffinity()); + } + if (model.wasPropertyExplicitlySet("netServicesArchitecture")) { + this.netServicesArchitecture(model.getNetServicesArchitecture()); + } + if (model.wasPropertyExplicitlySet("sourceAutonomousContainerDatabaseId")) { + this.sourceAutonomousContainerDatabaseId( + model.getSourceAutonomousContainerDatabaseId()); + } + if (model.wasPropertyExplicitlySet("timeStampToUseForCloning")) { + this.timeStampToUseForCloning(model.getTimeStampToUseForCloning()); + } + if (model.wasPropertyExplicitlySet("shouldUseLatestAvailableBackupTimeStamp")) { + this.shouldUseLatestAvailableBackupTimeStamp( + model.getShouldUseLatestAvailableBackupTimeStamp()); + } + if (model.wasPropertyExplicitlySet("cloneType")) { + this.cloneType(model.getCloneType()); + } + if (model.wasPropertyExplicitlySet("autonomousDatabasesToClone")) { + this.autonomousDatabasesToClone(model.getAutonomousDatabasesToClone()); + } + if (model.wasPropertyExplicitlySet("cloneBandWidth")) { + this.cloneBandWidth(model.getCloneBandWidth()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateAutonomousContainerDatabaseFromBackupTimestampDetails( + java.util.List customerContacts, + String okvEndPointGroupName, + String displayName, + String dbUniqueName, + String dbName, + ServiceLevelAgreementType serviceLevelAgreementType, + String autonomousExadataInfrastructureId, + String dbVersion, + String databaseSoftwareImageId, + String peerAutonomousExadataInfrastructureId, + String peerAutonomousContainerDatabaseDisplayName, + ProtectionMode protectionMode, + Integer fastStartFailOverLagLimitInSeconds, + Boolean isAutomaticFailoverEnabled, + String peerCloudAutonomousVmClusterId, + String peerAutonomousVmClusterId, + String peerAutonomousContainerDatabaseCompartmentId, + PeerAutonomousContainerDatabaseBackupConfig peerAutonomousContainerDatabaseBackupConfig, + String peerDbUniqueName, + String autonomousVmClusterId, + String cloudAutonomousVmClusterId, + String compartmentId, + PatchModel patchModel, + MaintenanceWindow maintenanceWindowDetails, + Integer standbyMaintenanceBufferInDays, + VersionPreference versionPreference, + Boolean isDstFileUpdateEnabled, + java.util.Map freeformTags, + java.util.Map> definedTags, + AutonomousContainerDatabaseBackupConfig backupConfig, + String kmsKeyId, + String kmsKeyVersionId, + String vaultId, + String keyStoreId, + EncryptionKeyLocationDetails encryptionKeyLocationDetails, + Integer dbSplitThreshold, + Integer vmFailoverReservation, + DistributionAffinity distributionAffinity, + NetServicesArchitecture netServicesArchitecture, + String sourceAutonomousContainerDatabaseId, + java.util.Date timeStampToUseForCloning, + Boolean shouldUseLatestAvailableBackupTimeStamp, + CloneType cloneType, + java.util.List autonomousDatabasesToClone, + CloneBandWidth cloneBandWidth) { + super( + customerContacts, + okvEndPointGroupName, + displayName, + dbUniqueName, + dbName, + serviceLevelAgreementType, + autonomousExadataInfrastructureId, + dbVersion, + databaseSoftwareImageId, + peerAutonomousExadataInfrastructureId, + peerAutonomousContainerDatabaseDisplayName, + protectionMode, + fastStartFailOverLagLimitInSeconds, + isAutomaticFailoverEnabled, + peerCloudAutonomousVmClusterId, + peerAutonomousVmClusterId, + peerAutonomousContainerDatabaseCompartmentId, + peerAutonomousContainerDatabaseBackupConfig, + peerDbUniqueName, + autonomousVmClusterId, + cloudAutonomousVmClusterId, + compartmentId, + patchModel, + maintenanceWindowDetails, + standbyMaintenanceBufferInDays, + versionPreference, + isDstFileUpdateEnabled, + freeformTags, + definedTags, + backupConfig, + kmsKeyId, + kmsKeyVersionId, + vaultId, + keyStoreId, + encryptionKeyLocationDetails, + dbSplitThreshold, + vmFailoverReservation, + distributionAffinity, + netServicesArchitecture); + this.sourceAutonomousContainerDatabaseId = sourceAutonomousContainerDatabaseId; + this.timeStampToUseForCloning = timeStampToUseForCloning; + this.shouldUseLatestAvailableBackupTimeStamp = shouldUseLatestAvailableBackupTimeStamp; + this.cloneType = cloneType; + this.autonomousDatabasesToClone = autonomousDatabasesToClone; + this.cloneBandWidth = cloneBandWidth; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * source ACD that you will clone to create a new ACD. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceAutonomousContainerDatabaseId") + private final String sourceAutonomousContainerDatabaseId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * source ACD that you will clone to create a new ACD. + * + * @return the value + */ + public String getSourceAutonomousContainerDatabaseId() { + return sourceAutonomousContainerDatabaseId; + } + + /** + * The time stamp representing the point in time to which the Autonomous Container Database + * should be cloned from backup. And the requested timeStamp should be in the past. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStampToUseForCloning") + private final java.util.Date timeStampToUseForCloning; + + /** + * The time stamp representing the point in time to which the Autonomous Container Database + * should be cloned from backup. And the requested timeStamp should be in the past. + * + * @return the value + */ + public java.util.Date getTimeStampToUseForCloning() { + return timeStampToUseForCloning; + } + + /** + * If set to true, OCI shall attempt to create a point in time to the latest available backup of + * the source Autonomous Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shouldUseLatestAvailableBackupTimeStamp") + private final Boolean shouldUseLatestAvailableBackupTimeStamp; + + /** + * If set to true, OCI shall attempt to create a point in time to the latest available backup of + * the source Autonomous Container Database. + * + * @return the value + */ + public Boolean getShouldUseLatestAvailableBackupTimeStamp() { + return shouldUseLatestAvailableBackupTimeStamp; + } + + /** The Autonomous AI Database clone type. */ + public enum CloneType implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Metadata("METADATA"), + Partial("PARTIAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CloneType v : CloneType.values()) { + map.put(v.getValue(), v); + } + } + + CloneType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CloneType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CloneType: " + key); + } + }; + /** The Autonomous AI Database clone type. */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneType") + private final CloneType cloneType; + + /** + * The Autonomous AI Database clone type. + * + * @return the value + */ + public CloneType getCloneType() { + return cloneType; + } + + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabasesToClone") + private final java.util.List autonomousDatabasesToClone; + + /** + * A list of Autonomous Databases ( display name of the ADB in specific ) to be cloned from + * backup of the source Autonomous Container Database. + * + * @return the value + */ + public java.util.List getAutonomousDatabasesToClone() { + return autonomousDatabasesToClone; + } + + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + */ + public enum CloneBandWidth implements com.oracle.bmc.http.internal.BmcEnum { + Slow("SLOW"), + Medium("MEDIUM"), + Fast("FAST"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CloneBandWidth v : CloneBandWidth.values()) { + map.put(v.getValue(), v); + } + } + + CloneBandWidth(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CloneBandWidth create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CloneBandWidth: " + key); + } + }; + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + */ + @com.fasterxml.jackson.annotation.JsonProperty("cloneBandWidth") + private final CloneBandWidth cloneBandWidth; + + /** + * The speed at which the Autonomous Container Database Clone from backup operation to be + * performed by OCI. + * + * @return the value + */ + public CloneBandWidth getCloneBandWidth() { + return cloneBandWidth; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateAutonomousContainerDatabaseFromBackupTimestampDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceAutonomousContainerDatabaseId=") + .append(String.valueOf(this.sourceAutonomousContainerDatabaseId)); + sb.append(", timeStampToUseForCloning=") + .append(String.valueOf(this.timeStampToUseForCloning)); + sb.append(", shouldUseLatestAvailableBackupTimeStamp=") + .append(String.valueOf(this.shouldUseLatestAvailableBackupTimeStamp)); + sb.append(", cloneType=").append(String.valueOf(this.cloneType)); + sb.append(", autonomousDatabasesToClone=") + .append(String.valueOf(this.autonomousDatabasesToClone)); + sb.append(", cloneBandWidth=").append(String.valueOf(this.cloneBandWidth)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateAutonomousContainerDatabaseFromBackupTimestampDetails)) { + return false; + } + + CreateAutonomousContainerDatabaseFromBackupTimestampDetails other = + (CreateAutonomousContainerDatabaseFromBackupTimestampDetails) o; + return java.util.Objects.equals( + this.sourceAutonomousContainerDatabaseId, + other.sourceAutonomousContainerDatabaseId) + && java.util.Objects.equals( + this.timeStampToUseForCloning, other.timeStampToUseForCloning) + && java.util.Objects.equals( + this.shouldUseLatestAvailableBackupTimeStamp, + other.shouldUseLatestAvailableBackupTimeStamp) + && java.util.Objects.equals(this.cloneType, other.cloneType) + && java.util.Objects.equals( + this.autonomousDatabasesToClone, other.autonomousDatabasesToClone) + && java.util.Objects.equals(this.cloneBandWidth, other.cloneBandWidth) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceAutonomousContainerDatabaseId == null + ? 43 + : this.sourceAutonomousContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.timeStampToUseForCloning == null + ? 43 + : this.timeStampToUseForCloning.hashCode()); + result = + (result * PRIME) + + (this.shouldUseLatestAvailableBackupTimeStamp == null + ? 43 + : this.shouldUseLatestAvailableBackupTimeStamp.hashCode()); + result = (result * PRIME) + (this.cloneType == null ? 43 : this.cloneType.hashCode()); + result = + (result * PRIME) + + (this.autonomousDatabasesToClone == null + ? 43 + : this.autonomousDatabasesToClone.hashCode()); + result = + (result * PRIME) + + (this.cloneBandWidth == null ? 43 : this.cloneBandWidth.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java index 94b925b6004..0eac459ee18 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateStandbyDetails.java @@ -35,7 +35,8 @@ public CreateStandbyDetails( TransportType transportType, DatabaseStorageSizeDetails storageSizeDetails, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + AutoFailoverConfiguration autoFailoverConfiguration) { super(); this.sourceDatabaseId = sourceDatabaseId; this.databaseAdminPassword = @@ -51,6 +52,7 @@ public CreateStandbyDetails( this.storageSizeDetails = storageSizeDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.autoFailoverConfiguration = autoFailoverConfiguration; } @com.fasterxml.jackson.annotation.JsonCreator @@ -67,7 +69,8 @@ public CreateStandbyDetails( "transportType", "storageSizeDetails", "freeformTags", - "definedTags" + "definedTags", + "autoFailoverConfiguration" }) public CreateStandbyDetails( String sourceDatabaseId, @@ -81,7 +84,8 @@ public CreateStandbyDetails( TransportType transportType, DatabaseStorageSizeDetails storageSizeDetails, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + AutoFailoverConfiguration autoFailoverConfiguration) { super(); this.sourceDatabaseId = sourceDatabaseId; this.databaseAdminPassword = databaseAdminPassword; @@ -95,6 +99,7 @@ public CreateStandbyDetails( this.storageSizeDetails = storageSizeDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.autoFailoverConfiguration = autoFailoverConfiguration; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -342,6 +347,16 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("autoFailoverConfiguration") + private AutoFailoverConfiguration autoFailoverConfiguration; + + public Builder autoFailoverConfiguration( + AutoFailoverConfiguration autoFailoverConfiguration) { + this.autoFailoverConfiguration = autoFailoverConfiguration; + this.__explicitlySet__.add("autoFailoverConfiguration"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -359,7 +374,8 @@ public CreateStandbyDetails build() { this.transportType, this.storageSizeDetails, this.freeformTags, - this.definedTags); + this.definedTags, + this.autoFailoverConfiguration); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -405,6 +421,9 @@ public Builder copy(CreateStandbyDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("autoFailoverConfiguration")) { + this.autoFailoverConfiguration(model.getAutoFailoverConfiguration()); + } return this; } } @@ -733,6 +752,13 @@ public java.util.Map> getDefinedTags() { return definedTags; } + @com.fasterxml.jackson.annotation.JsonProperty("autoFailoverConfiguration") + private final AutoFailoverConfiguration autoFailoverConfiguration; + + public AutoFailoverConfiguration getAutoFailoverConfiguration() { + return autoFailoverConfiguration; + } + @Override public String toString() { return this.toString(true); @@ -762,6 +788,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", storageSizeDetails=").append(String.valueOf(this.storageSizeDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", autoFailoverConfiguration=") + .append(String.valueOf(this.autoFailoverConfiguration)); sb.append(")"); return sb.toString(); } @@ -792,6 +820,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.storageSizeDetails, other.storageSizeDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.autoFailoverConfiguration, other.autoFailoverConfiguration) && super.equals(other); } @@ -837,6 +867,11 @@ public int hashCode() { : this.storageSizeDetails.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.autoFailoverConfiguration == null + ? 43 + : this.autoFailoverConfiguration.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroup.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroup.java index 06e053accb5..1e893dfce60 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroup.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroup.java @@ -23,12 +23,15 @@ public final class DataGuardGroup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"members", "protectionMode"}) + @java.beans.ConstructorProperties({"members", "protectionMode", "managedAutoFailOverReadiness"}) public DataGuardGroup( - java.util.List members, ProtectionMode protectionMode) { + java.util.List members, + ProtectionMode protectionMode, + ManagedAutoFailOverReadiness managedAutoFailOverReadiness) { super(); this.members = members; this.protectionMode = protectionMode; + this.managedAutoFailOverReadiness = managedAutoFailOverReadiness; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -71,12 +74,30 @@ public Builder protectionMode(ProtectionMode protectionMode) { this.__explicitlySet__.add("protectionMode"); return this; } + /** Specifies readiness of Managed Automatic failover. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedAutoFailOverReadiness") + private ManagedAutoFailOverReadiness managedAutoFailOverReadiness; + + /** + * Specifies readiness of Managed Automatic failover. + * + * @param managedAutoFailOverReadiness the value to set + * @return this builder + */ + public Builder managedAutoFailOverReadiness( + ManagedAutoFailOverReadiness managedAutoFailOverReadiness) { + this.managedAutoFailOverReadiness = managedAutoFailOverReadiness; + this.__explicitlySet__.add("managedAutoFailOverReadiness"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DataGuardGroup build() { - DataGuardGroup model = new DataGuardGroup(this.members, this.protectionMode); + DataGuardGroup model = + new DataGuardGroup( + this.members, this.protectionMode, this.managedAutoFailOverReadiness); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -91,6 +112,9 @@ public Builder copy(DataGuardGroup model) { if (model.wasPropertyExplicitlySet("protectionMode")) { this.protectionMode(model.getProtectionMode()); } + if (model.wasPropertyExplicitlySet("managedAutoFailOverReadiness")) { + this.managedAutoFailOverReadiness(model.getManagedAutoFailOverReadiness()); + } return this; } } @@ -190,6 +214,65 @@ public ProtectionMode getProtectionMode() { return protectionMode; } + /** Specifies readiness of Managed Automatic failover. */ + public enum ManagedAutoFailOverReadiness implements com.oracle.bmc.http.internal.BmcEnum { + Healthy("HEALTHY"), + Critical("CRITICAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ManagedAutoFailOverReadiness.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ManagedAutoFailOverReadiness v : ManagedAutoFailOverReadiness.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ManagedAutoFailOverReadiness(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ManagedAutoFailOverReadiness create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ManagedAutoFailOverReadiness', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Specifies readiness of Managed Automatic failover. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedAutoFailOverReadiness") + private final ManagedAutoFailOverReadiness managedAutoFailOverReadiness; + + /** + * Specifies readiness of Managed Automatic failover. + * + * @return the value + */ + public ManagedAutoFailOverReadiness getManagedAutoFailOverReadiness() { + return managedAutoFailOverReadiness; + } + @Override public String toString() { return this.toString(true); @@ -207,6 +290,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("members=").append(String.valueOf(this.members)); sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", managedAutoFailOverReadiness=") + .append(String.valueOf(this.managedAutoFailOverReadiness)); sb.append(")"); return sb.toString(); } @@ -223,6 +308,8 @@ public boolean equals(Object o) { DataGuardGroup other = (DataGuardGroup) o; return java.util.Objects.equals(this.members, other.members) && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals( + this.managedAutoFailOverReadiness, other.managedAutoFailOverReadiness) && super.equals(other); } @@ -234,6 +321,11 @@ public int hashCode() { result = (result * PRIME) + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.managedAutoFailOverReadiness == null + ? 43 + : this.managedAutoFailOverReadiness.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroupMember.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroupMember.java index 5f5ff5d60cd..dee0933d874 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroupMember.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DataGuardGroupMember.java @@ -39,7 +39,9 @@ public final class DataGuardGroupMember "failoverReadiness", "failoverReadinessMessage", "dataLossExposure", - "timeUpdated" + "timeUpdated", + "managedAutoFailover", + "failoverTargets" }) public DataGuardGroupMember( String dbSystemId, @@ -56,7 +58,9 @@ public DataGuardGroupMember( FailoverReadiness failoverReadiness, String failoverReadinessMessage, String dataLossExposure, - java.util.Date timeUpdated) { + java.util.Date timeUpdated, + ManagedAutoFailover managedAutoFailover, + java.util.List failoverTargets) { super(); this.dbSystemId = dbSystemId; this.databaseId = databaseId; @@ -73,6 +77,8 @@ public DataGuardGroupMember( this.failoverReadinessMessage = failoverReadinessMessage; this.dataLossExposure = dataLossExposure; this.timeUpdated = timeUpdated; + this.managedAutoFailover = managedAutoFailover; + this.failoverTargets = failoverTargets; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -264,12 +270,18 @@ public Builder isActiveDataGuardEnabled(Boolean isActiveDataGuardEnabled) { this.__explicitlySet__.add("isActiveDataGuardEnabled"); return this; } - /** The switchover readiness status of the Data Guard member. */ + /** + * The switchover readiness status of the Data Guard member. * + * HEALTHY_AND_NOT_ROLECHANGE_TARGET - Indicates that the respective standby member is + * healthy but not currently designated to take switchover, when auto failover is enabled. + */ @com.fasterxml.jackson.annotation.JsonProperty("switchoverReadiness") private SwitchoverReadiness switchoverReadiness; /** - * The switchover readiness status of the Data Guard member. + * The switchover readiness status of the Data Guard member. * + * HEALTHY_AND_NOT_ROLECHANGE_TARGET - Indicates that the respective standby member is + * healthy but not currently designated to take switchover, when auto failover is enabled. * * @param switchoverReadiness the value to set * @return this builder @@ -298,12 +310,18 @@ public Builder switchoverReadinessMessage(String switchoverReadinessMessage) { this.__explicitlySet__.add("switchoverReadinessMessage"); return this; } - /** The failover readiness status of the Data Guard member. */ + /** + * The failover readiness status of the Data Guard member. HEALTHY_AND_NOT_ROLECHANGE_TARGET + * - Indicates that the respective standby member is healthy but not currently designated to + * take failover, when auto failover is enabled. + */ @com.fasterxml.jackson.annotation.JsonProperty("failoverReadiness") private FailoverReadiness failoverReadiness; /** - * The failover readiness status of the Data Guard member. + * The failover readiness status of the Data Guard member. HEALTHY_AND_NOT_ROLECHANGE_TARGET + * - Indicates that the respective standby member is healthy but not currently designated to + * take failover, when auto failover is enabled. * * @param failoverReadiness the value to set * @return this builder @@ -370,6 +388,36 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** The state of managed auto failover. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedAutoFailover") + private ManagedAutoFailover managedAutoFailover; + + /** + * The state of managed auto failover. + * + * @param managedAutoFailover the value to set + * @return this builder + */ + public Builder managedAutoFailover(ManagedAutoFailover managedAutoFailover) { + this.managedAutoFailover = managedAutoFailover; + this.__explicitlySet__.add("managedAutoFailover"); + return this; + } + /** Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("failoverTargets") + private java.util.List failoverTargets; + + /** + * Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. + * + * @param failoverTargets the value to set + * @return this builder + */ + public Builder failoverTargets(java.util.List failoverTargets) { + this.failoverTargets = failoverTargets; + this.__explicitlySet__.add("failoverTargets"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -391,7 +439,9 @@ public DataGuardGroupMember build() { this.failoverReadiness, this.failoverReadinessMessage, this.dataLossExposure, - this.timeUpdated); + this.timeUpdated, + this.managedAutoFailover, + this.failoverTargets); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -445,6 +495,12 @@ public Builder copy(DataGuardGroupMember model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("managedAutoFailover")) { + this.managedAutoFailover(model.getManagedAutoFailover()); + } + if (model.wasPropertyExplicitlySet("failoverTargets")) { + this.failoverTargets(model.getFailoverTargets()); + } return this; } } @@ -733,11 +789,16 @@ public Boolean getIsActiveDataGuardEnabled() { return isActiveDataGuardEnabled; } - /** The switchover readiness status of the Data Guard member. */ + /** + * The switchover readiness status of the Data Guard member. * HEALTHY_AND_NOT_ROLECHANGE_TARGET + * - Indicates that the respective standby member is healthy but not currently designated to + * take switchover, when auto failover is enabled. + */ public enum SwitchoverReadiness implements com.oracle.bmc.http.internal.BmcEnum { Healthy("HEALTHY"), Warning("WARNING"), Critical("CRITICAL"), + HealthyAndNotRolechangeTarget("HEALTHY_AND_NOT_ROLECHANGE_TARGET"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -780,12 +841,18 @@ public static SwitchoverReadiness create(String key) { return UnknownEnumValue; } }; - /** The switchover readiness status of the Data Guard member. */ + /** + * The switchover readiness status of the Data Guard member. * HEALTHY_AND_NOT_ROLECHANGE_TARGET + * - Indicates that the respective standby member is healthy but not currently designated to + * take switchover, when auto failover is enabled. + */ @com.fasterxml.jackson.annotation.JsonProperty("switchoverReadiness") private final SwitchoverReadiness switchoverReadiness; /** - * The switchover readiness status of the Data Guard member. + * The switchover readiness status of the Data Guard member. * HEALTHY_AND_NOT_ROLECHANGE_TARGET + * - Indicates that the respective standby member is healthy but not currently designated to + * take switchover, when auto failover is enabled. * * @return the value */ @@ -810,11 +877,16 @@ public String getSwitchoverReadinessMessage() { return switchoverReadinessMessage; } - /** The failover readiness status of the Data Guard member. */ + /** + * The failover readiness status of the Data Guard member. HEALTHY_AND_NOT_ROLECHANGE_TARGET - + * Indicates that the respective standby member is healthy but not currently designated to take + * failover, when auto failover is enabled. + */ public enum FailoverReadiness implements com.oracle.bmc.http.internal.BmcEnum { Healthy("HEALTHY"), Warning("WARNING"), Critical("CRITICAL"), + HealthyAndNotRolechangeTarget("HEALTHY_AND_NOT_ROLECHANGE_TARGET"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -857,12 +929,18 @@ public static FailoverReadiness create(String key) { return UnknownEnumValue; } }; - /** The failover readiness status of the Data Guard member. */ + /** + * The failover readiness status of the Data Guard member. HEALTHY_AND_NOT_ROLECHANGE_TARGET - + * Indicates that the respective standby member is healthy but not currently designated to take + * failover, when auto failover is enabled. + */ @com.fasterxml.jackson.annotation.JsonProperty("failoverReadiness") private final FailoverReadiness failoverReadiness; /** - * The failover readiness status of the Data Guard member. + * The failover readiness status of the Data Guard member. HEALTHY_AND_NOT_ROLECHANGE_TARGET - + * Indicates that the respective standby member is healthy but not currently designated to take + * failover, when auto failover is enabled. * * @return the value */ @@ -919,6 +997,78 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** The state of managed auto failover. */ + public enum ManagedAutoFailover implements com.oracle.bmc.http.internal.BmcEnum { + Enable("ENABLE"), + Disable("DISABLE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ManagedAutoFailover.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ManagedAutoFailover v : ManagedAutoFailover.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ManagedAutoFailover(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ManagedAutoFailover create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ManagedAutoFailover', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The state of managed auto failover. */ + @com.fasterxml.jackson.annotation.JsonProperty("managedAutoFailover") + private final ManagedAutoFailover managedAutoFailover; + + /** + * The state of managed auto failover. + * + * @return the value + */ + public ManagedAutoFailover getManagedAutoFailover() { + return managedAutoFailover; + } + + /** Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("failoverTargets") + private final java.util.List failoverTargets; + + /** + * Specifies the {@code DB_UNIQUE_NAME} of the data guard group member databases. + * + * @return the value + */ + public java.util.List getFailoverTargets() { + return failoverTargets; + } + @Override public String toString() { return this.toString(true); @@ -952,6 +1102,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.failoverReadinessMessage)); sb.append(", dataLossExposure=").append(String.valueOf(this.dataLossExposure)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", managedAutoFailover=").append(String.valueOf(this.managedAutoFailover)); + sb.append(", failoverTargets=").append(String.valueOf(this.failoverTargets)); sb.append(")"); return sb.toString(); } @@ -984,6 +1136,8 @@ public boolean equals(Object o) { this.failoverReadinessMessage, other.failoverReadinessMessage) && java.util.Objects.equals(this.dataLossExposure, other.dataLossExposure) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.managedAutoFailover, other.managedAutoFailover) + && java.util.Objects.equals(this.failoverTargets, other.failoverTargets) && super.equals(other); } @@ -1032,6 +1186,14 @@ public int hashCode() { (result * PRIME) + (this.dataLossExposure == null ? 43 : this.dataLossExposure.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.managedAutoFailover == null + ? 43 + : this.managedAutoFailover.hashCode()); + result = + (result * PRIME) + + (this.failoverTargets == null ? 43 : this.failoverTargets.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java index 2e39f96cdc2..c05af5e41dc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDatabaseDetails.java @@ -36,7 +36,12 @@ public UpdateDatabaseDetails( java.util.Map freeformTags, java.util.Map> definedTags, ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, - PatchOptions patchOptions) { + PatchOptions patchOptions, + String databaseAdminPassword, + ProtectionMode protectionMode, + TransportType transportType, + Boolean isActiveDataGuardEnabled, + AutoFailoverConfiguration autoFailoverConfiguration) { super(); this.dbBackupConfig = dbBackupConfig; this.dbHomeId = dbHomeId; @@ -50,6 +55,12 @@ public UpdateDatabaseDetails( this.definedTags = definedTags; this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; this.patchOptions = patchOptions; + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.protectionMode = protectionMode; + this.transportType = transportType; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + this.autoFailoverConfiguration = autoFailoverConfiguration; } @com.fasterxml.jackson.annotation.JsonCreator @@ -64,7 +75,12 @@ public UpdateDatabaseDetails( "freeformTags", "definedTags", "managedSoftwareUpdateDetails", - "patchOptions" + "patchOptions", + "databaseAdminPassword", + "protectionMode", + "transportType", + "isActiveDataGuardEnabled", + "autoFailoverConfiguration" }) public UpdateDatabaseDetails( DbBackupConfig dbBackupConfig, @@ -76,7 +92,12 @@ public UpdateDatabaseDetails( java.util.Map freeformTags, java.util.Map> definedTags, ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, - PatchOptions patchOptions) { + PatchOptions patchOptions, + char[] databaseAdminPassword, + ProtectionMode protectionMode, + TransportType transportType, + Boolean isActiveDataGuardEnabled, + AutoFailoverConfiguration autoFailoverConfiguration) { super(); this.dbBackupConfig = dbBackupConfig; this.dbHomeId = dbHomeId; @@ -88,6 +109,11 @@ public UpdateDatabaseDetails( this.definedTags = definedTags; this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; this.patchOptions = patchOptions; + this.databaseAdminPassword = databaseAdminPassword; + this.protectionMode = protectionMode; + this.transportType = transportType; + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + this.autoFailoverConfiguration = autoFailoverConfiguration; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -279,6 +305,121 @@ public Builder patchOptions(PatchOptions patchOptions) { this.__explicitlySet__.add("patchOptions"); return this; } + /** + * The administrator password of the primary database in this Data Guard association. + * + *

*The password MUST be the same as the primary admin password.** + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + private char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. + * + *

*The password MUST be the same as the primary admin password.** + * + * @param databaseAdminPassword the value to set + * @return this builder + */ + public Builder databaseAdminPassword(char[] databaseAdminPassword) { + this.databaseAdminPassword = databaseAdminPassword; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + + public Builder databaseAdminPassword(String databaseAdminPassword) { + this.databaseAdminPassword = + databaseAdminPassword != null ? databaseAdminPassword.toCharArray() : null; + this.__explicitlySet__.add("databaseAdminPassword"); + return this; + } + /** + * The protection mode of this Data Guard. For more information, see [Oracle Data Guard + * Protection + * Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + * in the Oracle Data Guard documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private ProtectionMode protectionMode; + + /** + * The protection mode of this Data Guard. For more information, see [Oracle Data Guard + * Protection + * Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + * in the Oracle Data Guard documentation. + * + * @param protectionMode the value to set + * @return this builder + */ + public Builder protectionMode(ProtectionMode protectionMode) { + this.protectionMode = protectionMode; + this.__explicitlySet__.add("protectionMode"); + return this; + } + /** + * The redo transport type to use for this Data Guard association. Valid values depend on + * the specified {@code protectionMode}: + * + *

MAXIMUM_AVAILABILITY - SYNC or FASTSYNC * MAXIMUM_PERFORMANCE - ASYNC * + * MAXIMUM_PROTECTION - SYNC + * + *

For more information, see [Redo Transport + * Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + * in the Oracle Data Guard documentation. + * + *

*IMPORTANT** - The only transport type currently supported by the Database service is + * ASYNC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private TransportType transportType; + + /** + * The redo transport type to use for this Data Guard association. Valid values depend on + * the specified {@code protectionMode}: + * + *

MAXIMUM_AVAILABILITY - SYNC or FASTSYNC * MAXIMUM_PERFORMANCE - ASYNC * + * MAXIMUM_PROTECTION - SYNC + * + *

For more information, see [Redo Transport + * Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + * in the Oracle Data Guard documentation. + * + *

*IMPORTANT** - The only transport type currently supported by the Database service is + * ASYNC. + * + * @param transportType the value to set + * @return this builder + */ + public Builder transportType(TransportType transportType) { + this.transportType = transportType; + this.__explicitlySet__.add("transportType"); + return this; + } + /** True if active Data Guard is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isActiveDataGuardEnabled") + private Boolean isActiveDataGuardEnabled; + + /** + * True if active Data Guard is enabled. + * + * @param isActiveDataGuardEnabled the value to set + * @return this builder + */ + public Builder isActiveDataGuardEnabled(Boolean isActiveDataGuardEnabled) { + this.isActiveDataGuardEnabled = isActiveDataGuardEnabled; + this.__explicitlySet__.add("isActiveDataGuardEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoFailoverConfiguration") + private AutoFailoverConfiguration autoFailoverConfiguration; + + public Builder autoFailoverConfiguration( + AutoFailoverConfiguration autoFailoverConfiguration) { + this.autoFailoverConfiguration = autoFailoverConfiguration; + this.__explicitlySet__.add("autoFailoverConfiguration"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -295,7 +436,12 @@ public UpdateDatabaseDetails build() { this.freeformTags, this.definedTags, this.managedSoftwareUpdateDetails, - this.patchOptions); + this.patchOptions, + this.databaseAdminPassword, + this.protectionMode, + this.transportType, + this.isActiveDataGuardEnabled, + this.autoFailoverConfiguration); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -334,6 +480,21 @@ public Builder copy(UpdateDatabaseDetails model) { if (model.wasPropertyExplicitlySet("patchOptions")) { this.patchOptions(model.getPatchOptions()); } + if (model.wasPropertyExplicitlySet("databaseAdminPassword")) { + this.databaseAdminPassword(model.getDatabaseAdminPassword()); + } + if (model.wasPropertyExplicitlySet("protectionMode")) { + this.protectionMode(model.getProtectionMode()); + } + if (model.wasPropertyExplicitlySet("transportType")) { + this.transportType(model.getTransportType()); + } + if (model.wasPropertyExplicitlySet("isActiveDataGuardEnabled")) { + this.isActiveDataGuardEnabled(model.getIsActiveDataGuardEnabled()); + } + if (model.wasPropertyExplicitlySet("autoFailoverConfiguration")) { + this.autoFailoverConfiguration(model.getAutoFailoverConfiguration()); + } return this; } } @@ -533,6 +694,202 @@ public PatchOptions getPatchOptions() { return patchOptions; } + /** + * The administrator password of the primary database in this Data Guard association. + * + *

*The password MUST be the same as the primary admin password.** + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + private final char[] databaseAdminPassword; + + /** + * The administrator password of the primary database in this Data Guard association. <p> + * *The password MUST be the same as the primary admin password.** + * + * @return the value + * @deprecated Use getDatabaseAdminPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getDatabaseAdminPassword() { + return databaseAdminPassword != null ? new String(databaseAdminPassword) : null; + } + + /** + * The administrator password of the primary database in this Data Guard association. + * + *

*The password MUST be the same as the primary admin password.** + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseAdminPassword") + public char[] getDatabaseAdminPassword__AsCharArray() { + return databaseAdminPassword; + } + /** + * The protection mode of this Data Guard. For more information, see [Oracle Data Guard + * Protection + * Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + * in the Oracle Data Guard documentation. + */ + public enum ProtectionMode implements com.oracle.bmc.http.internal.BmcEnum { + MaximumAvailability("MAXIMUM_AVAILABILITY"), + MaximumPerformance("MAXIMUM_PERFORMANCE"), + MaximumProtection("MAXIMUM_PROTECTION"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProtectionMode v : ProtectionMode.values()) { + map.put(v.getValue(), v); + } + } + + ProtectionMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProtectionMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ProtectionMode: " + key); + } + }; + /** + * The protection mode of this Data Guard. For more information, see [Oracle Data Guard + * Protection + * Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + * in the Oracle Data Guard documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final ProtectionMode protectionMode; + + /** + * The protection mode of this Data Guard. For more information, see [Oracle Data Guard + * Protection + * Modes](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) + * in the Oracle Data Guard documentation. + * + * @return the value + */ + public ProtectionMode getProtectionMode() { + return protectionMode; + } + + /** + * The redo transport type to use for this Data Guard association. Valid values depend on the + * specified {@code protectionMode}: + * + *

MAXIMUM_AVAILABILITY - SYNC or FASTSYNC * MAXIMUM_PERFORMANCE - ASYNC * MAXIMUM_PROTECTION + * - SYNC + * + *

For more information, see [Redo Transport + * Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + * in the Oracle Data Guard documentation. + * + *

*IMPORTANT** - The only transport type currently supported by the Database service is + * ASYNC. + */ + public enum TransportType implements com.oracle.bmc.http.internal.BmcEnum { + Sync("SYNC"), + Async("ASYNC"), + Fastsync("FASTSYNC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TransportType v : TransportType.values()) { + map.put(v.getValue(), v); + } + } + + TransportType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TransportType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TransportType: " + key); + } + }; + /** + * The redo transport type to use for this Data Guard association. Valid values depend on the + * specified {@code protectionMode}: + * + *

MAXIMUM_AVAILABILITY - SYNC or FASTSYNC * MAXIMUM_PERFORMANCE - ASYNC * MAXIMUM_PROTECTION + * - SYNC + * + *

For more information, see [Redo Transport + * Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + * in the Oracle Data Guard documentation. + * + *

*IMPORTANT** - The only transport type currently supported by the Database service is + * ASYNC. + */ + @com.fasterxml.jackson.annotation.JsonProperty("transportType") + private final TransportType transportType; + + /** + * The redo transport type to use for this Data Guard association. Valid values depend on the + * specified {@code protectionMode}: + * + *

MAXIMUM_AVAILABILITY - SYNC or FASTSYNC * MAXIMUM_PERFORMANCE - ASYNC * MAXIMUM_PROTECTION + * - SYNC + * + *

For more information, see [Redo Transport + * Services](http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) + * in the Oracle Data Guard documentation. + * + *

*IMPORTANT** - The only transport type currently supported by the Database service is + * ASYNC. + * + * @return the value + */ + public TransportType getTransportType() { + return transportType; + } + + /** True if active Data Guard is enabled. */ + @com.fasterxml.jackson.annotation.JsonProperty("isActiveDataGuardEnabled") + private final Boolean isActiveDataGuardEnabled; + + /** + * True if active Data Guard is enabled. + * + * @return the value + */ + public Boolean getIsActiveDataGuardEnabled() { + return isActiveDataGuardEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("autoFailoverConfiguration") + private final AutoFailoverConfiguration autoFailoverConfiguration; + + public AutoFailoverConfiguration getAutoFailoverConfiguration() { + return autoFailoverConfiguration; + } + @Override public String toString() { return this.toString(true); @@ -559,6 +916,13 @@ public String toString(boolean includeByteArrayContents) { sb.append(", managedSoftwareUpdateDetails=") .append(String.valueOf(this.managedSoftwareUpdateDetails)); sb.append(", patchOptions=").append(String.valueOf(this.patchOptions)); + sb.append(", databaseAdminPassword=").append(""); + sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); + sb.append(", transportType=").append(String.valueOf(this.transportType)); + sb.append(", isActiveDataGuardEnabled=") + .append(String.valueOf(this.isActiveDataGuardEnabled)); + sb.append(", autoFailoverConfiguration=") + .append(String.valueOf(this.autoFailoverConfiguration)); sb.append(")"); return sb.toString(); } @@ -584,6 +948,13 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) && java.util.Objects.equals(this.patchOptions, other.patchOptions) + && java.util.Objects.equals(this.databaseAdminPassword, other.databaseAdminPassword) + && java.util.Objects.equals(this.protectionMode, other.protectionMode) + && java.util.Objects.equals(this.transportType, other.transportType) + && java.util.Objects.equals( + this.isActiveDataGuardEnabled, other.isActiveDataGuardEnabled) + && java.util.Objects.equals( + this.autoFailoverConfiguration, other.autoFailoverConfiguration) && super.equals(other); } @@ -621,6 +992,27 @@ public int hashCode() { ? 43 : this.managedSoftwareUpdateDetails.hashCode()); result = (result * PRIME) + (this.patchOptions == null ? 43 : this.patchOptions.hashCode()); + result = + (result * PRIME) + + (this.databaseAdminPassword == null + ? 43 + : this.databaseAdminPassword.hashCode()); + result = + (result * PRIME) + + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); + result = + (result * PRIME) + + (this.transportType == null ? 43 : this.transportType.hashCode()); + result = + (result * PRIME) + + (this.isActiveDataGuardEnabled == null + ? 43 + : this.isActiveDataGuardEnabled.hashCode()); + result = + (result * PRIME) + + (this.autoFailoverConfiguration == null + ? 43 + : this.autoFailoverConfiguration.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetAutonomousContainerDatabaseBackupRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetAutonomousContainerDatabaseBackupRequest.java new file mode 100644 index 00000000000..7b45a82236d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetAutonomousContainerDatabaseBackupRequest.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * GetAutonomousContainerDatabaseBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetAutonomousContainerDatabaseBackupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Autonomous Container Database backup + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousContainerDatabaseBackupId; + + /** + * The Autonomous Container Database backup + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getAutonomousContainerDatabaseBackupId() { + return autonomousContainerDatabaseBackupId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetAutonomousContainerDatabaseBackupRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Autonomous Container Database backup + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousContainerDatabaseBackupId = null; + + /** + * The Autonomous Container Database backup + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param autonomousContainerDatabaseBackupId the value to set + * @return this builder instance + */ + public Builder autonomousContainerDatabaseBackupId( + String autonomousContainerDatabaseBackupId) { + this.autonomousContainerDatabaseBackupId = autonomousContainerDatabaseBackupId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetAutonomousContainerDatabaseBackupRequest o) { + autonomousContainerDatabaseBackupId(o.getAutonomousContainerDatabaseBackupId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAutonomousContainerDatabaseBackupRequest 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 GetAutonomousContainerDatabaseBackupRequest + */ + public GetAutonomousContainerDatabaseBackupRequest build() { + GetAutonomousContainerDatabaseBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetAutonomousContainerDatabaseBackupRequest 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 GetAutonomousContainerDatabaseBackupRequest + */ + public GetAutonomousContainerDatabaseBackupRequest buildWithoutInvocationCallback() { + GetAutonomousContainerDatabaseBackupRequest request = + new GetAutonomousContainerDatabaseBackupRequest(); + request.autonomousContainerDatabaseBackupId = autonomousContainerDatabaseBackupId; + request.opcRequestId = opcRequestId; + return request; + // new GetAutonomousContainerDatabaseBackupRequest(autonomousContainerDatabaseBackupId, + // 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() + .autonomousContainerDatabaseBackupId(autonomousContainerDatabaseBackupId) + .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(",autonomousContainerDatabaseBackupId=") + .append(String.valueOf(this.autonomousContainerDatabaseBackupId)); + 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 GetAutonomousContainerDatabaseBackupRequest)) { + return false; + } + + GetAutonomousContainerDatabaseBackupRequest other = + (GetAutonomousContainerDatabaseBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.autonomousContainerDatabaseBackupId, + other.autonomousContainerDatabaseBackupId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousContainerDatabaseBackupId == null + ? 43 + : this.autonomousContainerDatabaseBackupId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabaseBackupsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabaseBackupsRequest.java index ce280a97427..3b66239d46c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabaseBackupsRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabaseBackupsRequest.java @@ -208,6 +208,21 @@ public String getKeyStoreId() { getInfrastructureType() { return infrastructureType; } + /** + * Filters backups based on the current Autonomous AI Database configuration; returns only those + * relevant for point-in-time recovery (PITR). Does not guarantee exclusion of backups in orphan + * ranges. + */ + private Boolean isPitrEligible; + + /** + * Filters backups based on the current Autonomous AI Database configuration; returns only those + * relevant for point-in-time recovery (PITR). Does not guarantee exclusion of backups in orphan + * ranges. + */ + public Boolean getIsPitrEligible() { + return isPitrEligible; + } /** Unique identifier for the request. */ private String opcRequestId; @@ -420,6 +435,26 @@ public Builder infrastructureType( return this; } + /** + * Filters backups based on the current Autonomous AI Database configuration; returns only + * those relevant for point-in-time recovery (PITR). Does not guarantee exclusion of backups + * in orphan ranges. + */ + private Boolean isPitrEligible = null; + + /** + * Filters backups based on the current Autonomous AI Database configuration; returns only + * those relevant for point-in-time recovery (PITR). Does not guarantee exclusion of backups + * in orphan ranges. + * + * @param isPitrEligible the value to set + * @return this builder instance + */ + public Builder isPitrEligible(Boolean isPitrEligible) { + this.isPitrEligible = isPitrEligible; + return this; + } + /** Unique identifier for the request. */ private String opcRequestId = null; @@ -476,6 +511,7 @@ public Builder copy(ListAutonomousDatabaseBackupsRequest o) { backupDestinationId(o.getBackupDestinationId()); keyStoreId(o.getKeyStoreId()); infrastructureType(o.getInfrastructureType()); + isPitrEligible(o.getIsPitrEligible()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -524,11 +560,12 @@ public ListAutonomousDatabaseBackupsRequest buildWithoutInvocationCallback() { request.backupDestinationId = backupDestinationId; request.keyStoreId = keyStoreId; request.infrastructureType = infrastructureType; + request.isPitrEligible = isPitrEligible; request.opcRequestId = opcRequestId; return request; // new ListAutonomousDatabaseBackupsRequest(autonomousDatabaseId, compartmentId, limit, // page, sortBy, sortOrder, lifecycleState, displayName, type, backupDestinationId, - // keyStoreId, infrastructureType, opcRequestId); + // keyStoreId, infrastructureType, isPitrEligible, opcRequestId); } } @@ -551,6 +588,7 @@ public Builder toBuilder() { .backupDestinationId(backupDestinationId) .keyStoreId(keyStoreId) .infrastructureType(infrastructureType) + .isPitrEligible(isPitrEligible) .opcRequestId(opcRequestId); } @@ -580,6 +618,7 @@ public String toString() { sb.append(",backupDestinationId=").append(String.valueOf(this.backupDestinationId)); sb.append(",keyStoreId=").append(String.valueOf(this.keyStoreId)); sb.append(",infrastructureType=").append(String.valueOf(this.infrastructureType)); + sb.append(",isPitrEligible=").append(String.valueOf(this.isPitrEligible)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -608,6 +647,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.backupDestinationId, other.backupDestinationId) && java.util.Objects.equals(this.keyStoreId, other.keyStoreId) && java.util.Objects.equals(this.infrastructureType, other.infrastructureType) + && java.util.Objects.equals(this.isPitrEligible, other.isPitrEligible) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -643,6 +683,9 @@ public int hashCode() { + (this.infrastructureType == null ? 43 : this.infrastructureType.hashCode()); + result = + (result * PRIME) + + (this.isPitrEligible == null ? 43 : this.isPitrEligible.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.java new file mode 100644 index 00000000000..9236b01094b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest.java @@ -0,0 +1,360 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Autonomous Container Database + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousContainerDatabaseId; + + /** + * The Autonomous Container Database + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getAutonomousContainerDatabaseId() { + return autonomousContainerDatabaseId; + } + /** + * The timestamp at which the list of autonomous databases present to be returned (ISO-8601 + * format, e.g., "2025-12-02T06:39:15Z"). The requested value must be after the end timestamp of + * the oldest available Autonomous Container Database backup. + */ + private java.util.Date timeStampRequested; + + /** + * The timestamp at which the list of autonomous databases present to be returned (ISO-8601 + * format, e.g., "2025-12-02T06:39:15Z"). The requested value must be after the end timestamp of + * the oldest available Autonomous Container Database backup. + */ + public java.util.Date getTimeStampRequested() { + return timeStampRequested; + } + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If not + * provided, uses the Autonomous Container Database's compartment. + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If not + * provided, uses the Autonomous Container Database's compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** The pagination token to continue listing from. */ + private String page; + + /** The pagination token to continue listing from. */ + public String getPage() { + return page; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest, + java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Autonomous Container Database + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousContainerDatabaseId = null; + + /** + * The Autonomous Container Database + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param autonomousContainerDatabaseId the value to set + * @return this builder instance + */ + public Builder autonomousContainerDatabaseId(String autonomousContainerDatabaseId) { + this.autonomousContainerDatabaseId = autonomousContainerDatabaseId; + return this; + } + + /** + * The timestamp at which the list of autonomous databases present to be returned (ISO-8601 + * format, e.g., "2025-12-02T06:39:15Z"). The requested value must be after the end + * timestamp of the oldest available Autonomous Container Database backup. + */ + private java.util.Date timeStampRequested = null; + + /** + * The timestamp at which the list of autonomous databases present to be returned (ISO-8601 + * format, e.g., "2025-12-02T06:39:15Z"). The requested value must be after the end + * timestamp of the oldest available Autonomous Container Database backup. + * + * @param timeStampRequested the value to set + * @return this builder instance + */ + public Builder timeStampRequested(java.util.Date timeStampRequested) { + this.timeStampRequested = timeStampRequested; + return this; + } + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If not + * provided, uses the Autonomous Container Database's compartment. + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If not + * provided, uses the Autonomous Container Database's compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The pagination token to continue listing from. */ + private String page = null; + + /** + * The pagination token to continue listing from. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest o) { + autonomousContainerDatabaseId(o.getAutonomousContainerDatabaseId()); + timeStampRequested(o.getTimeStampRequested()); + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + * 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 ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + */ + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest build() { + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + * 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 ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + */ + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest + buildWithoutInvocationCallback() { + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest request = + new ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest(); + request.autonomousContainerDatabaseId = autonomousContainerDatabaseId; + request.timeStampRequested = timeStampRequested; + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new + // ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest(autonomousContainerDatabaseId, timeStampRequested, compartmentId, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .autonomousContainerDatabaseId(autonomousContainerDatabaseId) + .timeStampRequested(timeStampRequested) + .compartmentId(compartmentId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",autonomousContainerDatabaseId=") + .append(String.valueOf(this.autonomousContainerDatabaseId)); + sb.append(",timeStampRequested=").append(String.valueOf(this.timeStampRequested)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",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 ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest)) { + return false; + } + + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest other = + (ListAutonomousDatabasesInAutonomousContainerDatabaseBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.autonomousContainerDatabaseId, other.autonomousContainerDatabaseId) + && java.util.Objects.equals(this.timeStampRequested, other.timeStampRequested) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousContainerDatabaseId == null + ? 43 + : this.autonomousContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.timeStampRequested == null + ? 43 + : this.timeStampRequested.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabasesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabasesRequest.java index 1383bf2ec77..016ba636e6b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabasesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabasesRequest.java @@ -182,6 +182,90 @@ public com.oracle.bmc.database.model.DatabaseSummary.LifecycleState getLifecycle public String getDbName() { return dbName; } + /** Filter the databases by managed auto failover param. */ + private ManagedAutoFailover managedAutoFailover; + + /** Filter the databases by managed auto failover param. */ + public enum ManagedAutoFailover implements com.oracle.bmc.http.internal.BmcEnum { + Registered("REGISTERED"), + Unregistered("UNREGISTERED"), + All("ALL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ManagedAutoFailover v : ManagedAutoFailover.values()) { + map.put(v.getValue(), v); + } + } + + ManagedAutoFailover(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ManagedAutoFailover create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ManagedAutoFailover: " + key); + } + }; + + /** Filter the databases by managed auto failover param. */ + public ManagedAutoFailover getManagedAutoFailover() { + return managedAutoFailover; + } + /** Filter the databases by failoverTargets param. */ + private FailoverTargets failoverTargets; + + /** Filter the databases by failoverTargets param. */ + public enum FailoverTargets implements com.oracle.bmc.http.internal.BmcEnum { + Defined("DEFINED"), + Undefined("UNDEFINED"), + All("ALL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FailoverTargets v : FailoverTargets.values()) { + map.put(v.getValue(), v); + } + } + + FailoverTargets(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FailoverTargets create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid FailoverTargets: " + key); + } + }; + + /** Filter the databases by failoverTargets param. */ + public FailoverTargets getFailoverTargets() { + return failoverTargets; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -340,6 +424,34 @@ public Builder dbName(String dbName) { return this; } + /** Filter the databases by managed auto failover param. */ + private ManagedAutoFailover managedAutoFailover = null; + + /** + * Filter the databases by managed auto failover param. + * + * @param managedAutoFailover the value to set + * @return this builder instance + */ + public Builder managedAutoFailover(ManagedAutoFailover managedAutoFailover) { + this.managedAutoFailover = managedAutoFailover; + return this; + } + + /** Filter the databases by failoverTargets param. */ + private FailoverTargets failoverTargets = null; + + /** + * Filter the databases by failoverTargets param. + * + * @param failoverTargets the value to set + * @return this builder instance + */ + public Builder failoverTargets(FailoverTargets failoverTargets) { + this.failoverTargets = failoverTargets; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -379,6 +491,8 @@ public Builder copy(ListDatabasesRequest o) { sortOrder(o.getSortOrder()); lifecycleState(o.getLifecycleState()); dbName(o.getDbName()); + managedAutoFailover(o.getManagedAutoFailover()); + failoverTargets(o.getFailoverTargets()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -422,9 +536,11 @@ public ListDatabasesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.lifecycleState = lifecycleState; request.dbName = dbName; + request.managedAutoFailover = managedAutoFailover; + request.failoverTargets = failoverTargets; return request; // new ListDatabasesRequest(compartmentId, dbHomeId, systemId, limit, page, sortBy, - // sortOrder, lifecycleState, dbName); + // sortOrder, lifecycleState, dbName, managedAutoFailover, failoverTargets); } } @@ -443,7 +559,9 @@ public Builder toBuilder() { .sortBy(sortBy) .sortOrder(sortOrder) .lifecycleState(lifecycleState) - .dbName(dbName); + .dbName(dbName) + .managedAutoFailover(managedAutoFailover) + .failoverTargets(failoverTargets); } /** @@ -469,6 +587,8 @@ public String toString() { sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",dbName=").append(String.valueOf(this.dbName)); + sb.append(",managedAutoFailover=").append(String.valueOf(this.managedAutoFailover)); + sb.append(",failoverTargets=").append(String.valueOf(this.failoverTargets)); sb.append(")"); return sb.toString(); } @@ -492,7 +612,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.dbName, other.dbName); + && java.util.Objects.equals(this.dbName, other.dbName) + && java.util.Objects.equals(this.managedAutoFailover, other.managedAutoFailover) + && java.util.Objects.equals(this.failoverTargets, other.failoverTargets); } @Override @@ -512,6 +634,14 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.dbName == null ? 43 : this.dbName.hashCode()); + result = + (result * PRIME) + + (this.managedAutoFailover == null + ? 43 + : this.managedAutoFailover.hashCode()); + result = + (result * PRIME) + + (this.failoverTargets == null ? 43 : this.failoverTargets.hashCode()); return result; } } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetAutonomousContainerDatabaseBackupResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetAutonomousContainerDatabaseBackupResponse.java new file mode 100644 index 00000000000..adf367c3998 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetAutonomousContainerDatabaseBackupResponse.java @@ -0,0 +1,191 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetAutonomousContainerDatabaseBackupResponse + 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 AutonomousContainerDatabaseBackup} instance. */ + private com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + autonomousContainerDatabaseBackup; + + /** + * The returned {@code AutonomousContainerDatabaseBackup} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + getAutonomousContainerDatabaseBackup() { + return autonomousContainerDatabaseBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "autonomousContainerDatabaseBackup" + }) + private GetAutonomousContainerDatabaseBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + autonomousContainerDatabaseBackup) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.autonomousContainerDatabaseBackup = autonomousContainerDatabaseBackup; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetAutonomousContainerDatabaseBackupResponse> { + 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 AutonomousContainerDatabaseBackup} instance. */ + private com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + autonomousContainerDatabaseBackup; + + /** + * The returned {@code AutonomousContainerDatabaseBackup} instance. + * + * @param autonomousContainerDatabaseBackup the value to set + * @return this builder + */ + public Builder autonomousContainerDatabaseBackup( + com.oracle.bmc.database.model.AutonomousContainerDatabaseBackup + autonomousContainerDatabaseBackup) { + this.autonomousContainerDatabaseBackup = autonomousContainerDatabaseBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetAutonomousContainerDatabaseBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + autonomousContainerDatabaseBackup(o.getAutonomousContainerDatabaseBackup()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetAutonomousContainerDatabaseBackupResponse build() { + return new GetAutonomousContainerDatabaseBackupResponse( + __httpStatusCode__, headers, opcRequestId, autonomousContainerDatabaseBackup); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",autonomousContainerDatabaseBackup=") + .append(String.valueOf(autonomousContainerDatabaseBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAutonomousContainerDatabaseBackupResponse)) { + return false; + } + + GetAutonomousContainerDatabaseBackupResponse other = + (GetAutonomousContainerDatabaseBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.autonomousContainerDatabaseBackup, + other.autonomousContainerDatabaseBackup); + } + + @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.autonomousContainerDatabaseBackup == null + ? 43 + : this.autonomousContainerDatabaseBackup.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.java new file mode 100644 index 00000000000..2056ceaac27 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then there are additional items still to get. Include this value as the {@code + * page} parameter for the subsequent GET request. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code AutonomousDatabaseInBackupCollection} instance. */ + private com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection + autonomousDatabaseInBackupCollection; + + /** + * The returned {@code AutonomousDatabaseInBackupCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection + getAutonomousDatabaseInBackupCollection() { + return autonomousDatabaseInBackupCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "autonomousDatabaseInBackupCollection" + }) + private ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection + autonomousDatabaseInBackupCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.autonomousDatabaseInBackupCollection = autonomousDatabaseInBackupCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then there are additional items still to get. Include this value as the + * {@code page} parameter for the subsequent GET request. For information about pagination, + * see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code AutonomousDatabaseInBackupCollection} instance. */ + private com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection + autonomousDatabaseInBackupCollection; + + /** + * The returned {@code AutonomousDatabaseInBackupCollection} instance. + * + * @param autonomousDatabaseInBackupCollection the value to set + * @return this builder + */ + public Builder autonomousDatabaseInBackupCollection( + com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection + autonomousDatabaseInBackupCollection) { + this.autonomousDatabaseInBackupCollection = autonomousDatabaseInBackupCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + autonomousDatabaseInBackupCollection(o.getAutonomousDatabaseInBackupCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse build() { + return new ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + autonomousDatabaseInBackupCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",autonomousDatabaseInBackupCollection=") + .append(String.valueOf(autonomousDatabaseInBackupCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse)) { + return false; + } + + ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse other = + (ListAutonomousDatabasesInAutonomousContainerDatabaseBackupResponse) 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.autonomousDatabaseInBackupCollection, + other.autonomousDatabaseInBackupCollection); + } + + @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.autonomousDatabaseInBackupCollection == null + ? 43 + : this.autonomousDatabaseInBackupCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json index 0971f0505b8..3c3b9d619be 100644 --- a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json +++ b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json @@ -295,6 +295,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutoFailoverConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutoFailoverConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutoFailoverConfiguration$ManagedAutoFailover", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.AutomatedMountDetails", @@ -1074,6 +1094,46 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseInBackup$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseInBackupCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseInBackupSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseInBackupSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.AutonomousDatabaseInBackupSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.AutonomousDatabaseKeyHistoryEntry", @@ -3578,6 +3638,44 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateAutonomousContainerDatabaseFromBackupDetails$CloneType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateAutonomousContainerDatabaseFromBackupDetails$CloneBandWidth", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateAutonomousContainerDatabaseFromBackupTimestampDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateAutonomousContainerDatabaseFromBackupTimestampDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateAutonomousContainerDatabaseFromBackupTimestampDetails$CloneType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.CreateAutonomousContainerDatabaseFromBackupTimestampDetails$CloneBandWidth", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.CreateAutonomousDatabaseBackupDetails", @@ -5105,6 +5203,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.DataGuardGroup$ManagedAutoFailOverReadiness", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.DataGuardGroupMember", @@ -5143,6 +5247,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.DataGuardGroupMember$ManagedAutoFailover", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.DataPatchOptions", @@ -11000,6 +11110,18 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateDatabaseDetails$ProtectionMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.UpdateDatabaseDetails$TransportType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.UpdateDatabaseSoftwareImageDetails", diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 8c1e9de3432..15a0100420c 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 39e15f2f1bb..ec0bd15b5a6 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index bf969df40a0..462821b79e2 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 7d988827e91..27af9a511a2 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 71134ef7823..fa8957b72de 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index 2715c584c02..f19a4ccc4e6 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 3b0f9afc9d9..0fec081893a 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 42eb37bd054..36ad90a4500 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 3a54ac37752..c96dd8917ad 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 65c8d056784..dea297a20f9 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index c25beabf04b..14dea436311 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 0cd0cd4b2ba..83e0fea9691 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index 8acb80b0d65..310958203a5 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 62af747a38d..84540bb57e0 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 95ac1717355..faf17e354eb 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 67f7df06427..389a6117d02 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index d15ba0d634f..2c658b2db79 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 0dfe4b62867..5b8e6081116 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 25115f1fedc..f2ce37ef6a7 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index cece53b867b..bc9a430baee 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index d8c7079d4e0..851342115c8 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 947867ec31d..51c21665d20 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.93.0 + 3.94.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 1a39bb653f0..0b1c2a340e5 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index e66618d8e45..c461cc53a0a 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 8aef1cba854..4376997f5b0 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 8c18e880ce3..ef59a5e2ec9 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.93.0 + 3.94.0 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 7ee72f570fc..901617a62c1 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.93.0 + 3.94.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 26ecb39ce73..9012a028073 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 7b2525ade8e..a00966629da 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.93.0 + 3.94.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index c490c7d9f41..68f79142813 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 9a18ef2eeee..1c5d8ea6160 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index c6acba0e607..59ca932075a 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 8e1c402c3b2..8253a8fe778 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.93.0 + 3.94.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index ff4154526d8..d77be60afb2 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index feda258b9d6..a0191ef2b02 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index 87650aa90f4..b8fed27c777 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 2eac3734585..0bc151b3bfb 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index 7a8dabdad62..13d6ca40fdd 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 63702a30668..a3490363bc8 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 0114baeecc4..3c5d29d8790 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 0a6cf710a96..dccaa89913b 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index f4152bd9577..becd002cc6a 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index b847ca7a3eb..f5b80d209d2 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 8942b773ae6..07b7eab0b2c 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 7746da07188..4550aa44e7b 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index c24548c30bb..554d08d8fb6 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index a185a892463..8b474295b18 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 6a086d01abc..2949f64e26f 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 7d9f1fbd92f..7598e157edd 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 850559d2703..12eebd090ac 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index c212bd91533..7c118df97d5 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index cdda5dc2097..5d1cd0db735 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index cb1978899f7..6e3bfed1ee5 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 325b38f918f..aacbf61ea7f 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index d8f4058b2d2..468d957924f 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 402d88782c2..e17430148d3 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index a78daade9f4..43b6bb6fcbe 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 9f430bad3d2..2e28fd79ce9 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index c64e01ac16a..f0dcdddbd4e 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 4db3dc79f42..544f4c76359 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index b55be13e037..3d9b9bab21a 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index aff614d86dc..35b952c0cb6 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 57a6ae07c3c..0a2f6e51938 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index b7a38a8ad4e..3ebd9dd1596 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 99da1de5049..7dcd3123ab0 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index ebd9f376b86..bc3825a56c3 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index d5248f52d48..1d92f67dc93 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 3aa4182d798..944b49fede2 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 2c51d783acc..38025c55060 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file 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 index e51d73540a1..c33ae04ebf1 100644 --- a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Offer.java +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/Offer.java @@ -140,6 +140,22 @@ public interface Offer extends AutoCloseable { */ ListOffersResponse listOffers(ListOffersRequest request); + /** + * Sends an Offer to be reviewed and accepted by the buyer. Validation will be run on the offer + * first to verify the offer is valid and contains all required fields. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use SendOffer API. + */ + SendOfferResponse sendOffer(SendOfferRequest request); + /** * Updates the Offer * @@ -155,6 +171,22 @@ public interface Offer extends AutoCloseable { */ UpdateOfferResponse updateOffer(UpdateOfferRequest request); + /** + * Withdraws an Offer and sends it back into DRAFT state. Offers can only be withdrawn before + * they are accepted by the buyer. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use WithdrawOffer API. + */ + WithdrawOfferResponse withdrawOffer(WithdrawOfferRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * 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 index 7a3e3fad59c..e0692e05de9 100644 --- a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsync.java +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsync.java @@ -135,6 +135,21 @@ java.util.concurrent.Future listOffers( ListOffersRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Sends an Offer to be reviewed and accepted by the buyer. Validation will be run on the offer + * first to verify the offer is valid and contains all required fields. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future sendOffer( + SendOfferRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Updates the Offer * @@ -148,4 +163,20 @@ java.util.concurrent.Future listOffers( java.util.concurrent.Future updateOffer( UpdateOfferRequest request, com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Withdraws an Offer and sends it back into DRAFT state. Offers can only be withdrawn before + * they are accepted by the buyer. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future withdrawOffer( + WithdrawOfferRequest 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 index c9d882dd7fc..5f0c4d6d7b8 100644 --- a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsyncClient.java +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferAsyncClient.java @@ -239,6 +239,34 @@ public java.util.concurrent.Future listOffers( .callAsync(handler); } + @Override + public java.util.concurrent.Future sendOffer( + SendOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, SendOfferResponse::builder) + .logger(LOG, "sendOffer") + .serviceDetails("Offer", "SendOffer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SendOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("actions") + .appendPathParam("sendOffer") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", SendOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SendOfferResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateOffer( UpdateOfferRequest request, @@ -269,6 +297,34 @@ public java.util.concurrent.Future updateOffer( .callAsync(handler); } + @Override + public java.util.concurrent.Future withdrawOffer( + WithdrawOfferRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, WithdrawOfferResponse::builder) + .logger(LOG, "withdrawOffer") + .serviceDetails("Offer", "WithdrawOffer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(WithdrawOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("actions") + .appendPathParam("withdrawOffer") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", WithdrawOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", WithdrawOfferResponse.Builder::opcRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * 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 index 723ea9ca7f4..2f5c9c4778c 100644 --- a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferClient.java +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferClient.java @@ -256,6 +256,32 @@ public ListOffersResponse listOffers(ListOffersRequest request) { .callSync(); } + @Override + public SendOfferResponse sendOffer(SendOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, SendOfferResponse::builder) + .logger(LOG, "sendOffer") + .serviceDetails("Offer", "SendOffer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SendOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("actions") + .appendPathParam("sendOffer") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", SendOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SendOfferResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateOfferResponse updateOffer(UpdateOfferRequest request) { @@ -284,6 +310,32 @@ public UpdateOfferResponse updateOffer(UpdateOfferRequest request) { .callSync(); } + @Override + public WithdrawOfferResponse withdrawOffer(WithdrawOfferRequest request) { + + Validate.notBlank(request.getOfferId(), "offerId must not be blank"); + + return clientCall(request, WithdrawOfferResponse::builder) + .logger(LOG, "withdrawOffer") + .serviceDetails("Offer", "WithdrawOffer", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(WithdrawOfferRequest::builder) + .basePath("/20220901") + .appendPathParam("offers") + .appendPathParam(request.getOfferId()) + .appendPathParam("actions") + .appendPathParam("withdrawOffer") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", WithdrawOfferResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", WithdrawOfferResponse.Builder::opcRequestId) + .callSync(); + } + @Override public OfferWaiters getWaiters() { return waiters; diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuote.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuote.java new file mode 100644 index 00000000000..98914873dfd --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuote.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OfferQuote 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 quote. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CreateOfferQuote + * API. + */ + CreateOfferQuoteResponse createOfferQuote(CreateOfferQuoteRequest request); + + /** + * Deletes an offer quote 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 DeleteOfferQuote + * API. + */ + DeleteOfferQuoteResponse deleteOfferQuote(DeleteOfferQuoteRequest request); + + /** + * Gets an offer quote 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 GetOfferQuote API. + */ + GetOfferQuoteResponse getOfferQuote(GetOfferQuoteRequest request); + + /** + * Gets an offer quote 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 + * GetOfferQuoteInternalDetail API. + */ + GetOfferQuoteInternalDetailResponse getOfferQuoteInternalDetail( + GetOfferQuoteInternalDetailRequest request); + + /** + * Returns a list of offer quotes. Requires either a reseller compartment ID or an ISV + * compartment ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListOfferQuotes + * API. + */ + ListOfferQuotesResponse listOfferQuotes(ListOfferQuotesRequest request); + + /** + * ISV responds to an offer quote for reseller to review. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use RespondToOfferQuote + * API. + */ + RespondToOfferQuoteResponse respondToOfferQuote(RespondToOfferQuoteRequest request); + + /** + * Sends an offer quote to be reviewed and updated by the ISV. Validation will be run on the + * offer quote first to verify it is valid and contains all required fields. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

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

Example: Click here to see how to use UpdateOfferQuote + * API. + */ + UpdateOfferQuoteResponse updateOfferQuote(UpdateOfferQuoteRequest request); + + /** + * Withdraws an offer quote and transitions to previous state. Offer quotes can only be + * withdrawn by reseller before the ISV response and withdrawn by the ISV before reseller + * acceptance. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use WithdrawOfferQuote + * API. + */ + WithdrawOfferQuoteResponse withdrawOfferQuote(WithdrawOfferQuoteRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + OfferQuoteWaiters 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. + */ + OfferQuotePaginators getPaginators(); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsync.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsync.java new file mode 100644 index 00000000000..55ae41ecb97 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsync.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OfferQuoteAsync 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 quote. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createOfferQuote( + CreateOfferQuoteRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes an offer quote 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 deleteOfferQuote( + DeleteOfferQuoteRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets an offer quote 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 getOfferQuote( + GetOfferQuoteRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets an offer quote 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 getOfferQuoteInternalDetail( + GetOfferQuoteInternalDetailRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetOfferQuoteInternalDetailRequest, GetOfferQuoteInternalDetailResponse> + handler); + + /** + * Returns a list of offer quotes. Requires either a reseller compartment ID or an ISV + * compartment ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOfferQuotes( + ListOfferQuotesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * ISV responds to an offer quote for reseller to review. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future respondToOfferQuote( + RespondToOfferQuoteRequest request, + com.oracle.bmc.responses.AsyncHandler< + RespondToOfferQuoteRequest, RespondToOfferQuoteResponse> + handler); + + /** + * Sends an offer quote to be reviewed and updated by the ISV. Validation will be run on the + * offer quote first to verify it is valid and contains all required fields. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future sendOfferQuote( + SendOfferQuoteRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates the offer quote. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateOfferQuote( + UpdateOfferQuoteRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Withdraws an offer quote and transitions to previous state. Offer quotes can only be + * withdrawn by reseller before the ISV response and withdrawn by the ISV before reseller + * acceptance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future withdrawOfferQuote( + WithdrawOfferQuoteRequest request, + com.oracle.bmc.responses.AsyncHandler< + WithdrawOfferQuoteRequest, WithdrawOfferQuoteResponse> + handler); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsyncClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsyncClient.java new file mode 100644 index 00000000000..f39875bda57 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteAsyncClient.java @@ -0,0 +1,542 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OfferQuote 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 OfferQuoteAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements OfferQuoteAsync { + /** Service instance for OfferQuote. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(OfferQuoteClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferQuoteAsyncClient.class); + + OfferQuoteAsyncClient( + 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.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public OfferQuoteAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new OfferQuoteAsyncClient(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 createOfferQuote( + CreateOfferQuoteRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateOfferQuoteRequest, CreateOfferQuoteResponse> + handler) { + Objects.requireNonNull( + request.getCreateOfferQuoteDetails(), "createOfferQuoteDetails is required"); + + return clientCall(request, CreateOfferQuoteResponse::builder) + .logger(LOG, "createOfferQuote") + .serviceDetails("OfferQuote", "CreateOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.class, + CreateOfferQuoteResponse.Builder::offerQuote) + .handleResponseHeaderString( + "opc-request-id", CreateOfferQuoteResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateOfferQuoteResponse.Builder::etag) + .handleResponseHeaderString("location", CreateOfferQuoteResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateOfferQuoteResponse.Builder::contentLocation) + .handleResponseHeaderString( + "opc-work-request-id", CreateOfferQuoteResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteOfferQuote( + DeleteOfferQuoteRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteOfferQuoteRequest, DeleteOfferQuoteResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, DeleteOfferQuoteResponse::builder) + .logger(LOG, "deleteOfferQuote") + .serviceDetails("OfferQuote", "DeleteOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteOfferQuoteResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getOfferQuote( + GetOfferQuoteRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, GetOfferQuoteResponse::builder) + .logger(LOG, "getOfferQuote") + .serviceDetails("OfferQuote", "GetOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.class, + GetOfferQuoteResponse.Builder::offerQuote) + .handleResponseHeaderString("etag", GetOfferQuoteResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferQuoteResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getOfferQuoteInternalDetail( + GetOfferQuoteInternalDetailRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetOfferQuoteInternalDetailRequest, + GetOfferQuoteInternalDetailResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, GetOfferQuoteInternalDetailResponse::builder) + .logger(LOG, "getOfferQuoteInternalDetail") + .serviceDetails("OfferQuote", "GetOfferQuoteInternalDetail", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferQuoteInternalDetailRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("internalDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail.class, + GetOfferQuoteInternalDetailResponse.Builder::offerQuoteInternalDetail) + .handleResponseHeaderString( + "etag", GetOfferQuoteInternalDetailResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferQuoteInternalDetailResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOfferQuotes( + ListOfferQuotesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOfferQuotesRequest, ListOfferQuotesResponse> + handler) { + + return clientCall(request, ListOfferQuotesResponse::builder) + .logger(LOG, "listOfferQuotes") + .serviceDetails("OfferQuote", "ListOfferQuotes", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOfferQuotesRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendQueryParam("resellerCompartmentId", request.getResellerCompartmentId()) + .appendQueryParam("isvCompartmentId", request.getIsvCompartmentId()) + .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.OfferQuoteCollection.class, + ListOfferQuotesResponse.Builder::offerQuoteCollection) + .handleResponseHeaderString( + "opc-request-id", ListOfferQuotesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOfferQuotesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future respondToOfferQuote( + RespondToOfferQuoteRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RespondToOfferQuoteRequest, RespondToOfferQuoteResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + Objects.requireNonNull( + request.getRespondToOfferQuoteDetails(), "respondToOfferQuoteDetails is required"); + + return clientCall(request, RespondToOfferQuoteResponse::builder) + .logger(LOG, "respondToOfferQuote") + .serviceDetails("OfferQuote", "RespondToOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RespondToOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("actions") + .appendPathParam("respondToOfferQuote") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RespondToOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RespondToOfferQuoteResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future sendOfferQuote( + SendOfferQuoteRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SendOfferQuoteRequest, SendOfferQuoteResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, SendOfferQuoteResponse::builder) + .logger(LOG, "sendOfferQuote") + .serviceDetails("OfferQuote", "SendOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SendOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("actions") + .appendPathParam("sendOfferQuote") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-work-request-id", SendOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SendOfferQuoteResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateOfferQuote( + UpdateOfferQuoteRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateOfferQuoteRequest, UpdateOfferQuoteResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + Objects.requireNonNull( + request.getUpdateOfferQuoteDetails(), "updateOfferQuoteDetails is required"); + + return clientCall(request, UpdateOfferQuoteResponse::builder) + .logger(LOG, "updateOfferQuote") + .serviceDetails("OfferQuote", "UpdateOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.class, + UpdateOfferQuoteResponse.Builder::offerQuote) + .handleResponseHeaderString("etag", UpdateOfferQuoteResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOfferQuoteResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdateOfferQuoteResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future withdrawOfferQuote( + WithdrawOfferQuoteRequest request, + final com.oracle.bmc.responses.AsyncHandler< + WithdrawOfferQuoteRequest, WithdrawOfferQuoteResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, WithdrawOfferQuoteResponse::builder) + .logger(LOG, "withdrawOfferQuote") + .serviceDetails("OfferQuote", "WithdrawOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(WithdrawOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("actions") + .appendPathParam("withdrawOfferQuote") + .appendQueryParam("resellerCompartmentId", request.getResellerCompartmentId()) + .appendQueryParam("isvCompartmentId", request.getIsvCompartmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-work-request-id", WithdrawOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", WithdrawOfferQuoteResponse.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 OfferQuoteAsyncClient( + 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 OfferQuoteAsyncClient( + 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 OfferQuoteAsyncClient( + 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 OfferQuoteAsyncClient( + 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 OfferQuoteAsyncClient( + 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 OfferQuoteAsyncClient( + 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 OfferQuoteAsyncClient( + 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/OfferQuoteClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteClient.java new file mode 100644 index 00000000000..d59a5970671 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteClient.java @@ -0,0 +1,598 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 OfferQuoteClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements OfferQuote { + /** Service instance for OfferQuote. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(OfferQuoteClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferQuoteClient.class); + + private final OfferQuoteWaiters waiters; + + private final OfferQuotePaginators paginators; + + OfferQuoteClient( + 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("OfferQuote-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new OfferQuoteWaiters(executorService, this); + + this.paginators = new OfferQuotePaginators(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.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public OfferQuoteClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new OfferQuoteClient(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 CreateOfferQuoteResponse createOfferQuote(CreateOfferQuoteRequest request) { + Objects.requireNonNull( + request.getCreateOfferQuoteDetails(), "createOfferQuoteDetails is required"); + + return clientCall(request, CreateOfferQuoteResponse::builder) + .logger(LOG, "createOfferQuote") + .serviceDetails("OfferQuote", "CreateOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.class, + CreateOfferQuoteResponse.Builder::offerQuote) + .handleResponseHeaderString( + "opc-request-id", CreateOfferQuoteResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreateOfferQuoteResponse.Builder::etag) + .handleResponseHeaderString("location", CreateOfferQuoteResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateOfferQuoteResponse.Builder::contentLocation) + .handleResponseHeaderString( + "opc-work-request-id", CreateOfferQuoteResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteOfferQuoteResponse deleteOfferQuote(DeleteOfferQuoteRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, DeleteOfferQuoteResponse::builder) + .logger(LOG, "deleteOfferQuote") + .serviceDetails("OfferQuote", "DeleteOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteOfferQuoteResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOfferQuoteResponse getOfferQuote(GetOfferQuoteRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, GetOfferQuoteResponse::builder) + .logger(LOG, "getOfferQuote") + .serviceDetails("OfferQuote", "GetOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.class, + GetOfferQuoteResponse.Builder::offerQuote) + .handleResponseHeaderString("etag", GetOfferQuoteResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferQuoteResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetOfferQuoteInternalDetailResponse getOfferQuoteInternalDetail( + GetOfferQuoteInternalDetailRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, GetOfferQuoteInternalDetailResponse::builder) + .logger(LOG, "getOfferQuoteInternalDetail") + .serviceDetails("OfferQuote", "GetOfferQuoteInternalDetail", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetOfferQuoteInternalDetailRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("internalDetails") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail.class, + GetOfferQuoteInternalDetailResponse.Builder::offerQuoteInternalDetail) + .handleResponseHeaderString( + "etag", GetOfferQuoteInternalDetailResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetOfferQuoteInternalDetailResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListOfferQuotesResponse listOfferQuotes(ListOfferQuotesRequest request) { + + return clientCall(request, ListOfferQuotesResponse::builder) + .logger(LOG, "listOfferQuotes") + .serviceDetails("OfferQuote", "ListOfferQuotes", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOfferQuotesRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendQueryParam("resellerCompartmentId", request.getResellerCompartmentId()) + .appendQueryParam("isvCompartmentId", request.getIsvCompartmentId()) + .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.OfferQuoteCollection.class, + ListOfferQuotesResponse.Builder::offerQuoteCollection) + .handleResponseHeaderString( + "opc-request-id", ListOfferQuotesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOfferQuotesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public RespondToOfferQuoteResponse respondToOfferQuote(RespondToOfferQuoteRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + Objects.requireNonNull( + request.getRespondToOfferQuoteDetails(), "respondToOfferQuoteDetails is required"); + + return clientCall(request, RespondToOfferQuoteResponse::builder) + .logger(LOG, "respondToOfferQuote") + .serviceDetails("OfferQuote", "RespondToOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RespondToOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("actions") + .appendPathParam("respondToOfferQuote") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RespondToOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RespondToOfferQuoteResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public SendOfferQuoteResponse sendOfferQuote(SendOfferQuoteRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, SendOfferQuoteResponse::builder) + .logger(LOG, "sendOfferQuote") + .serviceDetails("OfferQuote", "SendOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SendOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("actions") + .appendPathParam("sendOfferQuote") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", SendOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SendOfferQuoteResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateOfferQuoteResponse updateOfferQuote(UpdateOfferQuoteRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + Objects.requireNonNull( + request.getUpdateOfferQuoteDetails(), "updateOfferQuoteDetails is required"); + + return clientCall(request, UpdateOfferQuoteResponse::builder) + .logger(LOG, "updateOfferQuote") + .serviceDetails("OfferQuote", "UpdateOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.class, + UpdateOfferQuoteResponse.Builder::offerQuote) + .handleResponseHeaderString("etag", UpdateOfferQuoteResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateOfferQuoteResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdateOfferQuoteResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public WithdrawOfferQuoteResponse withdrawOfferQuote(WithdrawOfferQuoteRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, WithdrawOfferQuoteResponse::builder) + .logger(LOG, "withdrawOfferQuote") + .serviceDetails("OfferQuote", "WithdrawOfferQuote", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(WithdrawOfferQuoteRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("actions") + .appendPathParam("withdrawOfferQuote") + .appendQueryParam("resellerCompartmentId", request.getResellerCompartmentId()) + .appendQueryParam("isvCompartmentId", request.getIsvCompartmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", WithdrawOfferQuoteResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", WithdrawOfferQuoteResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public OfferQuoteWaiters getWaiters() { + return waiters; + } + + @Override + public OfferQuotePaginators 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 OfferQuoteClient( + 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 OfferQuoteClient( + 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 OfferQuoteClient( + 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 OfferQuoteClient( + 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 OfferQuoteClient( + 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 OfferQuoteClient( + 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 OfferQuoteClient( + 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 OfferQuoteClient( + 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/OfferQuotePaginators.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuotePaginators.java new file mode 100644 index 00000000000..8db7cdf4cc7 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuotePaginators.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OfferQuote 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 OfferQuotePaginators { + private final OfferQuote client; + + public OfferQuotePaginators(OfferQuote client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOfferQuotes 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 listOfferQuotesResponseIterator( + final ListOfferQuotesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOfferQuotesRequest.Builder, ListOfferQuotesRequest, ListOfferQuotesResponse>( + new java.util.function.Supplier() { + @Override + public ListOfferQuotesRequest.Builder get() { + return ListOfferQuotesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOfferQuotesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOfferQuotesRequest.Builder>, + ListOfferQuotesRequest>() { + @Override + public ListOfferQuotesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOfferQuotesRequest.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 ListOfferQuotesResponse apply(ListOfferQuotesRequest request) { + return client.listOfferQuotes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteSummary} objects contained in + * responses from the listOfferQuotes 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.OfferQuoteSummary} objects contained in + * responses received from the service. + */ + public Iterable + listOfferQuotesRecordIterator(final ListOfferQuotesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOfferQuotesRequest.Builder, + ListOfferQuotesRequest, + ListOfferQuotesResponse, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteSummary>( + new java.util.function.Supplier() { + @Override + public ListOfferQuotesRequest.Builder get() { + return ListOfferQuotesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOfferQuotesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOfferQuotesRequest.Builder>, + ListOfferQuotesRequest>() { + @Override + public ListOfferQuotesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOfferQuotesRequest.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 ListOfferQuotesResponse apply(ListOfferQuotesRequest request) { + return client.listOfferQuotes(request); + } + }, + new java.util.function.Function< + ListOfferQuotesResponse, + java.util.List< + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteSummary> + apply(ListOfferQuotesResponse response) { + return response.getOfferQuoteCollection().getItems(); + } + }); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteWaiters.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteWaiters.java new file mode 100644 index 00000000000..cc94e54630d --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/OfferQuoteWaiters.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 OfferQuote. + * + *

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 OfferQuoteWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final OfferQuote client; + + public OfferQuoteWaiters( + java.util.concurrent.ExecutorService executorService, OfferQuote 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 forOfferQuote( + GetOfferQuoteRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.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 forOfferQuote( + 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 forOfferQuote( + GetOfferQuoteRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.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 forOfferQuote( + 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 forOfferQuote( + GetOfferQuoteRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.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 forOfferQuote( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for OfferQuote. + private com.oracle.bmc.waiter.Waiter forOfferQuote( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetOfferQuoteRequest request, + final com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.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< + GetOfferQuoteRequest, GetOfferQuoteResponse>() { + @Override + public GetOfferQuoteResponse apply(GetOfferQuoteRequest request) { + return client.getOfferQuote(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetOfferQuoteResponse response) { + return targetStatesSet.contains( + response.getOfferQuote().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote + .LifecycleState.Deleted)), + request); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachment.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachment.java new file mode 100644 index 00000000000..9479be55bf9 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachment.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 QuoteAttachment 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 quote 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 + * CreateQuoteAttachment API. + */ + CreateQuoteAttachmentResponse createQuoteAttachment(CreateQuoteAttachmentRequest request); + + /** + * Deletes an offer quote 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 + * DeleteQuoteAttachment API. + */ + DeleteQuoteAttachmentResponse deleteQuoteAttachment(DeleteQuoteAttachmentRequest request); + + /** + * Gets an offer quote 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 GetQuoteAttachment + * API. + */ + GetQuoteAttachmentResponse getQuoteAttachment(GetQuoteAttachmentRequest request); + + /** + * Gets an offer quote 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 + * GetQuoteAttachmentContent API. + */ + GetQuoteAttachmentContentResponse getQuoteAttachmentContent( + GetQuoteAttachmentContentRequest request); + + /** + * Returns a list of offer quote attachments. Requires either a reseller compartment ID or an + * ISV compartment ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListQuoteAttachments API. + */ + ListQuoteAttachmentsResponse listQuoteAttachments(ListQuoteAttachmentsRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + QuoteAttachmentWaiters 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. + */ + QuoteAttachmentPaginators getPaginators(); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsync.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsync.java new file mode 100644 index 00000000000..9e0ab7b8cc5 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsync.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 QuoteAttachmentAsync 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 quote 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 createQuoteAttachment( + CreateQuoteAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateQuoteAttachmentRequest, CreateQuoteAttachmentResponse> + handler); + + /** + * Deletes an offer quote 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 deleteQuoteAttachment( + DeleteQuoteAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteQuoteAttachmentRequest, DeleteQuoteAttachmentResponse> + handler); + + /** + * Gets an offer quote 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 getQuoteAttachment( + GetQuoteAttachmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetQuoteAttachmentRequest, GetQuoteAttachmentResponse> + handler); + + /** + * Gets an offer quote 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 getQuoteAttachmentContent( + GetQuoteAttachmentContentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetQuoteAttachmentContentRequest, GetQuoteAttachmentContentResponse> + handler); + + /** + * Returns a list of offer quote attachments. Requires either a reseller compartment ID or an + * ISV compartment ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listQuoteAttachments( + ListQuoteAttachmentsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListQuoteAttachmentsRequest, ListQuoteAttachmentsResponse> + handler); +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsyncClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsyncClient.java new file mode 100644 index 00000000000..31a43ae7ac3 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentAsyncClient.java @@ -0,0 +1,462 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 QuoteAttachment 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 QuoteAttachmentAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements QuoteAttachmentAsync { + /** Service instance for QuoteAttachment. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(QuoteAttachmentClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(QuoteAttachmentAsyncClient.class); + + QuoteAttachmentAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + QuoteAttachmentAsyncClient( + 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( + "QuoteAttachmentAsyncClient", "getQuoteAttachmentContent")); + } + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, QuoteAttachmentAsyncClient> { + private boolean isStreamWarningEnabled = true; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "marketplaceprivateoffer"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .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 QuoteAttachmentAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new QuoteAttachmentAsyncClient( + 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 createQuoteAttachment( + CreateQuoteAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateQuoteAttachmentRequest, CreateQuoteAttachmentResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + Objects.requireNonNull( + request.getCreateQuoteAttachmentDetails(), + "createQuoteAttachmentDetails is required"); + + return clientCall(request, CreateQuoteAttachmentResponse::builder) + .logger(LOG, "createQuoteAttachment") + .serviceDetails("QuoteAttachment", "CreateQuoteAttachment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateQuoteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.class, + CreateQuoteAttachmentResponse.Builder::quoteAttachment) + .handleResponseHeaderString("etag", CreateQuoteAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateQuoteAttachmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateQuoteAttachmentResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateQuoteAttachmentResponse.Builder::contentLocation) + .handleResponseHeaderString( + "opc-work-request-id", + CreateQuoteAttachmentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteQuoteAttachment( + DeleteQuoteAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteQuoteAttachmentRequest, DeleteQuoteAttachmentResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + Validate.notBlank(request.getQuoteAttachmentId(), "quoteAttachmentId must not be blank"); + + return clientCall(request, DeleteQuoteAttachmentResponse::builder) + .logger(LOG, "deleteQuoteAttachment") + .serviceDetails("QuoteAttachment", "DeleteQuoteAttachment", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteQuoteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendPathParam(request.getQuoteAttachmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteQuoteAttachmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteQuoteAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getQuoteAttachment( + GetQuoteAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetQuoteAttachmentRequest, GetQuoteAttachmentResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + Validate.notBlank(request.getQuoteAttachmentId(), "quoteAttachmentId must not be blank"); + + return clientCall(request, GetQuoteAttachmentResponse::builder) + .logger(LOG, "getQuoteAttachment") + .serviceDetails("QuoteAttachment", "GetQuoteAttachment", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetQuoteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendPathParam(request.getQuoteAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.class, + GetQuoteAttachmentResponse.Builder::quoteAttachment) + .handleResponseHeaderString("etag", GetQuoteAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetQuoteAttachmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getQuoteAttachmentContent( + GetQuoteAttachmentContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetQuoteAttachmentContentRequest, GetQuoteAttachmentContentResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + Validate.notBlank(request.getQuoteAttachmentId(), "quoteAttachmentId must not be blank"); + + return clientCall(request, GetQuoteAttachmentContentResponse::builder) + .logger(LOG, "getQuoteAttachmentContent") + .serviceDetails("QuoteAttachment", "GetQuoteAttachmentContent", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetQuoteAttachmentContentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendPathParam(request.getQuoteAttachmentId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + java.io.InputStream.class, + GetQuoteAttachmentContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", GetQuoteAttachmentContentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listQuoteAttachments( + ListQuoteAttachmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListQuoteAttachmentsRequest, ListQuoteAttachmentsResponse> + handler) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, ListQuoteAttachmentsResponse::builder) + .logger(LOG, "listQuoteAttachments") + .serviceDetails("QuoteAttachment", "ListQuoteAttachments", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListQuoteAttachmentsRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendQueryParam("resellerCompartmentId", request.getResellerCompartmentId()) + .appendQueryParam("isvCompartmentId", request.getIsvCompartmentId()) + .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.QuoteAttachmentCollection + .class, + ListQuoteAttachmentsResponse.Builder::quoteAttachmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListQuoteAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListQuoteAttachmentsResponse.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 QuoteAttachmentAsyncClient( + 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 QuoteAttachmentAsyncClient( + 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 QuoteAttachmentAsyncClient( + 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 QuoteAttachmentAsyncClient( + 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 QuoteAttachmentAsyncClient( + 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 QuoteAttachmentAsyncClient( + 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 QuoteAttachmentAsyncClient( + 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/QuoteAttachmentClient.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentClient.java new file mode 100644 index 00000000000..9ecef8c4f74 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentClient.java @@ -0,0 +1,531 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 QuoteAttachmentClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements QuoteAttachment { + /** Service instance for QuoteAttachment. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(QuoteAttachmentClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://private-offer.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(QuoteAttachmentClient.class); + + private final QuoteAttachmentWaiters waiters; + + private final QuoteAttachmentPaginators paginators; + + QuoteAttachmentClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + QuoteAttachmentClient( + 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("QuoteAttachment-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new QuoteAttachmentWaiters(executorService, this); + + this.paginators = new QuoteAttachmentPaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "QuoteAttachmentClient", "getQuoteAttachmentContent")); + } + } + + /** + * 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.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * 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 QuoteAttachmentClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new QuoteAttachmentClient( + 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 CreateQuoteAttachmentResponse createQuoteAttachment( + CreateQuoteAttachmentRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + Objects.requireNonNull( + request.getCreateQuoteAttachmentDetails(), + "createQuoteAttachmentDetails is required"); + + return clientCall(request, CreateQuoteAttachmentResponse::builder) + .logger(LOG, "createQuoteAttachment") + .serviceDetails("QuoteAttachment", "CreateQuoteAttachment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateQuoteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.class, + CreateQuoteAttachmentResponse.Builder::quoteAttachment) + .handleResponseHeaderString("etag", CreateQuoteAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateQuoteAttachmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "location", CreateQuoteAttachmentResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateQuoteAttachmentResponse.Builder::contentLocation) + .handleResponseHeaderString( + "opc-work-request-id", + CreateQuoteAttachmentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteQuoteAttachmentResponse deleteQuoteAttachment( + DeleteQuoteAttachmentRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + Validate.notBlank(request.getQuoteAttachmentId(), "quoteAttachmentId must not be blank"); + + return clientCall(request, DeleteQuoteAttachmentResponse::builder) + .logger(LOG, "deleteQuoteAttachment") + .serviceDetails("QuoteAttachment", "DeleteQuoteAttachment", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteQuoteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendPathParam(request.getQuoteAttachmentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteQuoteAttachmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteQuoteAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetQuoteAttachmentResponse getQuoteAttachment(GetQuoteAttachmentRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + Validate.notBlank(request.getQuoteAttachmentId(), "quoteAttachmentId must not be blank"); + + return clientCall(request, GetQuoteAttachmentResponse::builder) + .logger(LOG, "getQuoteAttachment") + .serviceDetails("QuoteAttachment", "GetQuoteAttachment", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetQuoteAttachmentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendPathParam(request.getQuoteAttachmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.class, + GetQuoteAttachmentResponse.Builder::quoteAttachment) + .handleResponseHeaderString("etag", GetQuoteAttachmentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetQuoteAttachmentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetQuoteAttachmentContentResponse getQuoteAttachmentContent( + GetQuoteAttachmentContentRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + Validate.notBlank(request.getQuoteAttachmentId(), "quoteAttachmentId must not be blank"); + + return clientCall(request, GetQuoteAttachmentContentResponse::builder) + .logger(LOG, "getQuoteAttachmentContent") + .serviceDetails("QuoteAttachment", "GetQuoteAttachmentContent", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetQuoteAttachmentContentRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendPathParam(request.getQuoteAttachmentId()) + .appendPathParam("content") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + GetQuoteAttachmentContentResponse.Builder::inputStream) + .handleResponseHeaderString( + "opc-request-id", GetQuoteAttachmentContentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListQuoteAttachmentsResponse listQuoteAttachments(ListQuoteAttachmentsRequest request) { + + Validate.notBlank(request.getOfferQuoteId(), "offerQuoteId must not be blank"); + + return clientCall(request, ListQuoteAttachmentsResponse::builder) + .logger(LOG, "listQuoteAttachments") + .serviceDetails("QuoteAttachment", "ListQuoteAttachments", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListQuoteAttachmentsRequest::builder) + .basePath("/20220901") + .appendPathParam("offerQuotes") + .appendPathParam(request.getOfferQuoteId()) + .appendPathParam("quoteAttachments") + .appendQueryParam("resellerCompartmentId", request.getResellerCompartmentId()) + .appendQueryParam("isvCompartmentId", request.getIsvCompartmentId()) + .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.QuoteAttachmentCollection + .class, + ListQuoteAttachmentsResponse.Builder::quoteAttachmentCollection) + .handleResponseHeaderString( + "opc-request-id", ListQuoteAttachmentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListQuoteAttachmentsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public QuoteAttachmentWaiters getWaiters() { + return waiters; + } + + @Override + public QuoteAttachmentPaginators 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 QuoteAttachmentClient( + 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 QuoteAttachmentClient( + 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 QuoteAttachmentClient( + 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 QuoteAttachmentClient( + 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 QuoteAttachmentClient( + 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 QuoteAttachmentClient( + 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 QuoteAttachmentClient( + 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 QuoteAttachmentClient( + 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/QuoteAttachmentPaginators.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentPaginators.java new file mode 100644 index 00000000000..163873d387f --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentPaginators.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 QuoteAttachment 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 QuoteAttachmentPaginators { + private final QuoteAttachment client; + + public QuoteAttachmentPaginators(QuoteAttachment client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listQuoteAttachments 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 listQuoteAttachmentsResponseIterator( + final ListQuoteAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListQuoteAttachmentsRequest.Builder, + ListQuoteAttachmentsRequest, + ListQuoteAttachmentsResponse>( + new java.util.function.Supplier() { + @Override + public ListQuoteAttachmentsRequest.Builder get() { + return ListQuoteAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListQuoteAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListQuoteAttachmentsRequest.Builder>, + ListQuoteAttachmentsRequest>() { + @Override + public ListQuoteAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListQuoteAttachmentsRequest.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< + ListQuoteAttachmentsRequest, ListQuoteAttachmentsResponse>() { + @Override + public ListQuoteAttachmentsResponse apply(ListQuoteAttachmentsRequest request) { + return client.listQuoteAttachments(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentSummary} objects contained in + * responses from the listQuoteAttachments 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.QuoteAttachmentSummary} objects contained in + * responses received from the service. + */ + public Iterable + listQuoteAttachmentsRecordIterator(final ListQuoteAttachmentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListQuoteAttachmentsRequest.Builder, + ListQuoteAttachmentsRequest, + ListQuoteAttachmentsResponse, + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentSummary>( + new java.util.function.Supplier() { + @Override + public ListQuoteAttachmentsRequest.Builder get() { + return ListQuoteAttachmentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListQuoteAttachmentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListQuoteAttachmentsRequest.Builder>, + ListQuoteAttachmentsRequest>() { + @Override + public ListQuoteAttachmentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListQuoteAttachmentsRequest.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< + ListQuoteAttachmentsRequest, ListQuoteAttachmentsResponse>() { + @Override + public ListQuoteAttachmentsResponse apply(ListQuoteAttachmentsRequest request) { + return client.listQuoteAttachments(request); + } + }, + new java.util.function.Function< + ListQuoteAttachmentsResponse, + java.util.List< + com.oracle.bmc.marketplaceprivateoffer.model + .QuoteAttachmentSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.marketplaceprivateoffer.model + .QuoteAttachmentSummary> + apply(ListQuoteAttachmentsResponse response) { + return response.getQuoteAttachmentCollection().getItems(); + } + }); + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentWaiters.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentWaiters.java new file mode 100644 index 00000000000..16a7fd147cc --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/QuoteAttachmentWaiters.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 QuoteAttachment. + * + *

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 QuoteAttachmentWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final QuoteAttachment client; + + public QuoteAttachmentWaiters( + java.util.concurrent.ExecutorService executorService, QuoteAttachment 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 + forQuoteAttachment( + GetQuoteAttachmentRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.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 forQuoteAttachment( + 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 + forQuoteAttachment( + GetQuoteAttachmentRequest request, + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.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 forQuoteAttachment( + 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 + forQuoteAttachment( + GetQuoteAttachmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.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 forQuoteAttachment( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for QuoteAttachment. + private com.oracle.bmc.waiter.Waiter + forQuoteAttachment( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetQuoteAttachmentRequest request, + final com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.LifecycleState> + 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< + GetQuoteAttachmentRequest, GetQuoteAttachmentResponse>() { + @Override + public GetQuoteAttachmentResponse apply( + GetQuoteAttachmentRequest request) { + return client.getQuoteAttachment(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetQuoteAttachmentResponse response) { + return targetStatesSet.contains( + response.getQuoteAttachment().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment + .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 index e5479a359b3..2522fe5ace7 100644 --- 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 @@ -31,8 +31,10 @@ public final class Attachment extends com.oracle.bmc.http.client.internal.Explic "type", "timeCreated", "lifecycleState", + "offerType", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public Attachment( String id, @@ -44,8 +46,10 @@ public Attachment( Type type, java.util.Date timeCreated, LifecycleState lifecycleState, + Offer.OfferType offerType, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.sellerCompartmentId = sellerCompartmentId; @@ -56,8 +60,10 @@ public Attachment( this.type = type; this.timeCreated = timeCreated; this.lifecycleState = lifecycleState; + this.offerType = offerType; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -197,6 +203,21 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @param offerType the value to set + * @return this builder + */ + public Builder offerType(Offer.OfferType offerType) { + this.offerType = offerType; + this.__explicitlySet__.add("offerType"); + 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"}} @@ -236,6 +257,25 @@ public Builder 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(); @@ -252,8 +292,10 @@ public Attachment build() { this.type, this.timeCreated, this.lifecycleState, + this.offerType, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -289,12 +331,18 @@ public Builder copy(Attachment model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("offerType")) { + this.offerType(model.getOfferType()); + } 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; } } @@ -522,6 +570,19 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private final Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @return the value + */ + public Offer.OfferType getOfferType() { + return offerType; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -556,6 +617,23 @@ 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); @@ -580,8 +658,10 @@ public String toString(boolean includeByteArrayContents) { 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(", offerType=").append(String.valueOf(this.offerType)); 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(); } @@ -605,8 +685,10 @@ public boolean equals(Object o) { && 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.offerType, other.offerType) && 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); } @@ -633,8 +715,10 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.offerType == null ? 43 : this.offerType.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/AttachmentSummary.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/AttachmentSummary.java index 9e1e518f6d4..781ab5167e3 100644 --- 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 @@ -30,8 +30,10 @@ public final class AttachmentSummary "displayName", "type", "lifecycleState", + "offerType", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public AttachmentSummary( String id, @@ -40,8 +42,10 @@ public AttachmentSummary( String displayName, Attachment.Type type, Attachment.LifecycleState lifecycleState, + Offer.OfferType offerType, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.offerId = offerId; @@ -49,8 +53,10 @@ public AttachmentSummary( this.displayName = displayName; this.type = type; this.lifecycleState = lifecycleState; + this.offerType = offerType; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -145,6 +151,21 @@ public Builder lifecycleState(Attachment.LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @param offerType the value to set + * @return this builder + */ + public Builder offerType(Offer.OfferType offerType) { + this.offerType = offerType; + this.__explicitlySet__.add("offerType"); + 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"}} @@ -184,6 +205,25 @@ public Builder 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(); @@ -197,8 +237,10 @@ public AttachmentSummary build() { this.displayName, this.type, this.lifecycleState, + this.offerType, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -225,12 +267,18 @@ public Builder copy(AttachmentSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("offerType")) { + this.offerType(model.getOfferType()); + } 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; } } @@ -322,6 +370,19 @@ public Attachment.LifecycleState getLifecycleState() { return lifecycleState; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private final Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @return the value + */ + public Offer.OfferType getOfferType() { + return offerType; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -356,6 +417,23 @@ 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); @@ -377,8 +455,10 @@ public String toString(boolean includeByteArrayContents) { 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(", offerType=").append(String.valueOf(this.offerType)); 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(); } @@ -399,8 +479,10 @@ public boolean equals(Object o) { && 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.offerType, other.offerType) && 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); } @@ -416,8 +498,10 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.offerType == null ? 43 : this.offerType.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/Contact.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Contact.java index 7c1862f64b7..2d462630915 100644 --- 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 @@ -5,7 +5,7 @@ package com.oracle.bmc.marketplaceprivateoffer.model; /** - * The contact information of an individual
+ * 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 @@ -31,12 +31,12 @@ public Contact(String firstName, String lastName, String email) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The first name of the contact */ + /** The first name of the contact. */ @com.fasterxml.jackson.annotation.JsonProperty("firstName") private String firstName; /** - * The first name of the contact + * The first name of the contact. * * @param firstName the value to set * @return this builder @@ -46,12 +46,12 @@ public Builder firstName(String firstName) { this.__explicitlySet__.add("firstName"); return this; } - /** The last name of the contact */ + /** The last name of the contact. */ @com.fasterxml.jackson.annotation.JsonProperty("lastName") private String lastName; /** - * The last name of the contact + * The last name of the contact. * * @param lastName the value to set * @return this builder @@ -61,12 +61,12 @@ public Builder lastName(String lastName) { this.__explicitlySet__.add("lastName"); return this; } - /** The email of the contact */ + /** The email of the contact. */ @com.fasterxml.jackson.annotation.JsonProperty("email") private String email; /** - * The email of the contact + * The email of the contact. * * @param email the value to set * @return this builder @@ -112,12 +112,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The first name of the contact */ + /** The first name of the contact. */ @com.fasterxml.jackson.annotation.JsonProperty("firstName") private final String firstName; /** - * The first name of the contact + * The first name of the contact. * * @return the value */ @@ -125,12 +125,12 @@ public String getFirstName() { return firstName; } - /** The last name of the contact */ + /** The last name of the contact. */ @com.fasterxml.jackson.annotation.JsonProperty("lastName") private final String lastName; /** - * The last name of the contact + * The last name of the contact. * * @return the value */ @@ -138,12 +138,12 @@ public String getLastName() { return lastName; } - /** The email of the contact */ + /** The email of the contact. */ @com.fasterxml.jackson.annotation.JsonProperty("email") private final String email; /** - * The email of the contact + * The email of the contact. * * @return the value */ 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 index a5309353282..fd4974206fa 100644 --- 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 @@ -37,6 +37,8 @@ public final class CreateOfferDetails "sellerInformation", "resourceBundles", "customFields", + "offerType", + "offerQuoteIds", "freeformTags", "definedTags" }) @@ -54,6 +56,8 @@ public CreateOfferDetails( SellerInformation sellerInformation, java.util.List resourceBundles, java.util.List customFields, + Offer.OfferType offerType, + java.util.List offerQuoteIds, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -70,6 +74,8 @@ public CreateOfferDetails( this.sellerInformation = sellerInformation; this.resourceBundles = resourceBundles; this.customFields = customFields; + this.offerType = offerType; + this.offerQuoteIds = offerQuoteIds; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -265,6 +271,36 @@ public Builder customFields(java.util.List customFields) { this.__explicitlySet__.add("customFields"); return this; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @param offerType the value to set + * @return this builder + */ + public Builder offerType(Offer.OfferType offerType) { + this.offerType = offerType; + this.__explicitlySet__.add("offerType"); + return this; + } + /** A list of associated offer quotes. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteIds") + private java.util.List offerQuoteIds; + + /** + * A list of associated offer quotes. + * + * @param offerQuoteIds the value to set + * @return this builder + */ + public Builder offerQuoteIds(java.util.List offerQuoteIds) { + this.offerQuoteIds = offerQuoteIds; + this.__explicitlySet__.add("offerQuoteIds"); + 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"}} @@ -324,6 +360,8 @@ public CreateOfferDetails build() { this.sellerInformation, this.resourceBundles, this.customFields, + this.offerType, + this.offerQuoteIds, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -373,6 +411,12 @@ public Builder copy(CreateOfferDetails model) { if (model.wasPropertyExplicitlySet("customFields")) { this.customFields(model.getCustomFields()); } + if (model.wasPropertyExplicitlySet("offerType")) { + this.offerType(model.getOfferType()); + } + if (model.wasPropertyExplicitlySet("offerQuoteIds")) { + this.offerQuoteIds(model.getOfferQuoteIds()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -553,6 +597,32 @@ public java.util.List getCustomFields() { return customFields; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private final Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @return the value + */ + public Offer.OfferType getOfferType() { + return offerType; + } + + /** A list of associated offer quotes. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteIds") + private final java.util.List offerQuoteIds; + + /** + * A list of associated offer quotes. + * + * @return the value + */ + public java.util.List getOfferQuoteIds() { + return offerQuoteIds; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -615,6 +685,8 @@ public String toString(boolean includeByteArrayContents) { 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(", offerType=").append(String.valueOf(this.offerType)); + sb.append(", offerQuoteIds=").append(String.valueOf(this.offerQuoteIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -644,6 +716,8 @@ public boolean equals(Object o) { && 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.offerType, other.offerType) + && java.util.Objects.equals(this.offerQuoteIds, other.offerQuoteIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -684,6 +758,10 @@ public int hashCode() { (result * PRIME) + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); result = (result * PRIME) + (this.customFields == null ? 43 : this.customFields.hashCode()); + result = (result * PRIME) + (this.offerType == null ? 43 : this.offerType.hashCode()); + result = + (result * PRIME) + + (this.offerQuoteIds == null ? 43 : this.offerQuoteIds.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateOfferQuoteDetails.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateOfferQuoteDetails.java new file mode 100644 index 00000000000..0db9876a949 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateOfferQuoteDetails.java @@ -0,0 +1,634 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 offer quotes.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = CreateOfferQuoteDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOfferQuoteDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "resellerCompartmentId", + "isvCompartmentId", + "isvPublisherId", + "description", + "resourceBundles", + "buyerCompartmentIds", + "resellerInformation", + "isvInformation", + "buyerAcceptanceDeadline", + "buyerOfferDuration", + "freeformTags", + "definedTags" + }) + public CreateOfferQuoteDetails( + String displayName, + String resellerCompartmentId, + String isvCompartmentId, + String isvPublisherId, + String description, + java.util.List resourceBundles, + java.util.List buyerCompartmentIds, + ResellerInformation resellerInformation, + IsvInformation isvInformation, + java.util.Date buyerAcceptanceDeadline, + String buyerOfferDuration, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.resellerCompartmentId = resellerCompartmentId; + this.isvCompartmentId = isvCompartmentId; + this.isvPublisherId = isvPublisherId; + this.description = description; + this.resourceBundles = resourceBundles; + this.buyerCompartmentIds = buyerCompartmentIds; + this.resellerInformation = resellerInformation; + this.isvInformation = isvInformation; + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.buyerOfferDuration = buyerOfferDuration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Offer quotes identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer quotes 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 reseller. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private String resellerCompartmentId; + + /** + * Compartment identifier of the reseller. + * + * @param resellerCompartmentId the value to set + * @return this builder + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + this.__explicitlySet__.add("resellerCompartmentId"); + return this; + } + /** Compartment identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private String isvCompartmentId; + + /** + * Compartment identifier of the ISV. + * + * @param isvCompartmentId the value to set + * @return this builder + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + this.__explicitlySet__.add("isvCompartmentId"); + return this; + } + /** Publisher identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherId") + private String isvPublisherId; + + /** + * Publisher identifier of the ISV. + * + * @param isvPublisherId the value to set + * @return this builder + */ + public Builder isvPublisherId(String isvPublisherId) { + this.isvPublisherId = isvPublisherId; + this.__explicitlySet__.add("isvPublisherId"); + return this; + } + /** Description of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the offer quote. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** A list of resource bundles associated with an offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of resource bundles associated with an offer quote. + * + * @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 buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @param buyerCompartmentIds the value to set + * @return this builder + */ + public Builder buyerCompartmentIds(java.util.List buyerCompartmentIds) { + this.buyerCompartmentIds = buyerCompartmentIds; + this.__explicitlySet__.add("buyerCompartmentIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private ResellerInformation resellerInformation; + + public Builder resellerInformation(ResellerInformation resellerInformation) { + this.resellerInformation = resellerInformation; + this.__explicitlySet__.add("resellerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private IsvInformation isvInformation; + + public Builder isvInformation(IsvInformation isvInformation) { + this.isvInformation = isvInformation; + this.__explicitlySet__.add("isvInformation"); + return this; + } + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @param buyerAcceptanceDeadline the value to set + * @return this builder + */ + public Builder buyerAcceptanceDeadline(java.util.Date buyerAcceptanceDeadline) { + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.__explicitlySet__.add("buyerAcceptanceDeadline"); + return this; + } + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @param buyerOfferDuration the value to set + * @return this builder + */ + public Builder buyerOfferDuration(String buyerOfferDuration) { + this.buyerOfferDuration = buyerOfferDuration; + this.__explicitlySet__.add("buyerOfferDuration"); + 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 CreateOfferQuoteDetails build() { + CreateOfferQuoteDetails model = + new CreateOfferQuoteDetails( + this.displayName, + this.resellerCompartmentId, + this.isvCompartmentId, + this.isvPublisherId, + this.description, + this.resourceBundles, + this.buyerCompartmentIds, + this.resellerInformation, + this.isvInformation, + this.buyerAcceptanceDeadline, + this.buyerOfferDuration, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOfferQuoteDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("resellerCompartmentId")) { + this.resellerCompartmentId(model.getResellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvCompartmentId")) { + this.isvCompartmentId(model.getIsvCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvPublisherId")) { + this.isvPublisherId(model.getIsvPublisherId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentIds")) { + this.buyerCompartmentIds(model.getBuyerCompartmentIds()); + } + if (model.wasPropertyExplicitlySet("resellerInformation")) { + this.resellerInformation(model.getResellerInformation()); + } + if (model.wasPropertyExplicitlySet("isvInformation")) { + this.isvInformation(model.getIsvInformation()); + } + if (model.wasPropertyExplicitlySet("buyerAcceptanceDeadline")) { + this.buyerAcceptanceDeadline(model.getBuyerAcceptanceDeadline()); + } + if (model.wasPropertyExplicitlySet("buyerOfferDuration")) { + this.buyerOfferDuration(model.getBuyerOfferDuration()); + } + 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); + } + + /** Offer quotes identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer quotes identifier. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Compartment identifier of the reseller. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private final String resellerCompartmentId; + + /** + * Compartment identifier of the reseller. + * + * @return the value + */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + + /** Compartment identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private final String isvCompartmentId; + + /** + * Compartment identifier of the ISV. + * + * @return the value + */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + + /** Publisher identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherId") + private final String isvPublisherId; + + /** + * Publisher identifier of the ISV. + * + * @return the value + */ + public String getIsvPublisherId() { + return isvPublisherId; + } + + /** Description of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the offer quote. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** A list of resource bundles associated with an offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of resource bundles associated with an offer quote. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** A list of buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private final java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @return the value + */ + public java.util.List getBuyerCompartmentIds() { + return buyerCompartmentIds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private final ResellerInformation resellerInformation; + + public ResellerInformation getResellerInformation() { + return resellerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private final IsvInformation isvInformation; + + public IsvInformation getIsvInformation() { + return isvInformation; + } + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private final java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getBuyerAcceptanceDeadline() { + return buyerAcceptanceDeadline; + } + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private final String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @return the value + */ + public String getBuyerOfferDuration() { + return buyerOfferDuration; + } + + /** + * 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("CreateOfferQuoteDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(", isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + sb.append(", isvPublisherId=").append(String.valueOf(this.isvPublisherId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + sb.append(", buyerCompartmentIds=").append(String.valueOf(this.buyerCompartmentIds)); + sb.append(", resellerInformation=").append(String.valueOf(this.resellerInformation)); + sb.append(", isvInformation=").append(String.valueOf(this.isvInformation)); + sb.append(", buyerAcceptanceDeadline=") + .append(String.valueOf(this.buyerAcceptanceDeadline)); + sb.append(", buyerOfferDuration=").append(String.valueOf(this.buyerOfferDuration)); + 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 CreateOfferQuoteDetails)) { + return false; + } + + CreateOfferQuoteDetails other = (CreateOfferQuoteDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && java.util.Objects.equals(this.isvPublisherId, other.isvPublisherId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals(this.buyerCompartmentIds, other.buyerCompartmentIds) + && java.util.Objects.equals(this.resellerInformation, other.resellerInformation) + && java.util.Objects.equals(this.isvInformation, other.isvInformation) + && java.util.Objects.equals( + this.buyerAcceptanceDeadline, other.buyerAcceptanceDeadline) + && java.util.Objects.equals(this.buyerOfferDuration, other.buyerOfferDuration) + && 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.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvPublisherId == null ? 43 : this.isvPublisherId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentIds == null + ? 43 + : this.buyerCompartmentIds.hashCode()); + result = + (result * PRIME) + + (this.resellerInformation == null + ? 43 + : this.resellerInformation.hashCode()); + result = + (result * PRIME) + + (this.isvInformation == null ? 43 : this.isvInformation.hashCode()); + result = + (result * PRIME) + + (this.buyerAcceptanceDeadline == null + ? 43 + : this.buyerAcceptanceDeadline.hashCode()); + result = + (result * PRIME) + + (this.buyerOfferDuration == null + ? 43 + : this.buyerOfferDuration.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/CreateQuoteAttachmentDetails.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateQuoteAttachmentDetails.java new file mode 100644 index 00000000000..bf28a11c831 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/CreateQuoteAttachmentDetails.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The details for creating a new offer quote 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 = CreateQuoteAttachmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateQuoteAttachmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fileBase64Encoded", "displayName", "type", "recipient"}) + public CreateQuoteAttachmentDetails( + byte[] fileBase64Encoded, + String displayName, + QuoteAttachment.Type type, + QuoteAttachment.Recipient recipient) { + super(); + this.fileBase64Encoded = fileBase64Encoded; + this.displayName = displayName; + this.type = type; + this.recipient = recipient; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base64-encoded file to attach to the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileBase64Encoded") + private byte[] fileBase64Encoded; + + /** + * Base64-encoded file to attach to the offer quote. + * + * @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 quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private QuoteAttachment.Type type; + + /** + * The type of offer quote attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(QuoteAttachment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The recipient of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipient") + private QuoteAttachment.Recipient recipient; + + /** + * The recipient of the offer quote attachment. + * + * @param recipient the value to set + * @return this builder + */ + public Builder recipient(QuoteAttachment.Recipient recipient) { + this.recipient = recipient; + this.__explicitlySet__.add("recipient"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateQuoteAttachmentDetails build() { + CreateQuoteAttachmentDetails model = + new CreateQuoteAttachmentDetails( + this.fileBase64Encoded, this.displayName, this.type, this.recipient); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateQuoteAttachmentDetails 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()); + } + if (model.wasPropertyExplicitlySet("recipient")) { + this.recipient(model.getRecipient()); + } + 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 quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("fileBase64Encoded") + private final byte[] fileBase64Encoded; + + /** + * Base64-encoded file to attach to the offer quote. + * + * @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 quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final QuoteAttachment.Type type; + + /** + * The type of offer quote attachment. + * + * @return the value + */ + public QuoteAttachment.Type getType() { + return type; + } + + /** The recipient of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipient") + private final QuoteAttachment.Recipient recipient; + + /** + * The recipient of the offer quote attachment. + * + * @return the value + */ + public QuoteAttachment.Recipient getRecipient() { + return recipient; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateQuoteAttachmentDetails("); + 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(", recipient=").append(String.valueOf(this.recipient)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateQuoteAttachmentDetails)) { + return false; + } + + CreateQuoteAttachmentDetails other = (CreateQuoteAttachmentDetails) 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) + && java.util.Objects.equals(this.recipient, other.recipient) + && 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) + (this.recipient == null ? 43 : this.recipient.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 index 59a22c92cea..c88f0ca9992 100644 --- 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 @@ -5,7 +5,7 @@ package com.oracle.bmc.marketplaceprivateoffer.model; /** - * A key value pair specified by the seller of the offer
+ * 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 @@ -30,12 +30,12 @@ public CustomField(String key, String value) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** the key of the custom field */ + /** The key of the custom field. */ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; /** - * the key of the custom field + * The key of the custom field. * * @param key the value to set * @return this builder @@ -45,12 +45,12 @@ public Builder key(String key) { this.__explicitlySet__.add("key"); return this; } - /** the value of the custom field */ + /** The value of the custom field. */ @com.fasterxml.jackson.annotation.JsonProperty("value") private String value; /** - * the value of the custom field + * The value of the custom field. * * @param value the value to set * @return this builder @@ -93,12 +93,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** the key of the custom field */ + /** The key of the custom field. */ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; /** - * the key of the custom field + * The key of the custom field. * * @return the value */ @@ -106,12 +106,12 @@ public String getKey() { return key; } - /** the value of the custom field */ + /** The value of the custom field. */ @com.fasterxml.jackson.annotation.JsonProperty("value") private final String value; /** - * the value of the custom field + * The value of the custom field. * * @return the value */ diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/IsvInformation.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/IsvInformation.java new file mode 100644 index 00000000000..073b01f8de4 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/IsvInformation.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The information related to the ISV of an offer quote.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = IsvInformation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IsvInformation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"primaryContact", "additionalContacts"}) + public IsvInformation(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 ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private java.util.List additionalContacts; + + /** + * The additional contacts associated with the ISV. + * + * @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 IsvInformation build() { + IsvInformation model = new IsvInformation(this.primaryContact, this.additionalContacts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IsvInformation 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 ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private final java.util.List additionalContacts; + + /** + * The additional contacts associated with the ISV. + * + * @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("IsvInformation("); + 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 IsvInformation)) { + return false; + } + + IsvInformation other = (IsvInformation) 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/Offer.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Offer.java index b1d3226e8a4..4c61c222fd1 100644 --- 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 @@ -42,8 +42,10 @@ public final class Offer extends com.oracle.bmc.http.client.internal.ExplicitlyS "buyerInformation", "sellerInformation", "resourceBundles", + "offerType", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public Offer( String id, @@ -66,8 +68,10 @@ public Offer( BuyerInformation buyerInformation, SellerInformation sellerInformation, java.util.List resourceBundles, + OfferType offerType, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -89,8 +93,10 @@ public Offer( this.buyerInformation = buyerInformation; this.sellerInformation = sellerInformation; this.resourceBundles = resourceBundles; + this.offerType = offerType; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -391,6 +397,21 @@ public Builder resourceBundles(java.util.List resourceBundles) { this.__explicitlySet__.add("resourceBundles"); return this; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private OfferType offerType; + + /** + * The type of the offer. + * + * @param offerType the value to set + * @return this builder + */ + public Builder offerType(OfferType offerType) { + this.offerType = offerType; + this.__explicitlySet__.add("offerType"); + 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"}} @@ -430,6 +451,25 @@ public Builder 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(); @@ -457,8 +497,10 @@ public Offer build() { this.buyerInformation, this.sellerInformation, this.resourceBundles, + this.offerType, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -527,12 +569,18 @@ public Builder copy(Offer model) { if (model.wasPropertyExplicitlySet("resourceBundles")) { this.resourceBundles(model.getResourceBundles()); } + if (model.wasPropertyExplicitlySet("offerType")) { + this.offerType(model.getOfferType()); + } 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; } } @@ -903,6 +951,65 @@ public java.util.List getResourceBundles() { return resourceBundles; } + /** The type of the offer. */ + public enum OfferType implements com.oracle.bmc.http.internal.BmcEnum { + Direct("DIRECT"), + MultiParty("MULTI_PARTY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OfferType v : OfferType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OfferType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OfferType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OfferType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private final OfferType offerType; + + /** + * The type of the offer. + * + * @return the value + */ + public OfferType getOfferType() { + return offerType; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -937,6 +1044,23 @@ 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); @@ -972,8 +1096,10 @@ public String toString(boolean includeByteArrayContents) { 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(", offerType=").append(String.valueOf(this.offerType)); 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(); } @@ -1008,8 +1134,10 @@ public boolean equals(Object o) { && 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.offerType, other.offerType) && 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); } @@ -1059,8 +1187,10 @@ public int hashCode() { result = (result * PRIME) + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = (result * PRIME) + (this.offerType == null ? 43 : this.offerType.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/OfferInternalDetail.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferInternalDetail.java index 4008129115d..f37d89d0162 100644 --- 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 @@ -23,11 +23,15 @@ 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) { + @java.beans.ConstructorProperties({"customFields", "internalNotes", "offerQuoteIds"}) + public OfferInternalDetail( + java.util.List customFields, + String internalNotes, + java.util.List offerQuoteIds) { super(); this.customFields = customFields; this.internalNotes = internalNotes; + this.offerQuoteIds = offerQuoteIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -62,13 +66,29 @@ public Builder internalNotes(String internalNotes) { this.__explicitlySet__.add("internalNotes"); return this; } + /** A list of associated offer quotes. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteIds") + private java.util.List offerQuoteIds; + + /** + * A list of associated offer quotes. + * + * @param offerQuoteIds the value to set + * @return this builder + */ + public Builder offerQuoteIds(java.util.List offerQuoteIds) { + this.offerQuoteIds = offerQuoteIds; + this.__explicitlySet__.add("offerQuoteIds"); + 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); + new OfferInternalDetail( + this.customFields, this.internalNotes, this.offerQuoteIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -83,6 +103,9 @@ public Builder copy(OfferInternalDetail model) { if (model.wasPropertyExplicitlySet("internalNotes")) { this.internalNotes(model.getInternalNotes()); } + if (model.wasPropertyExplicitlySet("offerQuoteIds")) { + this.offerQuoteIds(model.getOfferQuoteIds()); + } return this; } } @@ -122,6 +145,19 @@ public String getInternalNotes() { return internalNotes; } + /** A list of associated offer quotes. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteIds") + private final java.util.List offerQuoteIds; + + /** + * A list of associated offer quotes. + * + * @return the value + */ + public java.util.List getOfferQuoteIds() { + return offerQuoteIds; + } + @Override public String toString() { return this.toString(true); @@ -139,6 +175,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("customFields=").append(String.valueOf(this.customFields)); sb.append(", internalNotes=").append(String.valueOf(this.internalNotes)); + sb.append(", offerQuoteIds=").append(String.valueOf(this.offerQuoteIds)); sb.append(")"); return sb.toString(); } @@ -155,6 +192,7 @@ public boolean equals(Object o) { OfferInternalDetail other = (OfferInternalDetail) o; return java.util.Objects.equals(this.customFields, other.customFields) && java.util.Objects.equals(this.internalNotes, other.internalNotes) + && java.util.Objects.equals(this.offerQuoteIds, other.offerQuoteIds) && super.equals(other); } @@ -166,6 +204,9 @@ public int hashCode() { result = (result * PRIME) + (this.internalNotes == null ? 43 : this.internalNotes.hashCode()); + result = + (result * PRIME) + + (this.offerQuoteIds == null ? 43 : this.offerQuoteIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuote.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuote.java new file mode 100644 index 00000000000..55bd91a1719 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuote.java @@ -0,0 +1,1148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 the offer quote details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OfferQuote.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferQuote extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "resellerCompartmentId", + "isvCompartmentId", + "isvPublisherId", + "resellerPublisherDisplayName", + "isvPublisherDisplayName", + "buyerCompartmentIds", + "description", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "offerQuoteStatus", + "resellerInformation", + "isvInformation", + "pricing", + "resourceBundles", + "buyerAcceptanceDeadline", + "buyerOfferDuration", + "freeformTags", + "definedTags", + "systemTags" + }) + public OfferQuote( + String id, + String displayName, + String resellerCompartmentId, + String isvCompartmentId, + String isvPublisherId, + String resellerPublisherDisplayName, + String isvPublisherDisplayName, + java.util.List buyerCompartmentIds, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + OfferQuoteStatus offerQuoteStatus, + ResellerInformation resellerInformation, + IsvInformation isvInformation, + Pricing pricing, + java.util.List resourceBundles, + java.util.Date buyerAcceptanceDeadline, + String buyerOfferDuration, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.resellerCompartmentId = resellerCompartmentId; + this.isvCompartmentId = isvCompartmentId; + this.isvPublisherId = isvPublisherId; + this.resellerPublisherDisplayName = resellerPublisherDisplayName; + this.isvPublisherDisplayName = isvPublisherDisplayName; + this.buyerCompartmentIds = buyerCompartmentIds; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.offerQuoteStatus = offerQuoteStatus; + this.resellerInformation = resellerInformation; + this.isvInformation = isvInformation; + this.pricing = pricing; + this.resourceBundles = resourceBundles; + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.buyerOfferDuration = buyerOfferDuration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Offer quote identifier, can be renamed. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer quote 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 reseller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private String resellerCompartmentId; + + /** + * OCID of the reseller tenancy. + * + * @param resellerCompartmentId the value to set + * @return this builder + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + this.__explicitlySet__.add("resellerCompartmentId"); + return this; + } + /** OCID of the ISV tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private String isvCompartmentId; + + /** + * OCID of the ISV tenancy. + * + * @param isvCompartmentId the value to set + * @return this builder + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + this.__explicitlySet__.add("isvCompartmentId"); + return this; + } + /** Publisher identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherId") + private String isvPublisherId; + + /** + * Publisher identifier of the ISV. + * + * @param isvPublisherId the value to set + * @return this builder + */ + public Builder isvPublisherId(String isvPublisherId) { + this.isvPublisherId = isvPublisherId; + this.__explicitlySet__.add("isvPublisherId"); + return this; + } + /** Display name of the reseller publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerPublisherDisplayName") + private String resellerPublisherDisplayName; + + /** + * Display name of the reseller publisher. + * + * @param resellerPublisherDisplayName the value to set + * @return this builder + */ + public Builder resellerPublisherDisplayName(String resellerPublisherDisplayName) { + this.resellerPublisherDisplayName = resellerPublisherDisplayName; + this.__explicitlySet__.add("resellerPublisherDisplayName"); + return this; + } + /** Display name of the ISV publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherDisplayName") + private String isvPublisherDisplayName; + + /** + * Display name of the ISV publisher. + * + * @param isvPublisherDisplayName the value to set + * @return this builder + */ + public Builder isvPublisherDisplayName(String isvPublisherDisplayName) { + this.isvPublisherDisplayName = isvPublisherDisplayName; + this.__explicitlySet__.add("isvPublisherDisplayName"); + return this; + } + /** A list of buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @param buyerCompartmentIds the value to set + * @return this builder + */ + public Builder buyerCompartmentIds(java.util.List buyerCompartmentIds) { + this.buyerCompartmentIds = buyerCompartmentIds; + this.__explicitlySet__.add("buyerCompartmentIds"); + return this; + } + /** The description of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the offer quote. + * + * @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 quote was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the offer quote 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 quote was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the offer quote 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 current state of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the offer quote. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Provides detailed information about the current state of the offer quote. For example, if + * the offer quote is in a failed state this message can include specific validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote. For example, if + * the offer quote is in a failed state this message can include specific validation errors. + * + * @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 quote is at in its contract + * lifecycle. + */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteStatus") + private OfferQuoteStatus offerQuoteStatus; + + /** + * The human readable representation of where the offer quote is at in its contract + * lifecycle. + * + * @param offerQuoteStatus the value to set + * @return this builder + */ + public Builder offerQuoteStatus(OfferQuoteStatus offerQuoteStatus) { + this.offerQuoteStatus = offerQuoteStatus; + this.__explicitlySet__.add("offerQuoteStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private ResellerInformation resellerInformation; + + public Builder resellerInformation(ResellerInformation resellerInformation) { + this.resellerInformation = resellerInformation; + this.__explicitlySet__.add("resellerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private IsvInformation isvInformation; + + public Builder isvInformation(IsvInformation isvInformation) { + this.isvInformation = isvInformation; + this.__explicitlySet__.add("isvInformation"); + 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; + } + /** A list of resource bundles associated with an offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private java.util.List resourceBundles; + + /** + * A list of resource bundles associated with an offer quote. + * + * @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; + } + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @param buyerAcceptanceDeadline the value to set + * @return this builder + */ + public Builder buyerAcceptanceDeadline(java.util.Date buyerAcceptanceDeadline) { + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.__explicitlySet__.add("buyerAcceptanceDeadline"); + return this; + } + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @param buyerOfferDuration the value to set + * @return this builder + */ + public Builder buyerOfferDuration(String buyerOfferDuration) { + this.buyerOfferDuration = buyerOfferDuration; + this.__explicitlySet__.add("buyerOfferDuration"); + 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 OfferQuote build() { + OfferQuote model = + new OfferQuote( + this.id, + this.displayName, + this.resellerCompartmentId, + this.isvCompartmentId, + this.isvPublisherId, + this.resellerPublisherDisplayName, + this.isvPublisherDisplayName, + this.buyerCompartmentIds, + this.description, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.offerQuoteStatus, + this.resellerInformation, + this.isvInformation, + this.pricing, + this.resourceBundles, + this.buyerAcceptanceDeadline, + this.buyerOfferDuration, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferQuote model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("resellerCompartmentId")) { + this.resellerCompartmentId(model.getResellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvCompartmentId")) { + this.isvCompartmentId(model.getIsvCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvPublisherId")) { + this.isvPublisherId(model.getIsvPublisherId()); + } + if (model.wasPropertyExplicitlySet("resellerPublisherDisplayName")) { + this.resellerPublisherDisplayName(model.getResellerPublisherDisplayName()); + } + if (model.wasPropertyExplicitlySet("isvPublisherDisplayName")) { + this.isvPublisherDisplayName(model.getIsvPublisherDisplayName()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentIds")) { + this.buyerCompartmentIds(model.getBuyerCompartmentIds()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("offerQuoteStatus")) { + this.offerQuoteStatus(model.getOfferQuoteStatus()); + } + if (model.wasPropertyExplicitlySet("resellerInformation")) { + this.resellerInformation(model.getResellerInformation()); + } + if (model.wasPropertyExplicitlySet("isvInformation")) { + this.isvInformation(model.getIsvInformation()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + if (model.wasPropertyExplicitlySet("buyerAcceptanceDeadline")) { + this.buyerAcceptanceDeadline(model.getBuyerAcceptanceDeadline()); + } + if (model.wasPropertyExplicitlySet("buyerOfferDuration")) { + this.buyerOfferDuration(model.getBuyerOfferDuration()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Offer quote identifier, can be renamed. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer quote identifier, can be renamed. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** OCID of the reseller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private final String resellerCompartmentId; + + /** + * OCID of the reseller tenancy. + * + * @return the value + */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + + /** OCID of the ISV tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private final String isvCompartmentId; + + /** + * OCID of the ISV tenancy. + * + * @return the value + */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + + /** Publisher identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherId") + private final String isvPublisherId; + + /** + * Publisher identifier of the ISV. + * + * @return the value + */ + public String getIsvPublisherId() { + return isvPublisherId; + } + + /** Display name of the reseller publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerPublisherDisplayName") + private final String resellerPublisherDisplayName; + + /** + * Display name of the reseller publisher. + * + * @return the value + */ + public String getResellerPublisherDisplayName() { + return resellerPublisherDisplayName; + } + + /** Display name of the ISV publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherDisplayName") + private final String isvPublisherDisplayName; + + /** + * Display name of the ISV publisher. + * + * @return the value + */ + public String getIsvPublisherDisplayName() { + return isvPublisherDisplayName; + } + + /** A list of buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private final java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @return the value + */ + public java.util.List getBuyerCompartmentIds() { + return buyerCompartmentIds; + } + + /** The description of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the offer quote. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The time the offer quote was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the offer quote was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the offer quote was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the offer quote was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the offer quote. */ + 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 quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the offer quote. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Provides detailed information about the current state of the offer quote. For example, if the + * offer quote is in a failed state this message can include specific validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote. For example, if the + * offer quote is in a failed state this message can include specific validation errors. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The human readable representation of where the offer quote is at in its contract lifecycle. + */ + public enum OfferQuoteStatus implements com.oracle.bmc.http.internal.BmcEnum { + Draft("DRAFT"), + PendingIsv("PENDING_ISV"), + PendingIsvUpdate("PENDING_ISV_UPDATE"), + PendingReseller("PENDING_RESELLER"), + ResellerAccepted("RESELLER_ACCEPTED"), + BuyerAccepted("BUYER_ACCEPTED"), + Active("ACTIVE"), + Ended("ENDED"), + Expired("EXPIRED"), + FailedSend("FAILED_SEND"), + FailedAccept("FAILED_ACCEPT"), + FailedRespond("FAILED_RESPOND"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OfferQuoteStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OfferQuoteStatus v : OfferQuoteStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OfferQuoteStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OfferQuoteStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OfferQuoteStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The human readable representation of where the offer quote is at in its contract lifecycle. + */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteStatus") + private final OfferQuoteStatus offerQuoteStatus; + + /** + * The human readable representation of where the offer quote is at in its contract lifecycle. + * + * @return the value + */ + public OfferQuoteStatus getOfferQuoteStatus() { + return offerQuoteStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private final ResellerInformation resellerInformation; + + public ResellerInformation getResellerInformation() { + return resellerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private final IsvInformation isvInformation; + + public IsvInformation getIsvInformation() { + return isvInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + /** A list of resource bundles associated with an offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceBundles") + private final java.util.List resourceBundles; + + /** + * A list of resource bundles associated with an offer quote. + * + * @return the value + */ + public java.util.List getResourceBundles() { + return resourceBundles; + } + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private final java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getBuyerAcceptanceDeadline() { + return buyerAcceptanceDeadline; + } + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private final String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @return the value + */ + public String getBuyerOfferDuration() { + return buyerOfferDuration; + } + + /** + * 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("OfferQuote("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(", isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + sb.append(", isvPublisherId=").append(String.valueOf(this.isvPublisherId)); + sb.append(", resellerPublisherDisplayName=") + .append(String.valueOf(this.resellerPublisherDisplayName)); + sb.append(", isvPublisherDisplayName=") + .append(String.valueOf(this.isvPublisherDisplayName)); + sb.append(", buyerCompartmentIds=").append(String.valueOf(this.buyerCompartmentIds)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", offerQuoteStatus=").append(String.valueOf(this.offerQuoteStatus)); + sb.append(", resellerInformation=").append(String.valueOf(this.resellerInformation)); + sb.append(", isvInformation=").append(String.valueOf(this.isvInformation)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + sb.append(", buyerAcceptanceDeadline=") + .append(String.valueOf(this.buyerAcceptanceDeadline)); + sb.append(", buyerOfferDuration=").append(String.valueOf(this.buyerOfferDuration)); + 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 OfferQuote)) { + return false; + } + + OfferQuote other = (OfferQuote) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && java.util.Objects.equals(this.isvPublisherId, other.isvPublisherId) + && java.util.Objects.equals( + this.resellerPublisherDisplayName, other.resellerPublisherDisplayName) + && java.util.Objects.equals( + this.isvPublisherDisplayName, other.isvPublisherDisplayName) + && java.util.Objects.equals(this.buyerCompartmentIds, other.buyerCompartmentIds) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.offerQuoteStatus, other.offerQuoteStatus) + && java.util.Objects.equals(this.resellerInformation, other.resellerInformation) + && java.util.Objects.equals(this.isvInformation, other.isvInformation) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals( + this.buyerAcceptanceDeadline, other.buyerAcceptanceDeadline) + && java.util.Objects.equals(this.buyerOfferDuration, other.buyerOfferDuration) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvPublisherId == null ? 43 : this.isvPublisherId.hashCode()); + result = + (result * PRIME) + + (this.resellerPublisherDisplayName == null + ? 43 + : this.resellerPublisherDisplayName.hashCode()); + result = + (result * PRIME) + + (this.isvPublisherDisplayName == null + ? 43 + : this.isvPublisherDisplayName.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentIds == null + ? 43 + : this.buyerCompartmentIds.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.offerQuoteStatus == null ? 43 : this.offerQuoteStatus.hashCode()); + result = + (result * PRIME) + + (this.resellerInformation == null + ? 43 + : this.resellerInformation.hashCode()); + result = + (result * PRIME) + + (this.isvInformation == null ? 43 : this.isvInformation.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = + (result * PRIME) + + (this.buyerAcceptanceDeadline == null + ? 43 + : this.buyerAcceptanceDeadline.hashCode()); + result = + (result * PRIME) + + (this.buyerOfferDuration == null + ? 43 + : this.buyerOfferDuration.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/OfferQuoteCollection.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteCollection.java new file mode 100644 index 00000000000..fe275ace95b --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Results of offer quote summaries.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OfferQuoteCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferQuoteCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OfferQuoteCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of offer quotes. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of offer quotes. + * + * @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 OfferQuoteCollection build() { + OfferQuoteCollection model = new OfferQuoteCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferQuoteCollection 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 offer quotes. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of offer quotes. + * + * @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("OfferQuoteCollection("); + 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 OfferQuoteCollection)) { + return false; + } + + OfferQuoteCollection other = (OfferQuoteCollection) 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/OfferQuoteInternalDetail.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteInternalDetail.java new file mode 100644 index 00000000000..fe722973eb1 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteInternalDetail.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The internal details of an offer quote.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = OfferQuoteInternalDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferQuoteInternalDetail + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"offerIds"}) + public OfferQuoteInternalDetail(java.util.List offerIds) { + super(); + this.offerIds = offerIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of associated offers. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerIds") + private java.util.List offerIds; + + /** + * A list of associated offers. + * + * @param offerIds the value to set + * @return this builder + */ + public Builder offerIds(java.util.List offerIds) { + this.offerIds = offerIds; + this.__explicitlySet__.add("offerIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OfferQuoteInternalDetail build() { + OfferQuoteInternalDetail model = new OfferQuoteInternalDetail(this.offerIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferQuoteInternalDetail model) { + if (model.wasPropertyExplicitlySet("offerIds")) { + this.offerIds(model.getOfferIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of associated offers. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerIds") + private final java.util.List offerIds; + + /** + * A list of associated offers. + * + * @return the value + */ + public java.util.List getOfferIds() { + return offerIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OfferQuoteInternalDetail("); + sb.append("super=").append(super.toString()); + sb.append("offerIds=").append(String.valueOf(this.offerIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OfferQuoteInternalDetail)) { + return false; + } + + OfferQuoteInternalDetail other = (OfferQuoteInternalDetail) o; + return java.util.Objects.equals(this.offerIds, other.offerIds) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.offerIds == null ? 43 : this.offerIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteSummary.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteSummary.java new file mode 100644 index 00000000000..7987556b364 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferQuoteSummary.java @@ -0,0 +1,924 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 offer quotes.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = OfferQuoteSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OfferQuoteSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "resellerCompartmentId", + "isvCompartmentId", + "buyerCompartmentIds", + "resellerPublisherDisplayName", + "isvPublisherDisplayName", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "offerQuoteStatus", + "resellerInformation", + "isvInformation", + "pricing", + "buyerAcceptanceDeadline", + "buyerOfferDuration", + "freeformTags", + "definedTags", + "systemTags" + }) + public OfferQuoteSummary( + String id, + String displayName, + String resellerCompartmentId, + String isvCompartmentId, + java.util.List buyerCompartmentIds, + String resellerPublisherDisplayName, + String isvPublisherDisplayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + OfferQuote.LifecycleState lifecycleState, + String lifecycleDetails, + OfferQuote.OfferQuoteStatus offerQuoteStatus, + ResellerInformation resellerInformation, + IsvInformation isvInformation, + Pricing pricing, + java.util.Date buyerAcceptanceDeadline, + String buyerOfferDuration, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.resellerCompartmentId = resellerCompartmentId; + this.isvCompartmentId = isvCompartmentId; + this.buyerCompartmentIds = buyerCompartmentIds; + this.resellerPublisherDisplayName = resellerPublisherDisplayName; + this.isvPublisherDisplayName = isvPublisherDisplayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.offerQuoteStatus = offerQuoteStatus; + this.resellerInformation = resellerInformation; + this.isvInformation = isvInformation; + this.pricing = pricing; + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.buyerOfferDuration = buyerOfferDuration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Offer quote identifier, can be renamed. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer quote 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 reseller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private String resellerCompartmentId; + + /** + * OCID of the reseller tenancy. + * + * @param resellerCompartmentId the value to set + * @return this builder + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + this.__explicitlySet__.add("resellerCompartmentId"); + return this; + } + /** OCID of the ISV tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private String isvCompartmentId; + + /** + * OCID of the ISV tenancy. + * + * @param isvCompartmentId the value to set + * @return this builder + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + this.__explicitlySet__.add("isvCompartmentId"); + return this; + } + /** A list of buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @param buyerCompartmentIds the value to set + * @return this builder + */ + public Builder buyerCompartmentIds(java.util.List buyerCompartmentIds) { + this.buyerCompartmentIds = buyerCompartmentIds; + this.__explicitlySet__.add("buyerCompartmentIds"); + return this; + } + /** Display name of the reseller publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerPublisherDisplayName") + private String resellerPublisherDisplayName; + + /** + * Display name of the reseller publisher. + * + * @param resellerPublisherDisplayName the value to set + * @return this builder + */ + public Builder resellerPublisherDisplayName(String resellerPublisherDisplayName) { + this.resellerPublisherDisplayName = resellerPublisherDisplayName; + this.__explicitlySet__.add("resellerPublisherDisplayName"); + return this; + } + /** Display name of the ISV publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherDisplayName") + private String isvPublisherDisplayName; + + /** + * Display name of the ISV publisher. + * + * @param isvPublisherDisplayName the value to set + * @return this builder + */ + public Builder isvPublisherDisplayName(String isvPublisherDisplayName) { + this.isvPublisherDisplayName = isvPublisherDisplayName; + this.__explicitlySet__.add("isvPublisherDisplayName"); + return this; + } + /** The time the offer quote was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the offer quote 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 quote was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the offer quote 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 current state of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private OfferQuote.LifecycleState lifecycleState; + + /** + * The current state of the offer quote. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(OfferQuote.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Provides detailed information about the current state of the offer quote. For example, if + * the offer quote is in a failed state this message can include specific validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote. For example, if + * the offer quote is in a failed state this message can include specific validation errors. + * + * @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 quote is at in its contract + * lifecycle. + */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteStatus") + private OfferQuote.OfferQuoteStatus offerQuoteStatus; + + /** + * The human readable representation of where the offer quote is at in its contract + * lifecycle. + * + * @param offerQuoteStatus the value to set + * @return this builder + */ + public Builder offerQuoteStatus(OfferQuote.OfferQuoteStatus offerQuoteStatus) { + this.offerQuoteStatus = offerQuoteStatus; + this.__explicitlySet__.add("offerQuoteStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private ResellerInformation resellerInformation; + + public Builder resellerInformation(ResellerInformation resellerInformation) { + this.resellerInformation = resellerInformation; + this.__explicitlySet__.add("resellerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private IsvInformation isvInformation; + + public Builder isvInformation(IsvInformation isvInformation) { + this.isvInformation = isvInformation; + this.__explicitlySet__.add("isvInformation"); + 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; + } + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @param buyerAcceptanceDeadline the value to set + * @return this builder + */ + public Builder buyerAcceptanceDeadline(java.util.Date buyerAcceptanceDeadline) { + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.__explicitlySet__.add("buyerAcceptanceDeadline"); + return this; + } + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @param buyerOfferDuration the value to set + * @return this builder + */ + public Builder buyerOfferDuration(String buyerOfferDuration) { + this.buyerOfferDuration = buyerOfferDuration; + this.__explicitlySet__.add("buyerOfferDuration"); + 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 OfferQuoteSummary build() { + OfferQuoteSummary model = + new OfferQuoteSummary( + this.id, + this.displayName, + this.resellerCompartmentId, + this.isvCompartmentId, + this.buyerCompartmentIds, + this.resellerPublisherDisplayName, + this.isvPublisherDisplayName, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.offerQuoteStatus, + this.resellerInformation, + this.isvInformation, + this.pricing, + this.buyerAcceptanceDeadline, + this.buyerOfferDuration, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OfferQuoteSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("resellerCompartmentId")) { + this.resellerCompartmentId(model.getResellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvCompartmentId")) { + this.isvCompartmentId(model.getIsvCompartmentId()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentIds")) { + this.buyerCompartmentIds(model.getBuyerCompartmentIds()); + } + if (model.wasPropertyExplicitlySet("resellerPublisherDisplayName")) { + this.resellerPublisherDisplayName(model.getResellerPublisherDisplayName()); + } + if (model.wasPropertyExplicitlySet("isvPublisherDisplayName")) { + this.isvPublisherDisplayName(model.getIsvPublisherDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("offerQuoteStatus")) { + this.offerQuoteStatus(model.getOfferQuoteStatus()); + } + if (model.wasPropertyExplicitlySet("resellerInformation")) { + this.resellerInformation(model.getResellerInformation()); + } + if (model.wasPropertyExplicitlySet("isvInformation")) { + this.isvInformation(model.getIsvInformation()); + } + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + if (model.wasPropertyExplicitlySet("buyerAcceptanceDeadline")) { + this.buyerAcceptanceDeadline(model.getBuyerAcceptanceDeadline()); + } + if (model.wasPropertyExplicitlySet("buyerOfferDuration")) { + this.buyerOfferDuration(model.getBuyerOfferDuration()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Offer quote identifier, can be renamed. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer quote identifier, can be renamed. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** OCID of the reseller tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private final String resellerCompartmentId; + + /** + * OCID of the reseller tenancy. + * + * @return the value + */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + + /** OCID of the ISV tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private final String isvCompartmentId; + + /** + * OCID of the ISV tenancy. + * + * @return the value + */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + + /** A list of buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private final java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @return the value + */ + public java.util.List getBuyerCompartmentIds() { + return buyerCompartmentIds; + } + + /** Display name of the reseller publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerPublisherDisplayName") + private final String resellerPublisherDisplayName; + + /** + * Display name of the reseller publisher. + * + * @return the value + */ + public String getResellerPublisherDisplayName() { + return resellerPublisherDisplayName; + } + + /** Display name of the ISV publisher. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherDisplayName") + private final String isvPublisherDisplayName; + + /** + * Display name of the ISV publisher. + * + * @return the value + */ + public String getIsvPublisherDisplayName() { + return isvPublisherDisplayName; + } + + /** The time the offer quote was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the offer quote was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the offer quote was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the offer quote was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final OfferQuote.LifecycleState lifecycleState; + + /** + * The current state of the offer quote. + * + * @return the value + */ + public OfferQuote.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Provides detailed information about the current state of the offer quote. For example, if the + * offer quote is in a failed state this message can include specific validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote. For example, if the + * offer quote is in a failed state this message can include specific validation errors. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The human readable representation of where the offer quote is at in its contract lifecycle. + */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteStatus") + private final OfferQuote.OfferQuoteStatus offerQuoteStatus; + + /** + * The human readable representation of where the offer quote is at in its contract lifecycle. + * + * @return the value + */ + public OfferQuote.OfferQuoteStatus getOfferQuoteStatus() { + return offerQuoteStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private final ResellerInformation resellerInformation; + + public ResellerInformation getResellerInformation() { + return resellerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private final IsvInformation isvInformation; + + public IsvInformation getIsvInformation() { + return isvInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private final java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getBuyerAcceptanceDeadline() { + return buyerAcceptanceDeadline; + } + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private final String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @return the value + */ + public String getBuyerOfferDuration() { + return buyerOfferDuration; + } + + /** + * 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("OfferQuoteSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(", isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + sb.append(", buyerCompartmentIds=").append(String.valueOf(this.buyerCompartmentIds)); + sb.append(", resellerPublisherDisplayName=") + .append(String.valueOf(this.resellerPublisherDisplayName)); + sb.append(", isvPublisherDisplayName=") + .append(String.valueOf(this.isvPublisherDisplayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", offerQuoteStatus=").append(String.valueOf(this.offerQuoteStatus)); + sb.append(", resellerInformation=").append(String.valueOf(this.resellerInformation)); + sb.append(", isvInformation=").append(String.valueOf(this.isvInformation)); + sb.append(", pricing=").append(String.valueOf(this.pricing)); + sb.append(", buyerAcceptanceDeadline=") + .append(String.valueOf(this.buyerAcceptanceDeadline)); + sb.append(", buyerOfferDuration=").append(String.valueOf(this.buyerOfferDuration)); + 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 OfferQuoteSummary)) { + return false; + } + + OfferQuoteSummary other = (OfferQuoteSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && java.util.Objects.equals(this.buyerCompartmentIds, other.buyerCompartmentIds) + && java.util.Objects.equals( + this.resellerPublisherDisplayName, other.resellerPublisherDisplayName) + && java.util.Objects.equals( + this.isvPublisherDisplayName, other.isvPublisherDisplayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.offerQuoteStatus, other.offerQuoteStatus) + && java.util.Objects.equals(this.resellerInformation, other.resellerInformation) + && java.util.Objects.equals(this.isvInformation, other.isvInformation) + && java.util.Objects.equals(this.pricing, other.pricing) + && java.util.Objects.equals( + this.buyerAcceptanceDeadline, other.buyerAcceptanceDeadline) + && java.util.Objects.equals(this.buyerOfferDuration, other.buyerOfferDuration) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentIds == null + ? 43 + : this.buyerCompartmentIds.hashCode()); + result = + (result * PRIME) + + (this.resellerPublisherDisplayName == null + ? 43 + : this.resellerPublisherDisplayName.hashCode()); + result = + (result * PRIME) + + (this.isvPublisherDisplayName == null + ? 43 + : this.isvPublisherDisplayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.offerQuoteStatus == null ? 43 : this.offerQuoteStatus.hashCode()); + result = + (result * PRIME) + + (this.resellerInformation == null + ? 43 + : this.resellerInformation.hashCode()); + result = + (result * PRIME) + + (this.isvInformation == null ? 43 : this.isvInformation.hashCode()); + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = + (result * PRIME) + + (this.buyerAcceptanceDeadline == null + ? 43 + : this.buyerAcceptanceDeadline.hashCode()); + result = + (result * PRIME) + + (this.buyerOfferDuration == null + ? 43 + : this.buyerOfferDuration.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/OfferSummary.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/OfferSummary.java index 7aada5ff691..b91411ddcd4 100644 --- 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 @@ -38,8 +38,10 @@ public final class OfferSummary extends com.oracle.bmc.http.client.internal.Expl "buyerInformation", "sellerInformation", "pricing", + "offerType", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public OfferSummary( String id, @@ -58,8 +60,10 @@ public OfferSummary( BuyerInformation buyerInformation, SellerInformation sellerInformation, Pricing pricing, + Offer.OfferType offerType, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -77,8 +81,10 @@ public OfferSummary( this.buyerInformation = buyerInformation; this.sellerInformation = sellerInformation; this.pricing = pricing; + this.offerType = offerType; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -323,6 +329,21 @@ public Builder pricing(Pricing pricing) { this.__explicitlySet__.add("pricing"); return this; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @param offerType the value to set + * @return this builder + */ + public Builder offerType(Offer.OfferType offerType) { + this.offerType = offerType; + this.__explicitlySet__.add("offerType"); + 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"}} @@ -362,6 +383,25 @@ public Builder 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(); @@ -385,8 +425,10 @@ public OfferSummary build() { this.buyerInformation, this.sellerInformation, this.pricing, + this.offerType, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -443,12 +485,18 @@ public Builder copy(OfferSummary model) { if (model.wasPropertyExplicitlySet("pricing")) { this.pricing(model.getPricing()); } + if (model.wasPropertyExplicitlySet("offerType")) { + this.offerType(model.getOfferType()); + } 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; } } @@ -668,6 +716,19 @@ public Pricing getPricing() { return pricing; } + /** The type of the offer. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerType") + private final Offer.OfferType offerType; + + /** + * The type of the offer. + * + * @return the value + */ + public Offer.OfferType getOfferType() { + return offerType; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -702,6 +763,23 @@ 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); @@ -733,8 +811,10 @@ public String toString(boolean includeByteArrayContents) { 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(", offerType=").append(String.valueOf(this.offerType)); 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(); } @@ -765,8 +845,10 @@ public boolean equals(Object o) { && 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.offerType, other.offerType) && 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); } @@ -808,8 +890,10 @@ public int hashCode() { (result * PRIME) + (this.sellerInformation == null ? 43 : this.sellerInformation.hashCode()); result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = (result * PRIME) + (this.offerType == null ? 43 : this.offerType.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/Pricing.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/Pricing.java index e5b8bd3403c..ed9ae1c09bb 100644 --- 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 @@ -5,7 +5,7 @@ package com.oracle.bmc.marketplaceprivateoffer.model; /** - * the pricing information for the offer
+ * 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 @@ -31,12 +31,12 @@ public Pricing(String currencyType, Long totalAmount, 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 */ + /** 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 + * The currency supported for a given Offer, in the format specified by ISO-4217. * * @param currencyType the value to set * @return this builder @@ -46,12 +46,12 @@ public Builder currencyType(String currencyType) { this.__explicitlySet__.add("currencyType"); return this; } - /** The total amount an Offer costs */ + /** The total amount an offer costs. */ @com.fasterxml.jackson.annotation.JsonProperty("totalAmount") private Long totalAmount; /** - * The total amount an Offer costs + * The total amount an offer costs. * * @param totalAmount the value to set * @return this builder @@ -61,12 +61,12 @@ public Builder totalAmount(Long totalAmount) { this.__explicitlySet__.add("totalAmount"); return this; } - /** The frequency at which the customer is billed for the Offer */ + /** 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 + * The frequency at which the customer is billed for the offer. * * @param billingCycle the value to set * @return this builder @@ -112,12 +112,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The currency supported for a given Offer, in the format specified by ISO-4217 */ + /** 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 + * The currency supported for a given Offer, in the format specified by ISO-4217. * * @return the value */ @@ -125,12 +125,12 @@ public String getCurrencyType() { return currencyType; } - /** The total amount an Offer costs */ + /** The total amount an offer costs. */ @com.fasterxml.jackson.annotation.JsonProperty("totalAmount") private final Long totalAmount; /** - * The total amount an Offer costs + * The total amount an offer costs. * * @return the value */ @@ -138,7 +138,7 @@ public Long getTotalAmount() { return totalAmount; } - /** The frequency at which the customer is billed for the Offer */ + /** The frequency at which the customer is billed for the offer. */ public enum BillingCycle implements com.oracle.bmc.http.internal.BmcEnum { OneTime("ONE_TIME"), @@ -183,12 +183,12 @@ public static BillingCycle create(String key) { return UnknownEnumValue; } }; - /** The frequency at which the customer is billed for the Offer */ + /** 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 + * The frequency at which the customer is billed for the offer. * * @return the value */ diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachment.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachment.java new file mode 100644 index 00000000000..7385c81c754 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachment.java @@ -0,0 +1,864 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 an offer quote 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 = QuoteAttachment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class QuoteAttachment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "offerQuoteId", + "resellerCompartmentId", + "isvCompartmentId", + "displayName", + "type", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "mimeType", + "recipient", + "freeformTags", + "definedTags", + "systemTags" + }) + public QuoteAttachment( + String id, + String offerQuoteId, + String resellerCompartmentId, + String isvCompartmentId, + String displayName, + Type type, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + String mimeType, + Recipient recipient, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.offerQuoteId = offerQuoteId; + this.resellerCompartmentId = resellerCompartmentId; + this.isvCompartmentId = isvCompartmentId; + this.displayName = displayName; + this.type = type; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.mimeType = mimeType; + this.recipient = recipient; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Unique identifier of the associated offer quote that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteId") + private String offerQuoteId; + + /** + * Unique identifier of the associated offer quote that is immutable on creation. + * + * @param offerQuoteId the value to set + * @return this builder + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + this.__explicitlySet__.add("offerQuoteId"); + return this; + } + /** OCID of the reseller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private String resellerCompartmentId; + + /** + * OCID of the reseller's tenancy (root compartment). + * + * @param resellerCompartmentId the value to set + * @return this builder + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + this.__explicitlySet__.add("resellerCompartmentId"); + return this; + } + /** OCID of the ISV's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private String isvCompartmentId; + + /** + * OCID of the ISV's tenancy (root compartment). + * + * @param isvCompartmentId the value to set + * @return this builder + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + this.__explicitlySet__.add("isvCompartmentId"); + 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 quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of offer quote 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 offer quote attachment was created. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the offer quote attachment 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 quote attachment was updated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the offer quote attachment 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 current state of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the offer quote attachment. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include + * specific validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include + * specific validation errors. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + 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 recipient of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipient") + private Recipient recipient; + + /** + * The recipient of the offer quote attachment. + * + * @param recipient the value to set + * @return this builder + */ + public Builder recipient(Recipient recipient) { + this.recipient = recipient; + this.__explicitlySet__.add("recipient"); + 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 QuoteAttachment build() { + QuoteAttachment model = + new QuoteAttachment( + this.id, + this.offerQuoteId, + this.resellerCompartmentId, + this.isvCompartmentId, + this.displayName, + this.type, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.mimeType, + this.recipient, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QuoteAttachment model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("offerQuoteId")) { + this.offerQuoteId(model.getOfferQuoteId()); + } + if (model.wasPropertyExplicitlySet("resellerCompartmentId")) { + this.resellerCompartmentId(model.getResellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvCompartmentId")) { + this.isvCompartmentId(model.getIsvCompartmentId()); + } + 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("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("recipient")) { + this.recipient(model.getRecipient()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Unique identifier of the associated offer quote that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteId") + private final String offerQuoteId; + + /** + * Unique identifier of the associated offer quote that is immutable on creation. + * + * @return the value + */ + public String getOfferQuoteId() { + return offerQuoteId; + } + + /** OCID of the reseller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private final String resellerCompartmentId; + + /** + * OCID of the reseller's tenancy (root compartment). + * + * @return the value + */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + + /** OCID of the ISV's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private final String isvCompartmentId; + + /** + * OCID of the ISV's tenancy (root compartment). + * + * @return the value + */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + + /** 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 quote 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 quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of offer quote attachment. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The time the offer quote attachment was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the offer quote attachment was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the offer quote attachment was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the offer quote attachment was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the offer quote attachment. */ + 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 quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the offer quote attachment. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include specific + * validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include specific + * validation errors. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** 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 recipient of the offer quote attachment. */ + public enum Recipient implements com.oracle.bmc.http.internal.BmcEnum { + Reseller("RESELLER"), + Buyer("BUYER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Recipient.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Recipient v : Recipient.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Recipient(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Recipient create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Recipient', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The recipient of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipient") + private final Recipient recipient; + + /** + * The recipient of the offer quote attachment. + * + * @return the value + */ + public Recipient getRecipient() { + return recipient; + } + + /** + * 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("QuoteAttachment("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(", resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(", isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + 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(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", recipient=").append(String.valueOf(this.recipient)); + 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 QuoteAttachment)) { + return false; + } + + QuoteAttachment other = (QuoteAttachment) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && 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.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.recipient, other.recipient) + && 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.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.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.timeUpdated == null ? 43 : this.timeUpdated.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.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + (this.recipient == null ? 43 : this.recipient.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/QuoteAttachmentCollection.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachmentCollection.java new file mode 100644 index 00000000000..9ce9783508d --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachmentCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Results of offer quote attachment summaries.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = QuoteAttachmentCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class QuoteAttachmentCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public QuoteAttachmentCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of offer quote attachments. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of offer quote attachments. + * + * @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 QuoteAttachmentCollection build() { + QuoteAttachmentCollection model = new QuoteAttachmentCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QuoteAttachmentCollection 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 offer quote attachments. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of offer quote attachments. + * + * @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("QuoteAttachmentCollection("); + 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 QuoteAttachmentCollection)) { + return false; + } + + QuoteAttachmentCollection other = (QuoteAttachmentCollection) 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/QuoteAttachmentSummary.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachmentSummary.java new file mode 100644 index 00000000000..550d0dac22f --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/QuoteAttachmentSummary.java @@ -0,0 +1,722 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 offer quote 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 = QuoteAttachmentSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class QuoteAttachmentSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "offerQuoteId", + "resellerCompartmentId", + "isvCompartmentId", + "displayName", + "type", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "mimeType", + "recipient", + "freeformTags", + "definedTags", + "systemTags" + }) + public QuoteAttachmentSummary( + String id, + String offerQuoteId, + String resellerCompartmentId, + String isvCompartmentId, + String displayName, + QuoteAttachment.Type type, + java.util.Date timeCreated, + java.util.Date timeUpdated, + QuoteAttachment.LifecycleState lifecycleState, + String lifecycleDetails, + String mimeType, + QuoteAttachment.Recipient recipient, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.offerQuoteId = offerQuoteId; + this.resellerCompartmentId = resellerCompartmentId; + this.isvCompartmentId = isvCompartmentId; + this.displayName = displayName; + this.type = type; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.mimeType = mimeType; + this.recipient = recipient; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique identifier that is immutable on creation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Unique identifier of the associated offer quote that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteId") + private String offerQuoteId; + + /** + * Unique identifier of the associated offer quote that is immutable on creation. + * + * @param offerQuoteId the value to set + * @return this builder + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + this.__explicitlySet__.add("offerQuoteId"); + return this; + } + /** OCID of the reseller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private String resellerCompartmentId; + + /** + * OCID of the reseller's tenancy (root compartment). + * + * @param resellerCompartmentId the value to set + * @return this builder + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + this.__explicitlySet__.add("resellerCompartmentId"); + return this; + } + /** OCID of the ISV's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private String isvCompartmentId; + + /** + * OCID of the ISV's tenancy (root compartment). + * + * @param isvCompartmentId the value to set + * @return this builder + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + this.__explicitlySet__.add("isvCompartmentId"); + 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 quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private QuoteAttachment.Type type; + + /** + * The type of offer quote attachment. + * + * @param type the value to set + * @return this builder + */ + public Builder type(QuoteAttachment.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * The time the offer quote attachment was created. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the offer quote attachment 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 quote attachment was updated. An RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the offer quote attachment 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 current state of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private QuoteAttachment.LifecycleState lifecycleState; + + /** + * The current state of the offer quote attachment. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(QuoteAttachment.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include + * specific validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include + * specific validation errors. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + 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 current state of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipient") + private QuoteAttachment.Recipient recipient; + + /** + * The current state of the offer quote attachment. + * + * @param recipient the value to set + * @return this builder + */ + public Builder recipient(QuoteAttachment.Recipient recipient) { + this.recipient = recipient; + this.__explicitlySet__.add("recipient"); + 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 QuoteAttachmentSummary build() { + QuoteAttachmentSummary model = + new QuoteAttachmentSummary( + this.id, + this.offerQuoteId, + this.resellerCompartmentId, + this.isvCompartmentId, + this.displayName, + this.type, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.mimeType, + this.recipient, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QuoteAttachmentSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("offerQuoteId")) { + this.offerQuoteId(model.getOfferQuoteId()); + } + if (model.wasPropertyExplicitlySet("resellerCompartmentId")) { + this.resellerCompartmentId(model.getResellerCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvCompartmentId")) { + this.isvCompartmentId(model.getIsvCompartmentId()); + } + 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("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("mimeType")) { + this.mimeType(model.getMimeType()); + } + if (model.wasPropertyExplicitlySet("recipient")) { + this.recipient(model.getRecipient()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique identifier that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique identifier that is immutable on creation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Unique identifier of the associated offer quote that is immutable on creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("offerQuoteId") + private final String offerQuoteId; + + /** + * Unique identifier of the associated offer quote that is immutable on creation. + * + * @return the value + */ + public String getOfferQuoteId() { + return offerQuoteId; + } + + /** OCID of the reseller's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("resellerCompartmentId") + private final String resellerCompartmentId; + + /** + * OCID of the reseller's tenancy (root compartment). + * + * @return the value + */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + + /** OCID of the ISV's tenancy (root compartment). */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private final String isvCompartmentId; + + /** + * OCID of the ISV's tenancy (root compartment). + * + * @return the value + */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + + /** 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 quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final QuoteAttachment.Type type; + + /** + * The type of offer quote attachment. + * + * @return the value + */ + public QuoteAttachment.Type getType() { + return type; + } + + /** The time the offer quote attachment was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the offer quote attachment was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the offer quote attachment was updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the offer quote attachment was updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final QuoteAttachment.LifecycleState lifecycleState; + + /** + * The current state of the offer quote attachment. + * + * @return the value + */ + public QuoteAttachment.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include specific + * validation errors. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Provides detailed information about the current state of the offer quote attachment. For + * example, if the offer quote attachment is in a failed state this message can include specific + * validation errors. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** 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 current state of the offer quote attachment. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipient") + private final QuoteAttachment.Recipient recipient; + + /** + * The current state of the offer quote attachment. + * + * @return the value + */ + public QuoteAttachment.Recipient getRecipient() { + return recipient; + } + + /** + * 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("QuoteAttachmentSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(", resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(", isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + 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(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", mimeType=").append(String.valueOf(this.mimeType)); + sb.append(", recipient=").append(String.valueOf(this.recipient)); + 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 QuoteAttachmentSummary)) { + return false; + } + + QuoteAttachmentSummary other = (QuoteAttachmentSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && 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.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.mimeType, other.mimeType) + && java.util.Objects.equals(this.recipient, other.recipient) + && 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.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.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.timeUpdated == null ? 43 : this.timeUpdated.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.mimeType == null ? 43 : this.mimeType.hashCode()); + result = (result * PRIME) + (this.recipient == null ? 43 : this.recipient.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/ResellerInformation.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/ResellerInformation.java new file mode 100644 index 00000000000..145c3a24010 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/ResellerInformation.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * The information related to the reseller of an offer quote.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = ResellerInformation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResellerInformation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"primaryContact", "additionalContacts"}) + public ResellerInformation(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 reseller. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private java.util.List additionalContacts; + + /** + * The additional contacts associated with the reseller. + * + * @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 ResellerInformation build() { + ResellerInformation model = + new ResellerInformation(this.primaryContact, this.additionalContacts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResellerInformation 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 reseller. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalContacts") + private final java.util.List additionalContacts; + + /** + * The additional contacts associated with the reseller. + * + * @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("ResellerInformation("); + 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 ResellerInformation)) { + return false; + } + + ResellerInformation other = (ResellerInformation) 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/ResourceBundle.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/ResourceBundle.java index e60d7786f3f..5938d24d600 100644 --- 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 @@ -5,7 +5,7 @@ package com.oracle.bmc.marketplaceprivateoffer.model; /** - * Resource Bundle associated with an Offer
+ * 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 @@ -37,12 +37,12 @@ public ResourceBundle( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The type of resources in the bundle */ + /** The type of resources in the bundle. */ @com.fasterxml.jackson.annotation.JsonProperty("type") private Type type; /** - * The type of resources in the bundle + * The type of resources in the bundle. * * @param type the value to set * @return this builder @@ -52,12 +52,12 @@ public Builder type(Type type) { this.__explicitlySet__.add("type"); return this; } - /** The quantity of a resources associated with the bundle */ + /** 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 + * The quantity of a resources associated with the bundle. * * @param quantity the value to set * @return this builder @@ -67,12 +67,12 @@ public Builder quantity(Long quantity) { this.__explicitlySet__.add("quantity"); return this; } - /** The unit of measurement for the resource bundle */ + /** 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 + * The unit of measurement for the resource bundle. * * @param unitOfMeasurement the value to set * @return this builder @@ -82,12 +82,12 @@ public Builder unitOfMeasurement(UnitOfMeasurement unitOfMeasurement) { this.__explicitlySet__.add("unitOfMeasurement"); return this; } - /** the ids of the resources in the Offer */ + /** 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 + * The IDs of the resources in the offer. * * @param resourceIds the value to set * @return this builder @@ -138,7 +138,7 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The type of resources in the bundle */ + /** The type of resources in the bundle. */ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { Listing("LISTING"), @@ -181,12 +181,12 @@ public static Type create(String key) { return UnknownEnumValue; } }; - /** The type of resources in the bundle */ + /** The type of resources in the bundle. */ @com.fasterxml.jackson.annotation.JsonProperty("type") private final Type type; /** - * The type of resources in the bundle + * The type of resources in the bundle. * * @return the value */ @@ -194,12 +194,12 @@ public Type getType() { return type; } - /** The quantity of a resources associated with the bundle */ + /** 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 + * The quantity of a resources associated with the bundle. * * @return the value */ @@ -207,7 +207,7 @@ public Long getQuantity() { return quantity; } - /** The unit of measurement for the resource bundle */ + /** 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"), @@ -256,12 +256,12 @@ public static UnitOfMeasurement create(String key) { return UnknownEnumValue; } }; - /** The unit of measurement for the resource bundle */ + /** 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 + * The unit of measurement for the resource bundle. * * @return the value */ @@ -269,12 +269,12 @@ public UnitOfMeasurement getUnitOfMeasurement() { return unitOfMeasurement; } - /** the ids of the resources in the Offer */ + /** 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 + * The IDs of the resources in the offer. * * @return the value */ diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/RespondToOfferQuoteDetails.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/RespondToOfferQuoteDetails.java new file mode 100644 index 00000000000..0c94d0c5bfe --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/RespondToOfferQuoteDetails.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.model; + +/** + * Details for the offer quote ISV response.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly 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 = RespondToOfferQuoteDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RespondToOfferQuoteDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"pricing"}) + public RespondToOfferQuoteDetails(Pricing pricing) { + super(); + this.pricing = pricing; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RespondToOfferQuoteDetails build() { + RespondToOfferQuoteDetails model = new RespondToOfferQuoteDetails(this.pricing); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RespondToOfferQuoteDetails model) { + if (model.wasPropertyExplicitlySet("pricing")) { + this.pricing(model.getPricing()); + } + 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("pricing") + private final Pricing pricing; + + public Pricing getPricing() { + return pricing; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RespondToOfferQuoteDetails("); + sb.append("super=").append(super.toString()); + sb.append("pricing=").append(String.valueOf(this.pricing)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RespondToOfferQuoteDetails)) { + return false; + } + + RespondToOfferQuoteDetails other = (RespondToOfferQuoteDetails) o; + return java.util.Objects.equals(this.pricing, other.pricing) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.pricing == null ? 43 : this.pricing.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UpdateOfferQuoteDetails.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UpdateOfferQuoteDetails.java new file mode 100644 index 00000000000..96428eb6895 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/model/UpdateOfferQuoteDetails.java @@ -0,0 +1,592 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 = UpdateOfferQuoteDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOfferQuoteDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "isvCompartmentId", + "isvPublisherId", + "description", + "buyerCompartmentIds", + "resellerInformation", + "isvInformation", + "resourceBundles", + "buyerAcceptanceDeadline", + "buyerOfferDuration", + "freeformTags", + "definedTags" + }) + public UpdateOfferQuoteDetails( + String displayName, + String isvCompartmentId, + String isvPublisherId, + String description, + java.util.List buyerCompartmentIds, + ResellerInformation resellerInformation, + IsvInformation isvInformation, + java.util.List resourceBundles, + java.util.Date buyerAcceptanceDeadline, + String buyerOfferDuration, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.isvCompartmentId = isvCompartmentId; + this.isvPublisherId = isvPublisherId; + this.description = description; + this.buyerCompartmentIds = buyerCompartmentIds; + this.resellerInformation = resellerInformation; + this.isvInformation = isvInformation; + this.resourceBundles = resourceBundles; + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.buyerOfferDuration = buyerOfferDuration; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Offer quotes identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Offer quotes 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 ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private String isvCompartmentId; + + /** + * Compartment identifier of the ISV. + * + * @param isvCompartmentId the value to set + * @return this builder + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + this.__explicitlySet__.add("isvCompartmentId"); + return this; + } + /** Publisher identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherId") + private String isvPublisherId; + + /** + * Publisher identifier of the ISV. + * + * @param isvPublisherId the value to set + * @return this builder + */ + public Builder isvPublisherId(String isvPublisherId) { + this.isvPublisherId = isvPublisherId; + this.__explicitlySet__.add("isvPublisherId"); + return this; + } + /** Description of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the offer quote. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** A list of buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @param buyerCompartmentIds the value to set + * @return this builder + */ + public Builder buyerCompartmentIds(java.util.List buyerCompartmentIds) { + this.buyerCompartmentIds = buyerCompartmentIds; + this.__explicitlySet__.add("buyerCompartmentIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private ResellerInformation resellerInformation; + + public Builder resellerInformation(ResellerInformation resellerInformation) { + this.resellerInformation = resellerInformation; + this.__explicitlySet__.add("resellerInformation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private IsvInformation isvInformation; + + public Builder isvInformation(IsvInformation isvInformation) { + this.isvInformation = isvInformation; + this.__explicitlySet__.add("isvInformation"); + 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; + } + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @param buyerAcceptanceDeadline the value to set + * @return this builder + */ + public Builder buyerAcceptanceDeadline(java.util.Date buyerAcceptanceDeadline) { + this.buyerAcceptanceDeadline = buyerAcceptanceDeadline; + this.__explicitlySet__.add("buyerAcceptanceDeadline"); + return this; + } + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @param buyerOfferDuration the value to set + * @return this builder + */ + public Builder buyerOfferDuration(String buyerOfferDuration) { + this.buyerOfferDuration = buyerOfferDuration; + this.__explicitlySet__.add("buyerOfferDuration"); + 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 UpdateOfferQuoteDetails build() { + UpdateOfferQuoteDetails model = + new UpdateOfferQuoteDetails( + this.displayName, + this.isvCompartmentId, + this.isvPublisherId, + this.description, + this.buyerCompartmentIds, + this.resellerInformation, + this.isvInformation, + this.resourceBundles, + this.buyerAcceptanceDeadline, + this.buyerOfferDuration, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOfferQuoteDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("isvCompartmentId")) { + this.isvCompartmentId(model.getIsvCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isvPublisherId")) { + this.isvPublisherId(model.getIsvPublisherId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("buyerCompartmentIds")) { + this.buyerCompartmentIds(model.getBuyerCompartmentIds()); + } + if (model.wasPropertyExplicitlySet("resellerInformation")) { + this.resellerInformation(model.getResellerInformation()); + } + if (model.wasPropertyExplicitlySet("isvInformation")) { + this.isvInformation(model.getIsvInformation()); + } + if (model.wasPropertyExplicitlySet("resourceBundles")) { + this.resourceBundles(model.getResourceBundles()); + } + if (model.wasPropertyExplicitlySet("buyerAcceptanceDeadline")) { + this.buyerAcceptanceDeadline(model.getBuyerAcceptanceDeadline()); + } + if (model.wasPropertyExplicitlySet("buyerOfferDuration")) { + this.buyerOfferDuration(model.getBuyerOfferDuration()); + } + 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); + } + + /** Offer quotes identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Offer quotes identifier. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Compartment identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvCompartmentId") + private final String isvCompartmentId; + + /** + * Compartment identifier of the ISV. + * + * @return the value + */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + + /** Publisher identifier of the ISV. */ + @com.fasterxml.jackson.annotation.JsonProperty("isvPublisherId") + private final String isvPublisherId; + + /** + * Publisher identifier of the ISV. + * + * @return the value + */ + public String getIsvPublisherId() { + return isvPublisherId; + } + + /** Description of the offer quote. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the offer quote. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** A list of buyer tenancies. */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerCompartmentIds") + private final java.util.List buyerCompartmentIds; + + /** + * A list of buyer tenancies. + * + * @return the value + */ + public java.util.List getBuyerCompartmentIds() { + return buyerCompartmentIds; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resellerInformation") + private final ResellerInformation resellerInformation; + + public ResellerInformation getResellerInformation() { + return resellerInformation; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isvInformation") + private final IsvInformation isvInformation; + + public IsvInformation getIsvInformation() { + return isvInformation; + } + + /** 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; + } + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerAcceptanceDeadline") + private final java.util.Date buyerAcceptanceDeadline; + + /** + * The time the offer for the buyer must be accepted by before the offer becomes invalid. An + * RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getBuyerAcceptanceDeadline() { + return buyerAcceptanceDeadline; + } + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("buyerOfferDuration") + private final String buyerOfferDuration; + + /** + * Duration the offer for the buyer will be active after its start date. An ISO8601 extended + * formatted string. + * + * @return the value + */ + public String getBuyerOfferDuration() { + return buyerOfferDuration; + } + + /** + * 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("UpdateOfferQuoteDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + sb.append(", isvPublisherId=").append(String.valueOf(this.isvPublisherId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", buyerCompartmentIds=").append(String.valueOf(this.buyerCompartmentIds)); + sb.append(", resellerInformation=").append(String.valueOf(this.resellerInformation)); + sb.append(", isvInformation=").append(String.valueOf(this.isvInformation)); + sb.append(", resourceBundles=").append(String.valueOf(this.resourceBundles)); + sb.append(", buyerAcceptanceDeadline=") + .append(String.valueOf(this.buyerAcceptanceDeadline)); + sb.append(", buyerOfferDuration=").append(String.valueOf(this.buyerOfferDuration)); + 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 UpdateOfferQuoteDetails)) { + return false; + } + + UpdateOfferQuoteDetails other = (UpdateOfferQuoteDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && java.util.Objects.equals(this.isvPublisherId, other.isvPublisherId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.buyerCompartmentIds, other.buyerCompartmentIds) + && java.util.Objects.equals(this.resellerInformation, other.resellerInformation) + && java.util.Objects.equals(this.isvInformation, other.isvInformation) + && java.util.Objects.equals(this.resourceBundles, other.resourceBundles) + && java.util.Objects.equals( + this.buyerAcceptanceDeadline, other.buyerAcceptanceDeadline) + && java.util.Objects.equals(this.buyerOfferDuration, other.buyerOfferDuration) + && 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.isvCompartmentId == null ? 43 : this.isvCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvPublisherId == null ? 43 : this.isvPublisherId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.buyerCompartmentIds == null + ? 43 + : this.buyerCompartmentIds.hashCode()); + result = + (result * PRIME) + + (this.resellerInformation == null + ? 43 + : this.resellerInformation.hashCode()); + result = + (result * PRIME) + + (this.isvInformation == null ? 43 : this.isvInformation.hashCode()); + result = + (result * PRIME) + + (this.resourceBundles == null ? 43 : this.resourceBundles.hashCode()); + result = + (result * PRIME) + + (this.buyerAcceptanceDeadline == null + ? 43 + : this.buyerAcceptanceDeadline.hashCode()); + result = + (result * PRIME) + + (this.buyerOfferDuration == null + ? 43 + : this.buyerOfferDuration.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/requests/CreateOfferQuoteRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateOfferQuoteRequest.java new file mode 100644 index 00000000000..d5cebba9584 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateOfferQuoteRequest.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateOfferQuoteRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateOfferQuoteRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails> { + + /** Details for the new offer quote. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails + createOfferQuoteDetails; + + /** Details for the new offer quote. */ + public com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails + getCreateOfferQuoteDetails() { + return createOfferQuoteDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error 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.CreateOfferQuoteDetails getBody$() { + return createOfferQuoteDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOfferQuoteRequest, + com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new offer quote. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails + createOfferQuoteDetails = null; + + /** + * Details for the new offer quote. + * + * @param createOfferQuoteDetails the value to set + * @return this builder instance + */ + public Builder createOfferQuoteDetails( + com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails + createOfferQuoteDetails) { + this.createOfferQuoteDetails = createOfferQuoteDetails; + 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(CreateOfferQuoteRequest o) { + createOfferQuoteDetails(o.getCreateOfferQuoteDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOfferQuoteRequest 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 CreateOfferQuoteRequest + */ + public CreateOfferQuoteRequest build() { + CreateOfferQuoteRequest 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.CreateOfferQuoteDetails body) { + createOfferQuoteDetails(body); + return this; + } + + /** + * Build the instance of CreateOfferQuoteRequest 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 CreateOfferQuoteRequest + */ + public CreateOfferQuoteRequest buildWithoutInvocationCallback() { + CreateOfferQuoteRequest request = new CreateOfferQuoteRequest(); + request.createOfferQuoteDetails = createOfferQuoteDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOfferQuoteRequest(createOfferQuoteDetails, 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() + .createOfferQuoteDetails(createOfferQuoteDetails) + .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(",createOfferQuoteDetails=").append(String.valueOf(this.createOfferQuoteDetails)); + 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 CreateOfferQuoteRequest)) { + return false; + } + + CreateOfferQuoteRequest other = (CreateOfferQuoteRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createOfferQuoteDetails, other.createOfferQuoteDetails) + && 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.createOfferQuoteDetails == null + ? 43 + : this.createOfferQuoteDetails.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/CreateQuoteAttachmentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateQuoteAttachmentRequest.java new file mode 100644 index 00000000000..e95be74c19b --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/CreateQuoteAttachmentRequest.java @@ -0,0 +1,310 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use + * CreateQuoteAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateQuoteAttachmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails> { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** Details for the new offer quote attachment. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails + createQuoteAttachmentDetails; + + /** Details for the new offer quote attachment. */ + public com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails + getCreateQuoteAttachmentDetails() { + return createQuoteAttachmentDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails getBody$() { + return createQuoteAttachmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateQuoteAttachmentRequest, + com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** Details for the new offer quote attachment. */ + private com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails + createQuoteAttachmentDetails = null; + + /** + * Details for the new offer quote attachment. + * + * @param createQuoteAttachmentDetails the value to set + * @return this builder instance + */ + public Builder createQuoteAttachmentDetails( + com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails + createQuoteAttachmentDetails) { + this.createQuoteAttachmentDetails = createQuoteAttachmentDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(CreateQuoteAttachmentRequest o) { + offerQuoteId(o.getOfferQuoteId()); + createQuoteAttachmentDetails(o.getCreateQuoteAttachmentDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateQuoteAttachmentRequest 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 CreateQuoteAttachmentRequest + */ + public CreateQuoteAttachmentRequest build() { + CreateQuoteAttachmentRequest 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.CreateQuoteAttachmentDetails body) { + createQuoteAttachmentDetails(body); + return this; + } + + /** + * Build the instance of CreateQuoteAttachmentRequest 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 CreateQuoteAttachmentRequest + */ + public CreateQuoteAttachmentRequest buildWithoutInvocationCallback() { + CreateQuoteAttachmentRequest request = new CreateQuoteAttachmentRequest(); + request.offerQuoteId = offerQuoteId; + request.createQuoteAttachmentDetails = createQuoteAttachmentDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateQuoteAttachmentRequest(offerQuoteId, createQuoteAttachmentDetails, + // 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() + .offerQuoteId(offerQuoteId) + .createQuoteAttachmentDetails(createQuoteAttachmentDetails) + .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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",createQuoteAttachmentDetails=") + .append(String.valueOf(this.createQuoteAttachmentDetails)); + 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 CreateQuoteAttachmentRequest)) { + return false; + } + + CreateQuoteAttachmentRequest other = (CreateQuoteAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals( + this.createQuoteAttachmentDetails, other.createQuoteAttachmentDetails) + && 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.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.createQuoteAttachmentDetails == null + ? 43 + : this.createQuoteAttachmentDetails.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-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteOfferQuoteRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteOfferQuoteRequest.java new file mode 100644 index 00000000000..406389e7643 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteOfferQuoteRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use DeleteOfferQuoteRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteOfferQuoteRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * 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< + DeleteOfferQuoteRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + 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(DeleteOfferQuoteRequest o) { + offerQuoteId(o.getOfferQuoteId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteOfferQuoteRequest 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 DeleteOfferQuoteRequest + */ + public DeleteOfferQuoteRequest build() { + DeleteOfferQuoteRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteOfferQuoteRequest 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 DeleteOfferQuoteRequest + */ + public DeleteOfferQuoteRequest buildWithoutInvocationCallback() { + DeleteOfferQuoteRequest request = new DeleteOfferQuoteRequest(); + request.offerQuoteId = offerQuoteId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteOfferQuoteRequest(offerQuoteId, 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().offerQuoteId(offerQuoteId).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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + 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 DeleteOfferQuoteRequest)) { + return false; + } + + DeleteOfferQuoteRequest other = (DeleteOfferQuoteRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && 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.offerQuoteId == null ? 43 : this.offerQuoteId.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/DeleteQuoteAttachmentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteQuoteAttachmentRequest.java new file mode 100644 index 00000000000..33e9dd9346e --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/DeleteQuoteAttachmentRequest.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use + * DeleteQuoteAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteQuoteAttachmentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** Unique offer quote attachment identifier. */ + private String quoteAttachmentId; + + /** Unique offer quote attachment identifier. */ + public String getQuoteAttachmentId() { + return quoteAttachmentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * 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< + DeleteQuoteAttachmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** Unique offer quote attachment identifier. */ + private String quoteAttachmentId = null; + + /** + * Unique offer quote attachment identifier. + * + * @param quoteAttachmentId the value to set + * @return this builder instance + */ + public Builder quoteAttachmentId(String quoteAttachmentId) { + this.quoteAttachmentId = quoteAttachmentId; + 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(DeleteQuoteAttachmentRequest o) { + offerQuoteId(o.getOfferQuoteId()); + quoteAttachmentId(o.getQuoteAttachmentId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteQuoteAttachmentRequest 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 DeleteQuoteAttachmentRequest + */ + public DeleteQuoteAttachmentRequest build() { + DeleteQuoteAttachmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteQuoteAttachmentRequest 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 DeleteQuoteAttachmentRequest + */ + public DeleteQuoteAttachmentRequest buildWithoutInvocationCallback() { + DeleteQuoteAttachmentRequest request = new DeleteQuoteAttachmentRequest(); + request.offerQuoteId = offerQuoteId; + request.quoteAttachmentId = quoteAttachmentId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteQuoteAttachmentRequest(offerQuoteId, quoteAttachmentId, 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() + .offerQuoteId(offerQuoteId) + .quoteAttachmentId(quoteAttachmentId) + .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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",quoteAttachmentId=").append(String.valueOf(this.quoteAttachmentId)); + 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 DeleteQuoteAttachmentRequest)) { + return false; + } + + DeleteQuoteAttachmentRequest other = (DeleteQuoteAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.quoteAttachmentId, other.quoteAttachmentId) + && 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.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.quoteAttachmentId == null ? 43 : this.quoteAttachmentId.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/GetOfferQuoteInternalDetailRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferQuoteInternalDetailRequest.java new file mode 100644 index 00000000000..7e731842840 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferQuoteInternalDetailRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use + * GetOfferQuoteInternalDetailRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferQuoteInternalDetailRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** 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< + GetOfferQuoteInternalDetailRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + 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(GetOfferQuoteInternalDetailRequest o) { + offerQuoteId(o.getOfferQuoteId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOfferQuoteInternalDetailRequest 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 GetOfferQuoteInternalDetailRequest + */ + public GetOfferQuoteInternalDetailRequest build() { + GetOfferQuoteInternalDetailRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOfferQuoteInternalDetailRequest 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 GetOfferQuoteInternalDetailRequest + */ + public GetOfferQuoteInternalDetailRequest buildWithoutInvocationCallback() { + GetOfferQuoteInternalDetailRequest request = new GetOfferQuoteInternalDetailRequest(); + request.offerQuoteId = offerQuoteId; + request.opcRequestId = opcRequestId; + return request; + // new GetOfferQuoteInternalDetailRequest(offerQuoteId, 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().offerQuoteId(offerQuoteId).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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + 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 GetOfferQuoteInternalDetailRequest)) { + return false; + } + + GetOfferQuoteInternalDetailRequest other = (GetOfferQuoteInternalDetailRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerQuoteId == null ? 43 : this.offerQuoteId.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/GetOfferQuoteRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferQuoteRequest.java new file mode 100644 index 00000000000..21c2769e33a --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetOfferQuoteRequest.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use GetOfferQuoteRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferQuoteRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** 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< + GetOfferQuoteRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + 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(GetOfferQuoteRequest o) { + offerQuoteId(o.getOfferQuoteId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetOfferQuoteRequest 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 GetOfferQuoteRequest + */ + public GetOfferQuoteRequest build() { + GetOfferQuoteRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetOfferQuoteRequest 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 GetOfferQuoteRequest + */ + public GetOfferQuoteRequest buildWithoutInvocationCallback() { + GetOfferQuoteRequest request = new GetOfferQuoteRequest(); + request.offerQuoteId = offerQuoteId; + request.opcRequestId = opcRequestId; + return request; + // new GetOfferQuoteRequest(offerQuoteId, 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().offerQuoteId(offerQuoteId).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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + 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 GetOfferQuoteRequest)) { + return false; + } + + GetOfferQuoteRequest other = (GetOfferQuoteRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerQuoteId == null ? 43 : this.offerQuoteId.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/GetQuoteAttachmentContentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetQuoteAttachmentContentRequest.java new file mode 100644 index 00000000000..eedfaba3c5d --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetQuoteAttachmentContentRequest.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use + * GetQuoteAttachmentContentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetQuoteAttachmentContentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** Unique offer quote attachment identifier. */ + private String quoteAttachmentId; + + /** Unique offer quote attachment identifier. */ + public String getQuoteAttachmentId() { + return quoteAttachmentId; + } + /** 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< + GetQuoteAttachmentContentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** Unique offer quote attachment identifier. */ + private String quoteAttachmentId = null; + + /** + * Unique offer quote attachment identifier. + * + * @param quoteAttachmentId the value to set + * @return this builder instance + */ + public Builder quoteAttachmentId(String quoteAttachmentId) { + this.quoteAttachmentId = quoteAttachmentId; + 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(GetQuoteAttachmentContentRequest o) { + offerQuoteId(o.getOfferQuoteId()); + quoteAttachmentId(o.getQuoteAttachmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetQuoteAttachmentContentRequest 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 GetQuoteAttachmentContentRequest + */ + public GetQuoteAttachmentContentRequest build() { + GetQuoteAttachmentContentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetQuoteAttachmentContentRequest 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 GetQuoteAttachmentContentRequest + */ + public GetQuoteAttachmentContentRequest buildWithoutInvocationCallback() { + GetQuoteAttachmentContentRequest request = new GetQuoteAttachmentContentRequest(); + request.offerQuoteId = offerQuoteId; + request.quoteAttachmentId = quoteAttachmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetQuoteAttachmentContentRequest(offerQuoteId, quoteAttachmentId, 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() + .offerQuoteId(offerQuoteId) + .quoteAttachmentId(quoteAttachmentId) + .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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",quoteAttachmentId=").append(String.valueOf(this.quoteAttachmentId)); + 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 GetQuoteAttachmentContentRequest)) { + return false; + } + + GetQuoteAttachmentContentRequest other = (GetQuoteAttachmentContentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.quoteAttachmentId, other.quoteAttachmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.quoteAttachmentId == null ? 43 : this.quoteAttachmentId.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/GetQuoteAttachmentRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetQuoteAttachmentRequest.java new file mode 100644 index 00000000000..6607ee517fb --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/GetQuoteAttachmentRequest.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use GetQuoteAttachmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetQuoteAttachmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** Unique offer quote attachment identifier. */ + private String quoteAttachmentId; + + /** Unique offer quote attachment identifier. */ + public String getQuoteAttachmentId() { + return quoteAttachmentId; + } + /** 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< + GetQuoteAttachmentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** Unique offer quote attachment identifier. */ + private String quoteAttachmentId = null; + + /** + * Unique offer quote attachment identifier. + * + * @param quoteAttachmentId the value to set + * @return this builder instance + */ + public Builder quoteAttachmentId(String quoteAttachmentId) { + this.quoteAttachmentId = quoteAttachmentId; + 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(GetQuoteAttachmentRequest o) { + offerQuoteId(o.getOfferQuoteId()); + quoteAttachmentId(o.getQuoteAttachmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetQuoteAttachmentRequest 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 GetQuoteAttachmentRequest + */ + public GetQuoteAttachmentRequest build() { + GetQuoteAttachmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetQuoteAttachmentRequest 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 GetQuoteAttachmentRequest + */ + public GetQuoteAttachmentRequest buildWithoutInvocationCallback() { + GetQuoteAttachmentRequest request = new GetQuoteAttachmentRequest(); + request.offerQuoteId = offerQuoteId; + request.quoteAttachmentId = quoteAttachmentId; + request.opcRequestId = opcRequestId; + return request; + // new GetQuoteAttachmentRequest(offerQuoteId, quoteAttachmentId, 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() + .offerQuoteId(offerQuoteId) + .quoteAttachmentId(quoteAttachmentId) + .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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",quoteAttachmentId=").append(String.valueOf(this.quoteAttachmentId)); + 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 GetQuoteAttachmentRequest)) { + return false; + } + + GetQuoteAttachmentRequest other = (GetQuoteAttachmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.quoteAttachmentId, other.quoteAttachmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.quoteAttachmentId == null ? 43 : this.quoteAttachmentId.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/ListOfferQuotesRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListOfferQuotesRequest.java new file mode 100644 index 00000000000..f47ad4bdf23 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListOfferQuotesRequest.java @@ -0,0 +1,478 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListOfferQuotesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListOfferQuotesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** OCID of the reseller's compartment. */ + private String resellerCompartmentId; + + /** OCID of the reseller's compartment. */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + /** OCID of the ISV's compartment. */ + private String isvCompartmentId; + + /** OCID of the ISV's compartment. */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + /** A filter to return resources whose lifecycle state matches the given lifecycle state. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.LifecycleState lifecycleState; + + /** A filter to return resources whose lifecycle state matches the given lifecycle state. */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.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 quote identifier. */ + private String id; + + /** Unique offer quote 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< + ListOfferQuotesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** OCID of the reseller's compartment. */ + private String resellerCompartmentId = null; + + /** + * OCID of the reseller's compartment. + * + * @param resellerCompartmentId the value to set + * @return this builder instance + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + return this; + } + + /** OCID of the ISV's compartment. */ + private String isvCompartmentId = null; + + /** + * OCID of the ISV's compartment. + * + * @param isvCompartmentId the value to set + * @return this builder instance + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + return this; + } + + /** A filter to return resources whose lifecycle state matches the given lifecycle state. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.LifecycleState + lifecycleState = null; + + /** + * A filter to return resources whose lifecycle state matches the given lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote.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 quote identifier. */ + private String id = null; + + /** + * Unique offer quote 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(ListOfferQuotesRequest o) { + resellerCompartmentId(o.getResellerCompartmentId()); + isvCompartmentId(o.getIsvCompartmentId()); + 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 ListOfferQuotesRequest 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 ListOfferQuotesRequest + */ + public ListOfferQuotesRequest build() { + ListOfferQuotesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOfferQuotesRequest 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 ListOfferQuotesRequest + */ + public ListOfferQuotesRequest buildWithoutInvocationCallback() { + ListOfferQuotesRequest request = new ListOfferQuotesRequest(); + request.resellerCompartmentId = resellerCompartmentId; + request.isvCompartmentId = isvCompartmentId; + 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 ListOfferQuotesRequest(resellerCompartmentId, isvCompartmentId, 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() + .resellerCompartmentId(resellerCompartmentId) + .isvCompartmentId(isvCompartmentId) + .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(",resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(",isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + 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 ListOfferQuotesRequest)) { + return false; + } + + ListOfferQuotesRequest other = (ListOfferQuotesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && 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.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.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/ListQuoteAttachmentsRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListQuoteAttachmentsRequest.java new file mode 100644 index 00000000000..8414d6428f6 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/ListQuoteAttachmentsRequest.java @@ -0,0 +1,510 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListQuoteAttachmentsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListQuoteAttachmentsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** OCID of the reseller's compartment. */ + private String resellerCompartmentId; + + /** OCID of the reseller's compartment. */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + /** OCID of the ISV's compartment. */ + private String isvCompartmentId; + + /** OCID of the ISV's compartment. */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.LifecycleState + lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.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 quote attachment identifier. */ + private String id; + + /** Unique offer quote attachment 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< + ListQuoteAttachmentsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** OCID of the reseller's compartment. */ + private String resellerCompartmentId = null; + + /** + * OCID of the reseller's compartment. + * + * @param resellerCompartmentId the value to set + * @return this builder instance + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + return this; + } + + /** OCID of the ISV's compartment. */ + private String isvCompartmentId = null; + + /** + * OCID of the ISV's compartment. + * + * @param isvCompartmentId the value to set + * @return this builder instance + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment.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.QuoteAttachment.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 quote attachment identifier. */ + private String id = null; + + /** + * Unique offer quote attachment 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(ListQuoteAttachmentsRequest o) { + offerQuoteId(o.getOfferQuoteId()); + resellerCompartmentId(o.getResellerCompartmentId()); + isvCompartmentId(o.getIsvCompartmentId()); + 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 ListQuoteAttachmentsRequest 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 ListQuoteAttachmentsRequest + */ + public ListQuoteAttachmentsRequest build() { + ListQuoteAttachmentsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListQuoteAttachmentsRequest 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 ListQuoteAttachmentsRequest + */ + public ListQuoteAttachmentsRequest buildWithoutInvocationCallback() { + ListQuoteAttachmentsRequest request = new ListQuoteAttachmentsRequest(); + request.offerQuoteId = offerQuoteId; + request.resellerCompartmentId = resellerCompartmentId; + request.isvCompartmentId = isvCompartmentId; + 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 ListQuoteAttachmentsRequest(offerQuoteId, resellerCompartmentId, + // isvCompartmentId, 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() + .offerQuoteId(offerQuoteId) + .resellerCompartmentId(resellerCompartmentId) + .isvCompartmentId(isvCompartmentId) + .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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(",isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + 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 ListQuoteAttachmentsRequest)) { + return false; + } + + ListQuoteAttachmentsRequest other = (ListQuoteAttachmentsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && 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.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.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/RespondToOfferQuoteRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/RespondToOfferQuoteRequest.java new file mode 100644 index 00000000000..eb07a14b991 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/RespondToOfferQuoteRequest.java @@ -0,0 +1,354 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 RespondToOfferQuoteRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RespondToOfferQuoteRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails> { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** Details for the offer quote ISV response. */ + private com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails + respondToOfferQuoteDetails; + + /** Details for the offer quote ISV response. */ + public com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails + getRespondToOfferQuoteDetails() { + return respondToOfferQuoteDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails getBody$() { + return respondToOfferQuoteDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RespondToOfferQuoteRequest, + com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** Details for the offer quote ISV response. */ + private com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails + respondToOfferQuoteDetails = null; + + /** + * Details for the offer quote ISV response. + * + * @param respondToOfferQuoteDetails the value to set + * @return this builder instance + */ + public Builder respondToOfferQuoteDetails( + com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails + respondToOfferQuoteDetails) { + this.respondToOfferQuoteDetails = respondToOfferQuoteDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(RespondToOfferQuoteRequest o) { + offerQuoteId(o.getOfferQuoteId()); + respondToOfferQuoteDetails(o.getRespondToOfferQuoteDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RespondToOfferQuoteRequest 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 RespondToOfferQuoteRequest + */ + public RespondToOfferQuoteRequest build() { + RespondToOfferQuoteRequest 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.RespondToOfferQuoteDetails body) { + respondToOfferQuoteDetails(body); + return this; + } + + /** + * Build the instance of RespondToOfferQuoteRequest 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 RespondToOfferQuoteRequest + */ + public RespondToOfferQuoteRequest buildWithoutInvocationCallback() { + RespondToOfferQuoteRequest request = new RespondToOfferQuoteRequest(); + request.offerQuoteId = offerQuoteId; + request.respondToOfferQuoteDetails = respondToOfferQuoteDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RespondToOfferQuoteRequest(offerQuoteId, respondToOfferQuoteDetails, ifMatch, + // opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .offerQuoteId(offerQuoteId) + .respondToOfferQuoteDetails(respondToOfferQuoteDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",respondToOfferQuoteDetails=") + .append(String.valueOf(this.respondToOfferQuoteDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RespondToOfferQuoteRequest)) { + return false; + } + + RespondToOfferQuoteRequest other = (RespondToOfferQuoteRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals( + this.respondToOfferQuoteDetails, other.respondToOfferQuoteDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.respondToOfferQuoteDetails == null + ? 43 + : this.respondToOfferQuoteDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferQuoteRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferQuoteRequest.java new file mode 100644 index 00000000000..50b75ea2287 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferQuoteRequest.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use SendOfferQuoteRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SendOfferQuoteRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SendOfferQuoteRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(SendOfferQuoteRequest o) { + offerQuoteId(o.getOfferQuoteId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SendOfferQuoteRequest 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 SendOfferQuoteRequest + */ + public SendOfferQuoteRequest build() { + SendOfferQuoteRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of SendOfferQuoteRequest 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 SendOfferQuoteRequest + */ + public SendOfferQuoteRequest buildWithoutInvocationCallback() { + SendOfferQuoteRequest request = new SendOfferQuoteRequest(); + request.offerQuoteId = offerQuoteId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new SendOfferQuoteRequest(offerQuoteId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .offerQuoteId(offerQuoteId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SendOfferQuoteRequest)) { + return false; + } + + SendOfferQuoteRequest other = (SendOfferQuoteRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferRequest.java new file mode 100644 index 00000000000..16dbf2f3a9d --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/SendOfferRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use SendOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SendOfferRequest 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< + SendOfferRequest, 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(SendOfferRequest o) { + offerId(o.getOfferId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SendOfferRequest 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 SendOfferRequest + */ + public SendOfferRequest build() { + SendOfferRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of SendOfferRequest 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 SendOfferRequest + */ + public SendOfferRequest buildWithoutInvocationCallback() { + SendOfferRequest request = new SendOfferRequest(); + request.offerId = offerId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new SendOfferRequest(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 SendOfferRequest)) { + return false; + } + + SendOfferRequest other = (SendOfferRequest) 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/UpdateOfferQuoteRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/UpdateOfferQuoteRequest.java new file mode 100644 index 00000000000..9a10ad9a9a9 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/UpdateOfferQuoteRequest.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use UpdateOfferQuoteRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateOfferQuoteRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails> { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** The information to be updated. */ + private com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails + updateOfferQuoteDetails; + + /** The information to be updated. */ + public com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails + getUpdateOfferQuoteDetails() { + return updateOfferQuoteDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * 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.UpdateOfferQuoteDetails getBody$() { + return updateOfferQuoteDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateOfferQuoteRequest, + com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails + updateOfferQuoteDetails = null; + + /** + * The information to be updated. + * + * @param updateOfferQuoteDetails the value to set + * @return this builder instance + */ + public Builder updateOfferQuoteDetails( + com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails + updateOfferQuoteDetails) { + this.updateOfferQuoteDetails = updateOfferQuoteDetails; + 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(UpdateOfferQuoteRequest o) { + offerQuoteId(o.getOfferQuoteId()); + updateOfferQuoteDetails(o.getUpdateOfferQuoteDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateOfferQuoteRequest 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 UpdateOfferQuoteRequest + */ + public UpdateOfferQuoteRequest build() { + UpdateOfferQuoteRequest 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.UpdateOfferQuoteDetails body) { + updateOfferQuoteDetails(body); + return this; + } + + /** + * Build the instance of UpdateOfferQuoteRequest 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 UpdateOfferQuoteRequest + */ + public UpdateOfferQuoteRequest buildWithoutInvocationCallback() { + UpdateOfferQuoteRequest request = new UpdateOfferQuoteRequest(); + request.offerQuoteId = offerQuoteId; + request.updateOfferQuoteDetails = updateOfferQuoteDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateOfferQuoteRequest(offerQuoteId, updateOfferQuoteDetails, 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() + .offerQuoteId(offerQuoteId) + .updateOfferQuoteDetails(updateOfferQuoteDetails) + .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(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",updateOfferQuoteDetails=").append(String.valueOf(this.updateOfferQuoteDetails)); + 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 UpdateOfferQuoteRequest)) { + return false; + } + + UpdateOfferQuoteRequest other = (UpdateOfferQuoteRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals( + this.updateOfferQuoteDetails, other.updateOfferQuoteDetails) + && 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.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.updateOfferQuoteDetails == null + ? 43 + : this.updateOfferQuoteDetails.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/WithdrawOfferQuoteRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/WithdrawOfferQuoteRequest.java new file mode 100644 index 00000000000..485f62b5549 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/WithdrawOfferQuoteRequest.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use WithdrawOfferQuoteRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class WithdrawOfferQuoteRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Unique offer quote identifier. */ + private String offerQuoteId; + + /** Unique offer quote identifier. */ + public String getOfferQuoteId() { + return offerQuoteId; + } + /** OCID of the reseller's compartment. */ + private String resellerCompartmentId; + + /** OCID of the reseller's compartment. */ + public String getResellerCompartmentId() { + return resellerCompartmentId; + } + /** OCID of the ISV's compartment. */ + private String isvCompartmentId; + + /** OCID of the ISV's compartment. */ + public String getIsvCompartmentId() { + return isvCompartmentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + WithdrawOfferQuoteRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique offer quote identifier. */ + private String offerQuoteId = null; + + /** + * Unique offer quote identifier. + * + * @param offerQuoteId the value to set + * @return this builder instance + */ + public Builder offerQuoteId(String offerQuoteId) { + this.offerQuoteId = offerQuoteId; + return this; + } + + /** OCID of the reseller's compartment. */ + private String resellerCompartmentId = null; + + /** + * OCID of the reseller's compartment. + * + * @param resellerCompartmentId the value to set + * @return this builder instance + */ + public Builder resellerCompartmentId(String resellerCompartmentId) { + this.resellerCompartmentId = resellerCompartmentId; + return this; + } + + /** OCID of the ISV's compartment. */ + private String isvCompartmentId = null; + + /** + * OCID of the ISV's compartment. + * + * @param isvCompartmentId the value to set + * @return this builder instance + */ + public Builder isvCompartmentId(String isvCompartmentId) { + this.isvCompartmentId = isvCompartmentId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.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(WithdrawOfferQuoteRequest o) { + offerQuoteId(o.getOfferQuoteId()); + resellerCompartmentId(o.getResellerCompartmentId()); + isvCompartmentId(o.getIsvCompartmentId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of WithdrawOfferQuoteRequest 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 WithdrawOfferQuoteRequest + */ + public WithdrawOfferQuoteRequest build() { + WithdrawOfferQuoteRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of WithdrawOfferQuoteRequest 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 WithdrawOfferQuoteRequest + */ + public WithdrawOfferQuoteRequest buildWithoutInvocationCallback() { + WithdrawOfferQuoteRequest request = new WithdrawOfferQuoteRequest(); + request.offerQuoteId = offerQuoteId; + request.resellerCompartmentId = resellerCompartmentId; + request.isvCompartmentId = isvCompartmentId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new WithdrawOfferQuoteRequest(offerQuoteId, resellerCompartmentId, isvCompartmentId, + // ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .offerQuoteId(offerQuoteId) + .resellerCompartmentId(resellerCompartmentId) + .isvCompartmentId(isvCompartmentId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",offerQuoteId=").append(String.valueOf(this.offerQuoteId)); + sb.append(",resellerCompartmentId=").append(String.valueOf(this.resellerCompartmentId)); + sb.append(",isvCompartmentId=").append(String.valueOf(this.isvCompartmentId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WithdrawOfferQuoteRequest)) { + return false; + } + + WithdrawOfferQuoteRequest other = (WithdrawOfferQuoteRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.offerQuoteId, other.offerQuoteId) + && java.util.Objects.equals(this.resellerCompartmentId, other.resellerCompartmentId) + && java.util.Objects.equals(this.isvCompartmentId, other.isvCompartmentId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.offerQuoteId == null ? 43 : this.offerQuoteId.hashCode()); + result = + (result * PRIME) + + (this.resellerCompartmentId == null + ? 43 + : this.resellerCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.isvCompartmentId == null ? 43 : this.isvCompartmentId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/WithdrawOfferRequest.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/WithdrawOfferRequest.java new file mode 100644 index 00000000000..561985dd27f --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/requests/WithdrawOfferRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.requests; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; +/** + * Example: Click here to see how to use WithdrawOfferRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class WithdrawOfferRequest 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< + WithdrawOfferRequest, 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(WithdrawOfferRequest o) { + offerId(o.getOfferId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of WithdrawOfferRequest 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 WithdrawOfferRequest + */ + public WithdrawOfferRequest build() { + WithdrawOfferRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of WithdrawOfferRequest 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 WithdrawOfferRequest + */ + public WithdrawOfferRequest buildWithoutInvocationCallback() { + WithdrawOfferRequest request = new WithdrawOfferRequest(); + request.offerId = offerId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new WithdrawOfferRequest(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 WithdrawOfferRequest)) { + return false; + } + + WithdrawOfferRequest other = (WithdrawOfferRequest) 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/responses/CreateOfferQuoteResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateOfferQuoteResponse.java new file mode 100644 index 00000000000..9b2fc8f511b --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateOfferQuoteResponse.java @@ -0,0 +1,335 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateOfferQuoteResponse 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; + } + + /** + * URL for the created offer quote. The offer quote OCID is generated after this request is + * sent. + */ + private String location; + + /** + * URL for the created offer quote. The offer quote OCID is generated after this request is + * sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** + * 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; + } + + /** The returned {@code OfferQuote} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote; + + /** + * The returned {@code OfferQuote} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote getOfferQuote() { + return offerQuote; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "location", + "contentLocation", + "opcWorkRequestId", + "offerQuote" + }) + private CreateOfferQuoteResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + String location, + String contentLocation, + String opcWorkRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.location = location; + this.contentLocation = contentLocation; + this.opcWorkRequestId = opcWorkRequestId; + this.offerQuote = offerQuote; + } + + 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; + } + + /** + * URL for the created offer quote. The offer quote OCID is generated after this request is + * sent. + */ + private String location; + + /** + * URL for the created offer quote. The offer quote OCID is generated after this request is + * sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** + * 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; + } + + /** The returned {@code OfferQuote} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote; + + /** + * The returned {@code OfferQuote} instance. + * + * @param offerQuote the value to set + * @return this builder + */ + public Builder offerQuote( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote) { + this.offerQuote = offerQuote; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateOfferQuoteResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + opcWorkRequestId(o.getOpcWorkRequestId()); + offerQuote(o.getOfferQuote()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateOfferQuoteResponse build() { + return new CreateOfferQuoteResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + location, + contentLocation, + opcWorkRequestId, + offerQuote); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",offerQuote=").append(String.valueOf(offerQuote)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOfferQuoteResponse)) { + return false; + } + + CreateOfferQuoteResponse other = (CreateOfferQuoteResponse) 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.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.offerQuote, other.offerQuote); + } + + @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.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.offerQuote == null ? 43 : this.offerQuote.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateQuoteAttachmentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateQuoteAttachmentResponse.java new file mode 100644 index 00000000000..620f824d9dd --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/CreateQuoteAttachmentResponse.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class CreateQuoteAttachmentResponse 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; + } + + /** + * URL for the created offer quote attachment. The offer quote attachment OCID is generated + * after this request is sent. + */ + private String location; + + /** + * URL for the created offer quote attachment. The offer quote attachment OCID is generated + * after this request is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** + * 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; + } + + /** The returned {@code QuoteAttachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment; + + /** + * The returned {@code QuoteAttachment} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment getQuoteAttachment() { + return quoteAttachment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "location", + "contentLocation", + "opcWorkRequestId", + "quoteAttachment" + }) + private CreateQuoteAttachmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String location, + String contentLocation, + String opcWorkRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.opcWorkRequestId = opcWorkRequestId; + this.quoteAttachment = quoteAttachment; + } + + 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; + } + + /** + * URL for the created offer quote attachment. The offer quote attachment OCID is generated + * after this request is sent. + */ + private String location; + + /** + * URL for the created offer quote attachment. The offer quote attachment OCID is generated + * after this request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** + * 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; + } + + /** The returned {@code QuoteAttachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment; + + /** + * The returned {@code QuoteAttachment} instance. + * + * @param quoteAttachment the value to set + * @return this builder + */ + public Builder quoteAttachment( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment) { + this.quoteAttachment = quoteAttachment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateQuoteAttachmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + opcWorkRequestId(o.getOpcWorkRequestId()); + quoteAttachment(o.getQuoteAttachment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateQuoteAttachmentResponse build() { + return new CreateQuoteAttachmentResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + location, + contentLocation, + opcWorkRequestId, + quoteAttachment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",quoteAttachment=").append(String.valueOf(quoteAttachment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateQuoteAttachmentResponse)) { + return false; + } + + CreateQuoteAttachmentResponse other = (CreateQuoteAttachmentResponse) 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.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.quoteAttachment, other.quoteAttachment); + } + + @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.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.quoteAttachment == null ? 43 : this.quoteAttachment.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteOfferQuoteResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteOfferQuoteResponse.java new file mode 100644 index 00000000000..e4f5f8b331c --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteOfferQuoteResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteOfferQuoteResponse 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 DeleteOfferQuoteResponse( + 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(DeleteOfferQuoteResponse 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 DeleteOfferQuoteResponse build() { + return new DeleteOfferQuoteResponse( + __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 DeleteOfferQuoteResponse)) { + return false; + } + + DeleteOfferQuoteResponse other = (DeleteOfferQuoteResponse) 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/DeleteQuoteAttachmentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteQuoteAttachmentResponse.java new file mode 100644 index 00000000000..8da1db61fcd --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/DeleteQuoteAttachmentResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DeleteQuoteAttachmentResponse 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 DeleteQuoteAttachmentResponse( + 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(DeleteQuoteAttachmentResponse 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 DeleteQuoteAttachmentResponse build() { + return new DeleteQuoteAttachmentResponse( + __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 DeleteQuoteAttachmentResponse)) { + return false; + } + + DeleteQuoteAttachmentResponse other = (DeleteQuoteAttachmentResponse) 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/GetOfferQuoteInternalDetailResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferQuoteInternalDetailResponse.java new file mode 100644 index 00000000000..a1dde0c1e78 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferQuoteInternalDetailResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferQuoteInternalDetailResponse 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 OfferQuoteInternalDetail} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail + offerQuoteInternalDetail; + + /** + * The returned {@code OfferQuoteInternalDetail} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail + getOfferQuoteInternalDetail() { + return offerQuoteInternalDetail; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offerQuoteInternalDetail" + }) + private GetOfferQuoteInternalDetailResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail + offerQuoteInternalDetail) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offerQuoteInternalDetail = offerQuoteInternalDetail; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetOfferQuoteInternalDetailResponse> { + 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 OfferQuoteInternalDetail} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail + offerQuoteInternalDetail; + + /** + * The returned {@code OfferQuoteInternalDetail} instance. + * + * @param offerQuoteInternalDetail the value to set + * @return this builder + */ + public Builder offerQuoteInternalDetail( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail + offerQuoteInternalDetail) { + this.offerQuoteInternalDetail = offerQuoteInternalDetail; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOfferQuoteInternalDetailResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offerQuoteInternalDetail(o.getOfferQuoteInternalDetail()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOfferQuoteInternalDetailResponse build() { + return new GetOfferQuoteInternalDetailResponse( + __httpStatusCode__, headers, etag, opcRequestId, offerQuoteInternalDetail); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offerQuoteInternalDetail=").append(String.valueOf(offerQuoteInternalDetail)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOfferQuoteInternalDetailResponse)) { + return false; + } + + GetOfferQuoteInternalDetailResponse other = (GetOfferQuoteInternalDetailResponse) 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.offerQuoteInternalDetail, other.offerQuoteInternalDetail); + } + + @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.offerQuoteInternalDetail == null + ? 43 + : this.offerQuoteInternalDetail.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferQuoteResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferQuoteResponse.java new file mode 100644 index 00000000000..f2adff7c279 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetOfferQuoteResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetOfferQuoteResponse 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 OfferQuote} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote; + + /** + * The returned {@code OfferQuote} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote getOfferQuote() { + return offerQuote; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "offerQuote" + }) + private GetOfferQuoteResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.offerQuote = offerQuote; + } + + 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 OfferQuote} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote; + + /** + * The returned {@code OfferQuote} instance. + * + * @param offerQuote the value to set + * @return this builder + */ + public Builder offerQuote( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote) { + this.offerQuote = offerQuote; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetOfferQuoteResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + offerQuote(o.getOfferQuote()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetOfferQuoteResponse build() { + return new GetOfferQuoteResponse( + __httpStatusCode__, headers, etag, opcRequestId, offerQuote); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offerQuote=").append(String.valueOf(offerQuote)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetOfferQuoteResponse)) { + return false; + } + + GetOfferQuoteResponse other = (GetOfferQuoteResponse) 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.offerQuote, other.offerQuote); + } + + @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.offerQuote == null ? 43 : this.offerQuote.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetQuoteAttachmentContentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetQuoteAttachmentContentResponse.java new file mode 100644 index 00000000000..6c897a7a995 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetQuoteAttachmentContentResponse.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetQuoteAttachmentContentResponse 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 GetQuoteAttachmentContentResponse( + 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< + GetQuoteAttachmentContentResponse> { + 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(GetQuoteAttachmentContentResponse 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 GetQuoteAttachmentContentResponse build() { + return new GetQuoteAttachmentContentResponse( + __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 GetQuoteAttachmentContentResponse)) { + return false; + } + + GetQuoteAttachmentContentResponse other = (GetQuoteAttachmentContentResponse) 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/GetQuoteAttachmentResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetQuoteAttachmentResponse.java new file mode 100644 index 00000000000..7f11d3d6143 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/GetQuoteAttachmentResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetQuoteAttachmentResponse 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 QuoteAttachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment; + + /** + * The returned {@code QuoteAttachment} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment getQuoteAttachment() { + return quoteAttachment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "quoteAttachment" + }) + private GetQuoteAttachmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.quoteAttachment = quoteAttachment; + } + + 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 QuoteAttachment} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment; + + /** + * The returned {@code QuoteAttachment} instance. + * + * @param quoteAttachment the value to set + * @return this builder + */ + public Builder quoteAttachment( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment quoteAttachment) { + this.quoteAttachment = quoteAttachment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetQuoteAttachmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + quoteAttachment(o.getQuoteAttachment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetQuoteAttachmentResponse build() { + return new GetQuoteAttachmentResponse( + __httpStatusCode__, headers, etag, opcRequestId, quoteAttachment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",quoteAttachment=").append(String.valueOf(quoteAttachment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetQuoteAttachmentResponse)) { + return false; + } + + GetQuoteAttachmentResponse other = (GetQuoteAttachmentResponse) 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.quoteAttachment, other.quoteAttachment); + } + + @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.quoteAttachment == null ? 43 : this.quoteAttachment.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListOfferQuotesResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListOfferQuotesResponse.java new file mode 100644 index 00000000000..9630d303296 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListOfferQuotesResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListOfferQuotesResponse 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 OfferQuoteCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteCollection offerQuoteCollection; + + /** + * The returned {@code OfferQuoteCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteCollection + getOfferQuoteCollection() { + return offerQuoteCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "offerQuoteCollection" + }) + private ListOfferQuotesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteCollection + offerQuoteCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.offerQuoteCollection = offerQuoteCollection; + } + + 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 OfferQuoteCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteCollection + offerQuoteCollection; + + /** + * The returned {@code OfferQuoteCollection} instance. + * + * @param offerQuoteCollection the value to set + * @return this builder + */ + public Builder offerQuoteCollection( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteCollection + offerQuoteCollection) { + this.offerQuoteCollection = offerQuoteCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOfferQuotesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + offerQuoteCollection(o.getOfferQuoteCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOfferQuotesResponse build() { + return new ListOfferQuotesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, offerQuoteCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",offerQuoteCollection=").append(String.valueOf(offerQuoteCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOfferQuotesResponse)) { + return false; + } + + ListOfferQuotesResponse other = (ListOfferQuotesResponse) 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.offerQuoteCollection, other.offerQuoteCollection); + } + + @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.offerQuoteCollection == null + ? 43 + : this.offerQuoteCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListQuoteAttachmentsResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListQuoteAttachmentsResponse.java new file mode 100644 index 00000000000..d81631cf57d --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/ListQuoteAttachmentsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListQuoteAttachmentsResponse 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 QuoteAttachmentCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentCollection + quoteAttachmentCollection; + + /** + * The returned {@code QuoteAttachmentCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentCollection + getQuoteAttachmentCollection() { + return quoteAttachmentCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "quoteAttachmentCollection" + }) + private ListQuoteAttachmentsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentCollection + quoteAttachmentCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.quoteAttachmentCollection = quoteAttachmentCollection; + } + + 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 QuoteAttachmentCollection} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentCollection + quoteAttachmentCollection; + + /** + * The returned {@code QuoteAttachmentCollection} instance. + * + * @param quoteAttachmentCollection the value to set + * @return this builder + */ + public Builder quoteAttachmentCollection( + com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentCollection + quoteAttachmentCollection) { + this.quoteAttachmentCollection = quoteAttachmentCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListQuoteAttachmentsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + quoteAttachmentCollection(o.getQuoteAttachmentCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListQuoteAttachmentsResponse build() { + return new ListQuoteAttachmentsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + quoteAttachmentCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",quoteAttachmentCollection=").append(String.valueOf(quoteAttachmentCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListQuoteAttachmentsResponse)) { + return false; + } + + ListQuoteAttachmentsResponse other = (ListQuoteAttachmentsResponse) 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.quoteAttachmentCollection, other.quoteAttachmentCollection); + } + + @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.quoteAttachmentCollection == null + ? 43 + : this.quoteAttachmentCollection.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/RespondToOfferQuoteResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/RespondToOfferQuoteResponse.java new file mode 100644 index 00000000000..7dcb9b49772 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/RespondToOfferQuoteResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RespondToOfferQuoteResponse 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 RespondToOfferQuoteResponse( + 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(RespondToOfferQuoteResponse 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 RespondToOfferQuoteResponse build() { + return new RespondToOfferQuoteResponse( + __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 RespondToOfferQuoteResponse)) { + return false; + } + + RespondToOfferQuoteResponse other = (RespondToOfferQuoteResponse) 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/SendOfferQuoteResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/SendOfferQuoteResponse.java new file mode 100644 index 00000000000..c247812dd6e --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/SendOfferQuoteResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SendOfferQuoteResponse 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 SendOfferQuoteResponse( + 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(SendOfferQuoteResponse 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 SendOfferQuoteResponse build() { + return new SendOfferQuoteResponse( + __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 SendOfferQuoteResponse)) { + return false; + } + + SendOfferQuoteResponse other = (SendOfferQuoteResponse) 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/SendOfferResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/SendOfferResponse.java new file mode 100644 index 00000000000..0ae5a476e39 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/SendOfferResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SendOfferResponse 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 SendOfferResponse( + 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(SendOfferResponse 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 SendOfferResponse build() { + return new SendOfferResponse( + __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 SendOfferResponse)) { + return false; + } + + SendOfferResponse other = (SendOfferResponse) 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/UpdateOfferQuoteResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/UpdateOfferQuoteResponse.java new file mode 100644 index 00000000000..4ec4eabde21 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/UpdateOfferQuoteResponse.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateOfferQuoteResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous 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; + } + + /** The returned {@code OfferQuote} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote; + + /** + * The returned {@code OfferQuote} instance. + * + * @return the value + */ + public com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote getOfferQuote() { + return offerQuote; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "offerQuote" + }) + private UpdateOfferQuoteResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.offerQuote = offerQuote; + } + + 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; + } + + /** + * 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; + } + + /** The returned {@code OfferQuote} instance. */ + private com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote; + + /** + * The returned {@code OfferQuote} instance. + * + * @param offerQuote the value to set + * @return this builder + */ + public Builder offerQuote( + com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote offerQuote) { + this.offerQuote = offerQuote; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateOfferQuoteResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + offerQuote(o.getOfferQuote()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateOfferQuoteResponse build() { + return new UpdateOfferQuoteResponse( + __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId, offerQuote); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",offerQuote=").append(String.valueOf(offerQuote)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOfferQuoteResponse)) { + return false; + } + + UpdateOfferQuoteResponse other = (UpdateOfferQuoteResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.offerQuote, other.offerQuote); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.offerQuote == null ? 43 : this.offerQuote.hashCode()); + return result; + } +} diff --git a/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/WithdrawOfferQuoteResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/WithdrawOfferQuoteResponse.java new file mode 100644 index 00000000000..5e8c2070f0a --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/WithdrawOfferQuoteResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class WithdrawOfferQuoteResponse 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 WithdrawOfferQuoteResponse( + 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(WithdrawOfferQuoteResponse 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 WithdrawOfferQuoteResponse build() { + return new WithdrawOfferQuoteResponse( + __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 WithdrawOfferQuoteResponse)) { + return false; + } + + WithdrawOfferQuoteResponse other = (WithdrawOfferQuoteResponse) 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/WithdrawOfferResponse.java b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/WithdrawOfferResponse.java new file mode 100644 index 00000000000..2a344545061 --- /dev/null +++ b/bmc-marketplaceprivateoffer/src/main/java/com/oracle/bmc/marketplaceprivateoffer/responses/WithdrawOfferResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplaceprivateoffer.responses; + +import com.oracle.bmc.marketplaceprivateoffer.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class WithdrawOfferResponse 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 WithdrawOfferResponse( + 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(WithdrawOfferResponse 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 WithdrawOfferResponse build() { + return new WithdrawOfferResponse( + __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 WithdrawOfferResponse)) { + return false; + } + + WithdrawOfferResponse other = (WithdrawOfferResponse) 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/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 index 28ad44e65db..9643e3907c6 100644 --- 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 @@ -109,6 +109,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateOfferQuoteDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.CreateQuoteAttachmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplaceprivateoffer.model.CustomField", @@ -123,6 +151,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.IsvInformation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.IsvInformation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplaceprivateoffer.model.Offer", @@ -149,6 +191,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.Offer$OfferType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferCollection", @@ -177,6 +225,74 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuote$OfferQuoteStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteInternalDetail$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferQuoteSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplaceprivateoffer.model.OfferSummary", @@ -237,6 +353,80 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachment$Recipient", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.QuoteAttachmentSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.ResellerInformation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.ResellerInformation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplaceprivateoffer.model.ResourceBundle", @@ -263,6 +453,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.RespondToOfferQuoteDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplaceprivateoffer.model.SellerInformation", @@ -297,6 +501,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.marketplaceprivateoffer.model.UpdateOfferQuoteDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.marketplaceprivateoffer.model.UploadData", diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 46ccad17722..78cfd440f1e 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index e1f9383e167..fc4d3c2915a 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index 4903e317462..dac362ae469 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 8cfd2c337d3..25e0547a624 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 01fc7e8cc0a..c4ea689128a 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 8af7f522c14..0668ed102e5 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 7789d234297..420b4cf1610 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index a2e4a13c3a5..f948cdfcbdb 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 5a09bbe4aa1..72b607c9f4f 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 5f89c905686..7ac162c6a3c 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 97c9c2b798b..a0fe1fe400c 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.93.0 + 3.94.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.93.0 + 3.94.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 8730da0b399..4e6f7f0a496 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.93.0 + 3.94.0 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.93.0 + 3.94.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index db02d8a3bdb..3beb3c8e085 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.93.0 + 3.94.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 02b555041fe..a99005bc4ae 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 1c29f7f3efb..13e3958e4a0 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index f45883683e3..96a4aa7cc1e 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 2eaa2698d2b..b34af85f02c 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 5494c83886d..9945f501545 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index e8bf0c3f654..b54c06ae6ae 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 69051ec655b..4ae7260f321 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index fc6d370b1e7..66862a3a63f 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index a9b80cf108a..d79de3e20a1 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateOpensearchClusterDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateOpensearchClusterDetails.java index 71011851448..d7e64aff9e1 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateOpensearchClusterDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateOpensearchClusterDetails.java @@ -32,6 +32,7 @@ public final class UpdateOpensearchClusterDetails "securityMasterUserPasswordHash", "securitySamlConfig", "backupPolicy", + "nsgId", "reverseConnectionEndpointCustomerIps", "outboundClusterConfig", "maintenanceDetails", @@ -49,6 +50,7 @@ public UpdateOpensearchClusterDetails( String securityMasterUserPasswordHash, SecuritySamlConfig securitySamlConfig, BackupPolicy backupPolicy, + String nsgId, java.util.List reverseConnectionEndpointCustomerIps, OutboundClusterConfig outboundClusterConfig, UpdateMaintenanceDetails maintenanceDetails, @@ -65,6 +67,7 @@ public UpdateOpensearchClusterDetails( this.securityMasterUserPasswordHash = securityMasterUserPasswordHash; this.securitySamlConfig = securitySamlConfig; this.backupPolicy = backupPolicy; + this.nsgId = nsgId; this.reverseConnectionEndpointCustomerIps = reverseConnectionEndpointCustomerIps; this.outboundClusterConfig = outboundClusterConfig; this.maintenanceDetails = maintenanceDetails; @@ -164,6 +167,21 @@ public Builder backupPolicy(BackupPolicy backupPolicy) { this.__explicitlySet__.add("backupPolicy"); return this; } + /** The OCID of the NSG where the private endpoint vnic will be attached. */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgId") + private String nsgId; + + /** + * The OCID of the NSG where the private endpoint vnic will be attached. + * + * @param nsgId the value to set + * @return this builder + */ + public Builder nsgId(String nsgId) { + this.nsgId = nsgId; + this.__explicitlySet__.add("nsgId"); + return this; + } /** The customer IP addresses of the endpoint in customer VCN */ @com.fasterxml.jackson.annotation.JsonProperty("reverseConnectionEndpointCustomerIps") private java.util.List reverseConnectionEndpointCustomerIps; @@ -297,6 +315,7 @@ public UpdateOpensearchClusterDetails build() { this.securityMasterUserPasswordHash, this.securitySamlConfig, this.backupPolicy, + this.nsgId, this.reverseConnectionEndpointCustomerIps, this.outboundClusterConfig, this.maintenanceDetails, @@ -334,6 +353,9 @@ public Builder copy(UpdateOpensearchClusterDetails model) { if (model.wasPropertyExplicitlySet("backupPolicy")) { this.backupPolicy(model.getBackupPolicy()); } + if (model.wasPropertyExplicitlySet("nsgId")) { + this.nsgId(model.getNsgId()); + } if (model.wasPropertyExplicitlySet("reverseConnectionEndpointCustomerIps")) { this.reverseConnectionEndpointCustomerIps( model.getReverseConnectionEndpointCustomerIps()); @@ -445,6 +467,19 @@ public BackupPolicy getBackupPolicy() { return backupPolicy; } + /** The OCID of the NSG where the private endpoint vnic will be attached. */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgId") + private final String nsgId; + + /** + * The OCID of the NSG where the private endpoint vnic will be attached. + * + * @return the value + */ + public String getNsgId() { + return nsgId; + } + /** The customer IP addresses of the endpoint in customer VCN */ @com.fasterxml.jackson.annotation.JsonProperty("reverseConnectionEndpointCustomerIps") private final java.util.List reverseConnectionEndpointCustomerIps; @@ -566,6 +601,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.securityMasterUserPasswordHash)); sb.append(", securitySamlConfig=").append(String.valueOf(this.securitySamlConfig)); sb.append(", backupPolicy=").append(String.valueOf(this.backupPolicy)); + sb.append(", nsgId=").append(String.valueOf(this.nsgId)); sb.append(", reverseConnectionEndpointCustomerIps=") .append(String.valueOf(this.reverseConnectionEndpointCustomerIps)); sb.append(", outboundClusterConfig=").append(String.valueOf(this.outboundClusterConfig)); @@ -598,6 +634,7 @@ public boolean equals(Object o) { this.securityMasterUserPasswordHash, other.securityMasterUserPasswordHash) && java.util.Objects.equals(this.securitySamlConfig, other.securitySamlConfig) && java.util.Objects.equals(this.backupPolicy, other.backupPolicy) + && java.util.Objects.equals(this.nsgId, other.nsgId) && java.util.Objects.equals( this.reverseConnectionEndpointCustomerIps, other.reverseConnectionEndpointCustomerIps) @@ -636,6 +673,7 @@ public int hashCode() { ? 43 : this.securitySamlConfig.hashCode()); result = (result * PRIME) + (this.backupPolicy == null ? 43 : this.backupPolicy.hashCode()); + result = (result * PRIME) + (this.nsgId == null ? 43 : this.nsgId.hashCode()); result = (result * PRIME) + (this.reverseConnectionEndpointCustomerIps == null diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 1206c358d97..88109f0af32 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index c0829bff66d..82fc83ce632 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 232b995e0be..3b3d0596ef7 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 7efd0912969..f2ff8f5e5be 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index bad2d060004..6e1c4a96937 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 886d7a1991d..573e5f88946 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index c2b889d96ad..d293d31c67b 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index c738a32348c..ca9d03b1936 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 88950e77066..cbeccc60d68 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ 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 5bb36dcf03a..ce5906c51e5 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.93.0 + 3.94.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.93.0 + 3.94.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.93.0 + 3.94.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index a1c048b77a7..da82fbba09d 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.93.0 + 3.94.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.93.0 + 3.94.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.93.0 + 3.94.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.93.0 + 3.94.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 2b4e0fc2814..84196b504d9 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.93.0 + 3.94.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.93.0 + 3.94.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.93.0 + 3.94.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index b7df2ad92f6..282d2ebaf56 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.93.0 + 3.94.0 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 2c8256d5434..8f88428d4ab 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index a22470cd489..4e25e26b63a 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 984c90015ec..5f8d90c335d 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 84079a99775..604d1b55c04 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index f5159a012b8..3f70397cf84 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 5130eb9aaf4..0f1cd6da01b 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 97b6edddb8e..718958363dd 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 71848971828..a7271867145 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 07ecd189b24..f11841bd016 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index eb5eeca7179..423c5ab4147 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index d23585cf514..9d32377a58e 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 509c08d6d64..80f5ddfaa1e 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index ddbe8aca735..0870461adbf 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index e5c2d85ab87..f7f3fb02be8 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java index 3a2e2b232ac..0aa33e01c81 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java @@ -81,6 +81,21 @@ public interface PartnerIntegeration extends AutoCloseable { */ ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionRequest request); + /** + * Lists marketplace publisher partner info for a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListPartners API. + */ + ListPartnersResponse listPartners(ListPartnersRequest request); + /** * Gets information about a Subscription. * @@ -114,6 +129,73 @@ public interface PartnerIntegeration extends AutoCloseable { */ ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionRequest request); + /** + * Asynchronously submits a UTF-8 CSV usage file for marketplace offers. The file must not + * exceed 50 MB or 10,000 rows and must include required usage columns. + * + *

Note: This operation consumes a stream. + * + *

If the stream supports {@link java.io.InputStream#mark(int)} and {@link + * java.io.InputStream#reset()}, when a retry is necessary, the stream is reset so it starts at + * the beginning (or whatever the stream's position was at the time this operation is called}. + * + *

Note this means that if the caller has used {@link java.io.InputStream#mark(int)} before, + * then the mark will not be the same anymore after this operation, and a subsequent call to + * {@link java.io.InputStream#reset()} by the caller will reset the stream not to the caller's + * mark, but to the position the stream was in when this operation was called. + * + *

If the stream is a {@link java.io.FileInputStream}, and the stream's {@link + * java.nio.channels.FileChannel} position can be changed (like for a regular file), the stream + * will be wrapped in such a way that it does provide support for {@link + * java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}. Then the same + * procedure as above is followed. If the stream's {@link java.nio.channels.FileChannel} + * position cannot be changed (like for a named pipe), then the stream's contents will be + * buffered in memory, as described below. + * + *

If the stream does not support {@link java.io.InputStream#mark(int)} and {@link + * java.io.InputStream#reset()}, then the stream is wrapped in a {@link + * java.io.BufferedInputStream}, which means the entire contents may be buffered in memory. Then + * the same procedure as above is followed. + * + *

The contents of the stream, except when the stream is a {@link java.io.FileInputStream} + * whose {@link java.nio.channels.FileChannel} position can be changed, should be less than 2 + * GiB in size if retries are used. This is because streams 2 GiB in size or larger do no + * guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in + * retries and manage retries yourself. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * SubmitSubscriptionUsageBatch API. + */ + SubmitSubscriptionUsageBatchResponse submitSubscriptionUsageBatch( + SubmitSubscriptionUsageBatchRequest request); + + /** + * Synchronously submits usage records for marketplace offers. Each record must include `id`, + * `marketplaceOfferId`, `amount`, `currencyCode`, `timeUsageStarted`, `timeUsageEnded`, and + * `usageDimensionName`. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * SubmitSubscriptionUsageRecords API. + */ + SubmitSubscriptionUsageRecordsResponse submitSubscriptionUsageRecords( + SubmitSubscriptionUsageRecordsRequest request); + /** * Gets the pre-configured paginators available for list operations in this service which may * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java index 31d7a26f051..76c552d5b45 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java @@ -79,6 +79,21 @@ java.util.concurrent.Future activateSubscription( ActivateSubscriptionRequest, ActivateSubscriptionResponse> handler); + /** + * Lists marketplace publisher partner info for a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listPartners( + ListPartnersRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Gets information about a Subscription. * @@ -111,4 +126,42 @@ java.util.concurrent.Future resolveSubscription( com.oracle.bmc.responses.AsyncHandler< ResolveSubscriptionRequest, ResolveSubscriptionResponse> handler); + + /** + * Asynchronously submits a UTF-8 CSV usage file for marketplace offers. The file must not + * exceed 50 MB or 10,000 rows and must include required usage columns. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future submitSubscriptionUsageBatch( + SubmitSubscriptionUsageBatchRequest request, + com.oracle.bmc.responses.AsyncHandler< + SubmitSubscriptionUsageBatchRequest, + SubmitSubscriptionUsageBatchResponse> + handler); + + /** + * Synchronously submits usage records for marketplace offers. Each record must include `id`, + * `marketplaceOfferId`, `amount`, `currencyCode`, `timeUsageStarted`, `timeUsageEnded`, and + * `usageDimensionName`. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + submitSubscriptionUsageRecords( + SubmitSubscriptionUsageRecordsRequest request, + com.oracle.bmc.responses.AsyncHandler< + SubmitSubscriptionUsageRecordsRequest, + SubmitSubscriptionUsageRecordsResponse> + handler); } diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java index d73856b064a..3bf70a9dd2f 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java @@ -117,7 +117,7 @@ public java.util.concurrent.Future activateSubscri .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ActivateSubscriptionRequest::builder) .basePath("/20260129") - .appendPathParam("partner") + .appendPathParam("partners") .appendPathParam("subscriptions") .appendPathParam(request.getSubscriptionId()) .appendPathParam("actions") @@ -136,6 +136,40 @@ public java.util.concurrent.Future activateSubscri .callAsync(handler); } + @Override + public java.util.concurrent.Future listPartners( + ListPartnersRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + return clientCall(request, ListPartnersResponse::builder) + .logger(LOG, "listPartners") + .serviceDetails( + "PartnerIntegeration", + "ListPartners", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Partner/ListPartners") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPartnersRequest::builder) + .basePath("/20260129") + .appendPathParam("partners") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.self.model.PartnerCollection.class, + ListPartnersResponse.Builder::partnerCollection) + .handleResponseHeaderString( + "opc-request-id", ListPartnersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPartnersResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listingSubscriptions( ListingSubscriptionsRequest request, @@ -153,7 +187,7 @@ public java.util.concurrent.Future listingSubscrip .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListingSubscriptionsRequest::builder) .basePath("/20260129") - .appendPathParam("partner") + .appendPathParam("partners") .appendPathParam("subscriptions") .appendQueryParam("listingId", request.getListingId()) .appendQueryParam("displayName", request.getDisplayName()) @@ -191,7 +225,7 @@ public java.util.concurrent.Future resolveSubscript .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ResolveSubscriptionRequest::builder) .basePath("/20260129") - .appendPathParam("partner") + .appendPathParam("partners") .appendPathParam("subscriptions") .appendPathParam("actions") .appendPathParam("resolve") @@ -209,6 +243,84 @@ public java.util.concurrent.Future resolveSubscript .callAsync(handler); } + @Override + public java.util.concurrent.Future + submitSubscriptionUsageBatch( + SubmitSubscriptionUsageBatchRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SubmitSubscriptionUsageBatchRequest, + SubmitSubscriptionUsageBatchResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull( + request.getSubmitSubscriptionUsageBatchDetails(), + "submitSubscriptionUsageBatchDetails is required"); + + return clientCall(request, SubmitSubscriptionUsageBatchResponse::builder) + .logger(LOG, "submitSubscriptionUsageBatch") + .serviceDetails( + "PartnerIntegeration", + "SubmitSubscriptionUsageBatch", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/CreateSubscriptionUsageRecordDetails/SubmitSubscriptionUsageBatch") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SubmitSubscriptionUsageBatchRequest::builder) + .basePath("/20260129") + .appendPathParam("partners") + .appendPathParam("actions") + .appendPathParam("batchUsageRecords") + .accept("application/json") + .appendHeader("compartment-id", request.getCompartmentId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBinaryRequestBody() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + SubmitSubscriptionUsageBatchResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + SubmitSubscriptionUsageBatchResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + submitSubscriptionUsageRecords( + SubmitSubscriptionUsageRecordsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SubmitSubscriptionUsageRecordsRequest, + SubmitSubscriptionUsageRecordsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull( + request.getSubmitSubscriptionUsageRecordsDetails(), + "submitSubscriptionUsageRecordsDetails is required"); + + return clientCall(request, SubmitSubscriptionUsageRecordsResponse::builder) + .logger(LOG, "submitSubscriptionUsageRecords") + .serviceDetails( + "PartnerIntegeration", + "SubmitSubscriptionUsageRecords", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/CreateSubscriptionUsageRecordDetails/SubmitSubscriptionUsageRecords") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SubmitSubscriptionUsageRecordsRequest::builder) + .basePath("/20260129") + .appendPathParam("partners") + .appendPathParam("actions") + .appendPathParam("submitUsageRecords") + .accept("application/json") + .appendHeader("compartment-id", request.getCompartmentId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + SubmitSubscriptionUsageRecordsResponse.Builder::opcRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java index 2106f6b9ef2..74977d958aa 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java @@ -107,7 +107,7 @@ public ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionReq .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ActivateSubscriptionRequest::builder) .basePath("/20260129") - .appendPathParam("partner") + .appendPathParam("partners") .appendPathParam("subscriptions") .appendPathParam(request.getSubscriptionId()) .appendPathParam("actions") @@ -127,6 +127,38 @@ public ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionReq .callSync(); } + @Override + public ListPartnersResponse listPartners(ListPartnersRequest request) { + + return clientCall(request, ListPartnersResponse::builder) + .logger(LOG, "listPartners") + .serviceDetails( + "PartnerIntegeration", + "ListPartners", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Partner/ListPartners") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPartnersRequest::builder) + .basePath("/20260129") + .appendPathParam("partners") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.self.model.PartnerCollection.class, + ListPartnersResponse.Builder::partnerCollection) + .handleResponseHeaderString( + "opc-request-id", ListPartnersResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPartnersResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsRequest request) { Objects.requireNonNull(request.getListingId(), "listingId is required"); @@ -140,7 +172,7 @@ public ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsReq .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListingSubscriptionsRequest::builder) .basePath("/20260129") - .appendPathParam("partner") + .appendPathParam("partners") .appendPathParam("subscriptions") .appendQueryParam("listingId", request.getListingId()) .appendQueryParam("displayName", request.getDisplayName()) @@ -175,7 +207,7 @@ public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionReques .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ResolveSubscriptionRequest::builder) .basePath("/20260129") - .appendPathParam("partner") + .appendPathParam("partners") .appendPathParam("subscriptions") .appendPathParam("actions") .appendPathParam("resolve") @@ -194,6 +226,76 @@ public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionReques .callSync(); } + @Override + public SubmitSubscriptionUsageBatchResponse submitSubscriptionUsageBatch( + SubmitSubscriptionUsageBatchRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull( + request.getSubmitSubscriptionUsageBatchDetails(), + "submitSubscriptionUsageBatchDetails is required"); + + return clientCall(request, SubmitSubscriptionUsageBatchResponse::builder) + .logger(LOG, "submitSubscriptionUsageBatch") + .serviceDetails( + "PartnerIntegeration", + "SubmitSubscriptionUsageBatch", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/CreateSubscriptionUsageRecordDetails/SubmitSubscriptionUsageBatch") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SubmitSubscriptionUsageBatchRequest::builder) + .basePath("/20260129") + .appendPathParam("partners") + .appendPathParam("actions") + .appendPathParam("batchUsageRecords") + .accept("application/json") + .appendHeader("compartment-id", request.getCompartmentId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBinaryRequestBody() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + SubmitSubscriptionUsageBatchResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + SubmitSubscriptionUsageBatchResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public SubmitSubscriptionUsageRecordsResponse submitSubscriptionUsageRecords( + SubmitSubscriptionUsageRecordsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull( + request.getSubmitSubscriptionUsageRecordsDetails(), + "submitSubscriptionUsageRecordsDetails is required"); + + return clientCall(request, SubmitSubscriptionUsageRecordsResponse::builder) + .logger(LOG, "submitSubscriptionUsageRecords") + .serviceDetails( + "PartnerIntegeration", + "SubmitSubscriptionUsageRecords", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/CreateSubscriptionUsageRecordDetails/SubmitSubscriptionUsageRecords") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SubmitSubscriptionUsageRecordsRequest::builder) + .basePath("/20260129") + .appendPathParam("partners") + .appendPathParam("actions") + .appendPathParam("submitUsageRecords") + .accept("application/json") + .appendHeader("compartment-id", request.getCompartmentId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + SubmitSubscriptionUsageRecordsResponse.Builder::opcRequestId) + .callSync(); + } + @Override public PartnerIntegerationPaginators getPaginators() { return paginators; diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java index 7c1b92b965e..953f5e7a178 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java @@ -41,6 +41,120 @@ public PartnerIntegerationPaginators(PartnerIntegeration client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the listPartners + * 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 listPartnersResponseIterator( + final ListPartnersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListPartnersRequest.Builder, ListPartnersRequest, ListPartnersResponse>( + new java.util.function.Supplier() { + @Override + public ListPartnersRequest.Builder get() { + return ListPartnersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPartnersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPartnersRequest.Builder>, + ListPartnersRequest>() { + @Override + public ListPartnersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPartnersRequest.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 ListPartnersResponse apply(ListPartnersRequest request) { + return client.listPartners(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.self.model.PartnerSummary} objects contained in responses from the + * listPartners 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.self.model.PartnerSummary} objects contained in responses received from + * the service. + */ + public Iterable listPartnersRecordIterator( + final ListPartnersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListPartnersRequest.Builder, + ListPartnersRequest, + ListPartnersResponse, + com.oracle.bmc.self.model.PartnerSummary>( + new java.util.function.Supplier() { + @Override + public ListPartnersRequest.Builder get() { + return ListPartnersRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPartnersResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPartnersRequest.Builder>, + ListPartnersRequest>() { + @Override + public ListPartnersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPartnersRequest.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 ListPartnersResponse apply(ListPartnersRequest request) { + return client.listPartners(request); + } + }, + new java.util.function.Function< + ListPartnersResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListPartnersResponse response) { + return response.getPartnerCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listingSubscriptions operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/Subscription.java b/bmc-self/src/main/java/com/oracle/bmc/self/Subscription.java index efec07ce30f..4aebf600620 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/Subscription.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/Subscription.java @@ -65,6 +65,24 @@ public interface Subscription extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Requests cancellation of a Subscription. The subscription transitions to PendingCancellation + * and remains active until the end of the current billing cycle, at which point it transitions + * to Canceled. The subscription must be in the Active state to be canceled. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CancelSubscription + * API. + */ + CancelSubscriptionResponse cancelSubscription(CancelSubscriptionRequest request); + /** * Cancels a work request. * diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsync.java b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsync.java index 487cfc97ede..44f4f5d2940 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsync.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsync.java @@ -63,6 +63,24 @@ public interface SubscriptionAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Requests cancellation of a Subscription. The subscription transitions to PendingCancellation + * and remains active until the end of the current billing cycle, at which point it transitions + * to Canceled. The subscription must be in the Active state to be canceled. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future cancelSubscription( + CancelSubscriptionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelSubscriptionRequest, CancelSubscriptionResponse> + handler); + /** * Cancels a work request. * diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java index e611c13dfd8..ec386b03d43 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionAsyncClient.java @@ -95,6 +95,44 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future cancelSubscription( + CancelSubscriptionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelSubscriptionRequest, CancelSubscriptionResponse> + handler) { + + Validate.notBlank(request.getSubscriptionId(), "subscriptionId must not be blank"); + Objects.requireNonNull( + request.getCancelSubscriptionDetails(), "cancelSubscriptionDetails is required"); + + return clientCall(request, CancelSubscriptionResponse::builder) + .logger(LOG, "cancelSubscription") + .serviceDetails( + "Subscription", + "CancelSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/CancelSubscription") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelSubscriptionRequest::builder) + .basePath("/20260129") + .appendPathParam("subscriptions") + .appendPathParam(request.getSubscriptionId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.self.model.Subscription.class, + CancelSubscriptionResponse.Builder::subscription) + .handleResponseHeaderString("etag", CancelSubscriptionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CancelSubscriptionResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestRequest request, diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java index b290cea1c06..af9f42ae65b 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/SubscriptionClient.java @@ -123,6 +123,41 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public CancelSubscriptionResponse cancelSubscription(CancelSubscriptionRequest request) { + + Validate.notBlank(request.getSubscriptionId(), "subscriptionId must not be blank"); + Objects.requireNonNull( + request.getCancelSubscriptionDetails(), "cancelSubscriptionDetails is required"); + + return clientCall(request, CancelSubscriptionResponse::builder) + .logger(LOG, "cancelSubscription") + .serviceDetails( + "Subscription", + "CancelSubscription", + "https://docs.oracle.com/iaas/api/#/en/self/20260129/Subscription/CancelSubscription") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelSubscriptionRequest::builder) + .basePath("/20260129") + .appendPathParam("subscriptions") + .appendPathParam(request.getSubscriptionId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.self.model.Subscription.class, + CancelSubscriptionResponse.Builder::subscription) + .handleResponseHeaderString("etag", CancelSubscriptionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CancelSubscriptionResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/BillingDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/BillingDetails.java index 3602e1d0b8c..36492a1478f 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/BillingDetails.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/BillingDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.self.model; /** - * Sku details for billing subscription.
+ * Billing detail entry associated with a subscription.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -23,6 +23,8 @@ public final class BillingDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "pricingPlanKey", + "billingModel", "sku", "metricType", "rateAllocation", @@ -30,12 +32,16 @@ public final class BillingDetails "meters" }) public BillingDetails( + String pricingPlanKey, + BillingModel billingModel, String sku, MetricType metricType, Float rateAllocation, Boolean hasGovSku, java.util.List meters) { super(); + this.pricingPlanKey = pricingPlanKey; + this.billingModel = billingModel; this.sku = sku; this.metricType = metricType; this.rateAllocation = rateAllocation; @@ -45,6 +51,36 @@ public BillingDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** Unique key used to map this SKU to the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private String pricingPlanKey; + + /** + * Unique key used to map this SKU to the pricing plan. + * + * @param pricingPlanKey the value to set + * @return this builder + */ + public Builder pricingPlanKey(String pricingPlanKey) { + this.pricingPlanKey = pricingPlanKey; + this.__explicitlySet__.add("pricingPlanKey"); + return this; + } + /** The billing model this billing detail applies to. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingModel") + private BillingModel billingModel; + + /** + * The billing model this billing detail applies to. + * + * @param billingModel the value to set + * @return this builder + */ + public Builder billingModel(BillingModel billingModel) { + this.billingModel = billingModel; + this.__explicitlySet__.add("billingModel"); + return this; + } /** Sku for service. */ @com.fasterxml.jackson.annotation.JsonProperty("sku") private String sku; @@ -127,6 +163,8 @@ public Builder meters(java.util.List meters) { public BillingDetails build() { BillingDetails model = new BillingDetails( + this.pricingPlanKey, + this.billingModel, this.sku, this.metricType, this.rateAllocation, @@ -140,6 +178,12 @@ public BillingDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(BillingDetails model) { + if (model.wasPropertyExplicitlySet("pricingPlanKey")) { + this.pricingPlanKey(model.getPricingPlanKey()); + } + if (model.wasPropertyExplicitlySet("billingModel")) { + this.billingModel(model.getBillingModel()); + } if (model.wasPropertyExplicitlySet("sku")) { this.sku(model.getSku()); } @@ -168,6 +212,78 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** Unique key used to map this SKU to the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("pricingPlanKey") + private final String pricingPlanKey; + + /** + * Unique key used to map this SKU to the pricing plan. + * + * @return the value + */ + public String getPricingPlanKey() { + return pricingPlanKey; + } + + /** The billing model this billing detail applies to. */ + public enum BillingModel implements com.oracle.bmc.http.internal.BmcEnum { + FlatRate("FLAT_RATE"), + UsageBased("USAGE_BASED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BillingModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BillingModel v : BillingModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BillingModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BillingModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BillingModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The billing model this billing detail applies to. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingModel") + private final BillingModel billingModel; + + /** + * The billing model this billing detail applies to. + * + * @return the value + */ + public BillingModel getBillingModel() { + return billingModel; + } + /** Sku for service. */ @com.fasterxml.jackson.annotation.JsonProperty("sku") private final String sku; @@ -248,7 +364,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("BillingDetails("); sb.append("super=").append(super.toString()); - sb.append("sku=").append(String.valueOf(this.sku)); + sb.append("pricingPlanKey=").append(String.valueOf(this.pricingPlanKey)); + sb.append(", billingModel=").append(String.valueOf(this.billingModel)); + sb.append(", sku=").append(String.valueOf(this.sku)); sb.append(", metricType=").append(String.valueOf(this.metricType)); sb.append(", rateAllocation=").append(String.valueOf(this.rateAllocation)); sb.append(", hasGovSku=").append(String.valueOf(this.hasGovSku)); @@ -267,7 +385,9 @@ public boolean equals(Object o) { } BillingDetails other = (BillingDetails) o; - return java.util.Objects.equals(this.sku, other.sku) + return java.util.Objects.equals(this.pricingPlanKey, other.pricingPlanKey) + && java.util.Objects.equals(this.billingModel, other.billingModel) + && java.util.Objects.equals(this.sku, other.sku) && java.util.Objects.equals(this.metricType, other.metricType) && java.util.Objects.equals(this.rateAllocation, other.rateAllocation) && java.util.Objects.equals(this.hasGovSku, other.hasGovSku) @@ -279,6 +399,10 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.pricingPlanKey == null ? 43 : this.pricingPlanKey.hashCode()); + result = (result * PRIME) + (this.billingModel == null ? 43 : this.billingModel.hashCode()); result = (result * PRIME) + (this.sku == null ? 43 : this.sku.hashCode()); result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); result = diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/BillingFrequency.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/BillingFrequency.java new file mode 100644 index 00000000000..e85a44ab951 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/BillingFrequency.java @@ -0,0 +1,58 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** Supported billing frequencies for subscription plans and usage dimensions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public enum BillingFrequency implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), + Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), + Yearly("YEARLY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BillingFrequency.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BillingFrequency v : BillingFrequency.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BillingFrequency(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BillingFrequency create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BillingFrequency', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/CancelSubscriptionDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/CancelSubscriptionDetails.java new file mode 100644 index 00000000000..a1040fdf0b3 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/CancelSubscriptionDetails.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** + * The data to cancel a Subscription.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CancelSubscriptionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CancelSubscriptionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"reason"}) + public CancelSubscriptionDetails(String reason) { + super(); + this.reason = reason; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Optional reason provided by the customer for the cancellation. */ + @com.fasterxml.jackson.annotation.JsonProperty("reason") + private String reason; + + /** + * Optional reason provided by the customer for the cancellation. + * + * @param reason the value to set + * @return this builder + */ + public Builder reason(String reason) { + this.reason = reason; + this.__explicitlySet__.add("reason"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CancelSubscriptionDetails build() { + CancelSubscriptionDetails model = new CancelSubscriptionDetails(this.reason); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CancelSubscriptionDetails model) { + if (model.wasPropertyExplicitlySet("reason")) { + this.reason(model.getReason()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Optional reason provided by the customer for the cancellation. */ + @com.fasterxml.jackson.annotation.JsonProperty("reason") + private final String reason; + + /** + * Optional reason provided by the customer for the cancellation. + * + * @return the value + */ + public String getReason() { + return reason; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CancelSubscriptionDetails("); + sb.append("super=").append(super.toString()); + sb.append("reason=").append(String.valueOf(this.reason)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelSubscriptionDetails)) { + return false; + } + + CancelSubscriptionDetails other = (CancelSubscriptionDetails) o; + return java.util.Objects.equals(this.reason, other.reason) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.reason == null ? 43 : this.reason.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java new file mode 100644 index 00000000000..48ecbd22c07 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java @@ -0,0 +1,893 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** + * A single usage record to submit for a marketplace offer. The usage window must have {@code + * timeUsageStarted} before {@code timeUsageEnded}.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSubscriptionUsageRecordDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSubscriptionUsageRecordDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "marketplaceOfferId", + "billingType", + "usageDimensionName", + "consumedQuantity", + "amount", + "currencyCode", + "billingPeriod", + "customerTenancyId", + "billingIdentifier", + "unitOfMeasure", + "unitPrice", + "productSku", + "contractDuration", + "additionalMetadata", + "usageRecordId", + "timeUsageStarted", + "timeUsageEnded" + }) + public CreateSubscriptionUsageRecordDetails( + String id, + String marketplaceOfferId, + BillingType billingType, + String usageDimensionName, + Double consumedQuantity, + Double amount, + String currencyCode, + String billingPeriod, + String customerTenancyId, + String billingIdentifier, + String unitOfMeasure, + Double unitPrice, + String productSku, + BillingFrequency contractDuration, + java.util.List additionalMetadata, + String usageRecordId, + java.util.Date timeUsageStarted, + java.util.Date timeUsageEnded) { + super(); + this.id = id; + this.marketplaceOfferId = marketplaceOfferId; + this.billingType = billingType; + this.usageDimensionName = usageDimensionName; + this.consumedQuantity = consumedQuantity; + this.amount = amount; + this.currencyCode = currencyCode; + this.billingPeriod = billingPeriod; + this.customerTenancyId = customerTenancyId; + this.billingIdentifier = billingIdentifier; + this.unitOfMeasure = unitOfMeasure; + this.unitPrice = unitPrice; + this.productSku = productSku; + this.contractDuration = contractDuration; + this.additionalMetadata = additionalMetadata; + this.usageRecordId = usageRecordId; + this.timeUsageStarted = timeUsageStarted; + this.timeUsageEnded = timeUsageEnded; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Partner-provided unique identifier for this usage record. This identifier must be unique + * per partner. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Partner-provided unique identifier for this usage record. This identifier must be unique + * per partner. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * marketplace offer being billed. A submit request can contain records for multiple + * marketplace offers. + */ + @com.fasterxml.jackson.annotation.JsonProperty("marketplaceOfferId") + private String marketplaceOfferId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * marketplace offer being billed. A submit request can contain records for multiple + * marketplace offers. + * + * @param marketplaceOfferId the value to set + * @return this builder + */ + public Builder marketplaceOfferId(String marketplaceOfferId) { + this.marketplaceOfferId = marketplaceOfferId; + this.__explicitlySet__.add("marketplaceOfferId"); + return this; + } + /** The billing type this usage record applies to. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingType") + private BillingType billingType; + + /** + * The billing type this usage record applies to. + * + * @param billingType the value to set + * @return this builder + */ + public Builder billingType(BillingType billingType) { + this.billingType = billingType; + this.__explicitlySet__.add("billingType"); + return this; + } + /** The pricing dimension against which usage is being reported. */ + @com.fasterxml.jackson.annotation.JsonProperty("usageDimensionName") + private String usageDimensionName; + + /** + * The pricing dimension against which usage is being reported. + * + * @param usageDimensionName the value to set + * @return this builder + */ + public Builder usageDimensionName(String usageDimensionName) { + this.usageDimensionName = usageDimensionName; + this.__explicitlySet__.add("usageDimensionName"); + return this; + } + /** An optional non-negative usage quantity being reported. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumedQuantity") + private Double consumedQuantity; + + /** + * An optional non-negative usage quantity being reported. + * + * @param consumedQuantity the value to set + * @return this builder + */ + public Builder consumedQuantity(Double consumedQuantity) { + this.consumedQuantity = consumedQuantity; + this.__explicitlySet__.add("consumedQuantity"); + return this; + } + /** The non-negative usage cost computed by the partner for the submitted usage quantity. */ + @com.fasterxml.jackson.annotation.JsonProperty("amount") + private Double amount; + + /** + * The non-negative usage cost computed by the partner for the submitted usage quantity. + * + * @param amount the value to set + * @return this builder + */ + public Builder amount(Double amount) { + this.amount = amount; + this.__explicitlySet__.add("amount"); + return this; + } + /** The ISO-4217 currency submitted for the computed usage cost. */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") + private String currencyCode; + + /** + * The ISO-4217 currency submitted for the computed usage cost. + * + * @param currencyCode the value to set + * @return this builder + */ + public Builder currencyCode(String currencyCode) { + this.currencyCode = currencyCode; + this.__explicitlySet__.add("currencyCode"); + return this; + } + /** The billing period associated with this usage record in {@code YYYY-MM} format. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingPeriod") + private String billingPeriod; + + /** + * The billing period associated with this usage record in {@code YYYY-MM} format. + * + * @param billingPeriod the value to set + * @return this builder + */ + public Builder billingPeriod(String billingPeriod) { + this.billingPeriod = billingPeriod; + this.__explicitlySet__.add("billingPeriod"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer tenancy associated with this usage record. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerTenancyId") + private String customerTenancyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer tenancy associated with this usage record. + * + * @param customerTenancyId the value to set + * @return this builder + */ + public Builder customerTenancyId(String customerTenancyId) { + this.customerTenancyId = customerTenancyId; + this.__explicitlySet__.add("customerTenancyId"); + return this; + } + /** The partner billing identifier associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingIdentifier") + private String billingIdentifier; + + /** + * The partner billing identifier associated with this usage record. + * + * @param billingIdentifier the value to set + * @return this builder + */ + public Builder billingIdentifier(String billingIdentifier) { + this.billingIdentifier = billingIdentifier; + this.__explicitlySet__.add("billingIdentifier"); + return this; + } + /** The unit of measure associated with the reported usage quantity. */ + @com.fasterxml.jackson.annotation.JsonProperty("unitOfMeasure") + private String unitOfMeasure; + + /** + * The unit of measure associated with the reported usage quantity. + * + * @param unitOfMeasure the value to set + * @return this builder + */ + public Builder unitOfMeasure(String unitOfMeasure) { + this.unitOfMeasure = unitOfMeasure; + this.__explicitlySet__.add("unitOfMeasure"); + return this; + } + /** The unit price associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("unitPrice") + private Double unitPrice; + + /** + * The unit price associated with this usage record. + * + * @param unitPrice the value to set + * @return this builder + */ + public Builder unitPrice(Double unitPrice) { + this.unitPrice = unitPrice; + this.__explicitlySet__.add("unitPrice"); + return this; + } + /** The product SKU associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("productSku") + private String productSku; + + /** + * The product SKU associated with this usage record. + * + * @param productSku the value to set + * @return this builder + */ + public Builder productSku(String productSku) { + this.productSku = productSku; + this.__explicitlySet__.add("productSku"); + return this; + } + /** The contract duration associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("contractDuration") + private BillingFrequency contractDuration; + + /** + * The contract duration associated with this usage record. + * + * @param contractDuration the value to set + * @return this builder + */ + public Builder contractDuration(BillingFrequency contractDuration) { + this.contractDuration = contractDuration; + this.__explicitlySet__.add("contractDuration"); + return this; + } + /** Additional key/value metadata associated with this usage record for extensibility. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalMetadata") + private java.util.List additionalMetadata; + + /** + * Additional key/value metadata associated with this usage record for extensibility. + * + * @param additionalMetadata the value to set + * @return this builder + */ + public Builder additionalMetadata(java.util.List additionalMetadata) { + this.additionalMetadata = additionalMetadata; + this.__explicitlySet__.add("additionalMetadata"); + return this; + } + /** Partner-provided usage record identifier for traceability. */ + @com.fasterxml.jackson.annotation.JsonProperty("usageRecordId") + private String usageRecordId; + + /** + * Partner-provided usage record identifier for traceability. + * + * @param usageRecordId the value to set + * @return this builder + */ + public Builder usageRecordId(String usageRecordId) { + this.usageRecordId = usageRecordId; + this.__explicitlySet__.add("usageRecordId"); + return this; + } + /** + * The inclusive start timestamp for the usage window. This value must be before {@code + * timeUsageEnded}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUsageStarted") + private java.util.Date timeUsageStarted; + + /** + * The inclusive start timestamp for the usage window. This value must be before {@code + * timeUsageEnded}. + * + * @param timeUsageStarted the value to set + * @return this builder + */ + public Builder timeUsageStarted(java.util.Date timeUsageStarted) { + this.timeUsageStarted = timeUsageStarted; + this.__explicitlySet__.add("timeUsageStarted"); + return this; + } + /** + * The exclusive end timestamp for the usage window. This value must be after {@code + * timeUsageStarted}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUsageEnded") + private java.util.Date timeUsageEnded; + + /** + * The exclusive end timestamp for the usage window. This value must be after {@code + * timeUsageStarted}. + * + * @param timeUsageEnded the value to set + * @return this builder + */ + public Builder timeUsageEnded(java.util.Date timeUsageEnded) { + this.timeUsageEnded = timeUsageEnded; + this.__explicitlySet__.add("timeUsageEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSubscriptionUsageRecordDetails build() { + CreateSubscriptionUsageRecordDetails model = + new CreateSubscriptionUsageRecordDetails( + this.id, + this.marketplaceOfferId, + this.billingType, + this.usageDimensionName, + this.consumedQuantity, + this.amount, + this.currencyCode, + this.billingPeriod, + this.customerTenancyId, + this.billingIdentifier, + this.unitOfMeasure, + this.unitPrice, + this.productSku, + this.contractDuration, + this.additionalMetadata, + this.usageRecordId, + this.timeUsageStarted, + this.timeUsageEnded); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSubscriptionUsageRecordDetails model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("marketplaceOfferId")) { + this.marketplaceOfferId(model.getMarketplaceOfferId()); + } + if (model.wasPropertyExplicitlySet("billingType")) { + this.billingType(model.getBillingType()); + } + if (model.wasPropertyExplicitlySet("usageDimensionName")) { + this.usageDimensionName(model.getUsageDimensionName()); + } + if (model.wasPropertyExplicitlySet("consumedQuantity")) { + this.consumedQuantity(model.getConsumedQuantity()); + } + if (model.wasPropertyExplicitlySet("amount")) { + this.amount(model.getAmount()); + } + if (model.wasPropertyExplicitlySet("currencyCode")) { + this.currencyCode(model.getCurrencyCode()); + } + if (model.wasPropertyExplicitlySet("billingPeriod")) { + this.billingPeriod(model.getBillingPeriod()); + } + if (model.wasPropertyExplicitlySet("customerTenancyId")) { + this.customerTenancyId(model.getCustomerTenancyId()); + } + if (model.wasPropertyExplicitlySet("billingIdentifier")) { + this.billingIdentifier(model.getBillingIdentifier()); + } + if (model.wasPropertyExplicitlySet("unitOfMeasure")) { + this.unitOfMeasure(model.getUnitOfMeasure()); + } + if (model.wasPropertyExplicitlySet("unitPrice")) { + this.unitPrice(model.getUnitPrice()); + } + if (model.wasPropertyExplicitlySet("productSku")) { + this.productSku(model.getProductSku()); + } + if (model.wasPropertyExplicitlySet("contractDuration")) { + this.contractDuration(model.getContractDuration()); + } + if (model.wasPropertyExplicitlySet("additionalMetadata")) { + this.additionalMetadata(model.getAdditionalMetadata()); + } + if (model.wasPropertyExplicitlySet("usageRecordId")) { + this.usageRecordId(model.getUsageRecordId()); + } + if (model.wasPropertyExplicitlySet("timeUsageStarted")) { + this.timeUsageStarted(model.getTimeUsageStarted()); + } + if (model.wasPropertyExplicitlySet("timeUsageEnded")) { + this.timeUsageEnded(model.getTimeUsageEnded()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Partner-provided unique identifier for this usage record. This identifier must be unique per + * partner. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Partner-provided unique identifier for this usage record. This identifier must be unique per + * partner. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * marketplace offer being billed. A submit request can contain records for multiple marketplace + * offers. + */ + @com.fasterxml.jackson.annotation.JsonProperty("marketplaceOfferId") + private final String marketplaceOfferId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * marketplace offer being billed. A submit request can contain records for multiple marketplace + * offers. + * + * @return the value + */ + public String getMarketplaceOfferId() { + return marketplaceOfferId; + } + + /** The billing type this usage record applies to. */ + public enum BillingType implements com.oracle.bmc.http.internal.BmcEnum { + FlatRate("FLAT_RATE"), + UsageBased("USAGE_BASED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BillingType v : BillingType.values()) { + map.put(v.getValue(), v); + } + } + + BillingType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BillingType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid BillingType: " + key); + } + }; + /** The billing type this usage record applies to. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingType") + private final BillingType billingType; + + /** + * The billing type this usage record applies to. + * + * @return the value + */ + public BillingType getBillingType() { + return billingType; + } + + /** The pricing dimension against which usage is being reported. */ + @com.fasterxml.jackson.annotation.JsonProperty("usageDimensionName") + private final String usageDimensionName; + + /** + * The pricing dimension against which usage is being reported. + * + * @return the value + */ + public String getUsageDimensionName() { + return usageDimensionName; + } + + /** An optional non-negative usage quantity being reported. */ + @com.fasterxml.jackson.annotation.JsonProperty("consumedQuantity") + private final Double consumedQuantity; + + /** + * An optional non-negative usage quantity being reported. + * + * @return the value + */ + public Double getConsumedQuantity() { + return consumedQuantity; + } + + /** The non-negative usage cost computed by the partner for the submitted usage quantity. */ + @com.fasterxml.jackson.annotation.JsonProperty("amount") + private final Double amount; + + /** + * The non-negative usage cost computed by the partner for the submitted usage quantity. + * + * @return the value + */ + public Double getAmount() { + return amount; + } + + /** The ISO-4217 currency submitted for the computed usage cost. */ + @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") + private final String currencyCode; + + /** + * The ISO-4217 currency submitted for the computed usage cost. + * + * @return the value + */ + public String getCurrencyCode() { + return currencyCode; + } + + /** The billing period associated with this usage record in {@code YYYY-MM} format. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingPeriod") + private final String billingPeriod; + + /** + * The billing period associated with this usage record in {@code YYYY-MM} format. + * + * @return the value + */ + public String getBillingPeriod() { + return billingPeriod; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer tenancy associated with this usage record. + */ + @com.fasterxml.jackson.annotation.JsonProperty("customerTenancyId") + private final String customerTenancyId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * customer tenancy associated with this usage record. + * + * @return the value + */ + public String getCustomerTenancyId() { + return customerTenancyId; + } + + /** The partner billing identifier associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("billingIdentifier") + private final String billingIdentifier; + + /** + * The partner billing identifier associated with this usage record. + * + * @return the value + */ + public String getBillingIdentifier() { + return billingIdentifier; + } + + /** The unit of measure associated with the reported usage quantity. */ + @com.fasterxml.jackson.annotation.JsonProperty("unitOfMeasure") + private final String unitOfMeasure; + + /** + * The unit of measure associated with the reported usage quantity. + * + * @return the value + */ + public String getUnitOfMeasure() { + return unitOfMeasure; + } + + /** The unit price associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("unitPrice") + private final Double unitPrice; + + /** + * The unit price associated with this usage record. + * + * @return the value + */ + public Double getUnitPrice() { + return unitPrice; + } + + /** The product SKU associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("productSku") + private final String productSku; + + /** + * The product SKU associated with this usage record. + * + * @return the value + */ + public String getProductSku() { + return productSku; + } + + /** The contract duration associated with this usage record. */ + @com.fasterxml.jackson.annotation.JsonProperty("contractDuration") + private final BillingFrequency contractDuration; + + /** + * The contract duration associated with this usage record. + * + * @return the value + */ + public BillingFrequency getContractDuration() { + return contractDuration; + } + + /** Additional key/value metadata associated with this usage record for extensibility. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalMetadata") + private final java.util.List additionalMetadata; + + /** + * Additional key/value metadata associated with this usage record for extensibility. + * + * @return the value + */ + public java.util.List getAdditionalMetadata() { + return additionalMetadata; + } + + /** Partner-provided usage record identifier for traceability. */ + @com.fasterxml.jackson.annotation.JsonProperty("usageRecordId") + private final String usageRecordId; + + /** + * Partner-provided usage record identifier for traceability. + * + * @return the value + */ + public String getUsageRecordId() { + return usageRecordId; + } + + /** + * The inclusive start timestamp for the usage window. This value must be before {@code + * timeUsageEnded}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUsageStarted") + private final java.util.Date timeUsageStarted; + + /** + * The inclusive start timestamp for the usage window. This value must be before {@code + * timeUsageEnded}. + * + * @return the value + */ + public java.util.Date getTimeUsageStarted() { + return timeUsageStarted; + } + + /** + * The exclusive end timestamp for the usage window. This value must be after {@code + * timeUsageStarted}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUsageEnded") + private final java.util.Date timeUsageEnded; + + /** + * The exclusive end timestamp for the usage window. This value must be after {@code + * timeUsageStarted}. + * + * @return the value + */ + public java.util.Date getTimeUsageEnded() { + return timeUsageEnded; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSubscriptionUsageRecordDetails("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", marketplaceOfferId=").append(String.valueOf(this.marketplaceOfferId)); + sb.append(", billingType=").append(String.valueOf(this.billingType)); + sb.append(", usageDimensionName=").append(String.valueOf(this.usageDimensionName)); + sb.append(", consumedQuantity=").append(String.valueOf(this.consumedQuantity)); + sb.append(", amount=").append(String.valueOf(this.amount)); + sb.append(", currencyCode=").append(String.valueOf(this.currencyCode)); + sb.append(", billingPeriod=").append(String.valueOf(this.billingPeriod)); + sb.append(", customerTenancyId=").append(String.valueOf(this.customerTenancyId)); + sb.append(", billingIdentifier=").append(String.valueOf(this.billingIdentifier)); + sb.append(", unitOfMeasure=").append(String.valueOf(this.unitOfMeasure)); + sb.append(", unitPrice=").append(String.valueOf(this.unitPrice)); + sb.append(", productSku=").append(String.valueOf(this.productSku)); + sb.append(", contractDuration=").append(String.valueOf(this.contractDuration)); + sb.append(", additionalMetadata=").append(String.valueOf(this.additionalMetadata)); + sb.append(", usageRecordId=").append(String.valueOf(this.usageRecordId)); + sb.append(", timeUsageStarted=").append(String.valueOf(this.timeUsageStarted)); + sb.append(", timeUsageEnded=").append(String.valueOf(this.timeUsageEnded)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSubscriptionUsageRecordDetails)) { + return false; + } + + CreateSubscriptionUsageRecordDetails other = (CreateSubscriptionUsageRecordDetails) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.marketplaceOfferId, other.marketplaceOfferId) + && java.util.Objects.equals(this.billingType, other.billingType) + && java.util.Objects.equals(this.usageDimensionName, other.usageDimensionName) + && java.util.Objects.equals(this.consumedQuantity, other.consumedQuantity) + && java.util.Objects.equals(this.amount, other.amount) + && java.util.Objects.equals(this.currencyCode, other.currencyCode) + && java.util.Objects.equals(this.billingPeriod, other.billingPeriod) + && java.util.Objects.equals(this.customerTenancyId, other.customerTenancyId) + && java.util.Objects.equals(this.billingIdentifier, other.billingIdentifier) + && java.util.Objects.equals(this.unitOfMeasure, other.unitOfMeasure) + && java.util.Objects.equals(this.unitPrice, other.unitPrice) + && java.util.Objects.equals(this.productSku, other.productSku) + && java.util.Objects.equals(this.contractDuration, other.contractDuration) + && java.util.Objects.equals(this.additionalMetadata, other.additionalMetadata) + && java.util.Objects.equals(this.usageRecordId, other.usageRecordId) + && java.util.Objects.equals(this.timeUsageStarted, other.timeUsageStarted) + && java.util.Objects.equals(this.timeUsageEnded, other.timeUsageEnded) + && 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.marketplaceOfferId == null + ? 43 + : this.marketplaceOfferId.hashCode()); + result = (result * PRIME) + (this.billingType == null ? 43 : this.billingType.hashCode()); + result = + (result * PRIME) + + (this.usageDimensionName == null + ? 43 + : this.usageDimensionName.hashCode()); + result = + (result * PRIME) + + (this.consumedQuantity == null ? 43 : this.consumedQuantity.hashCode()); + result = (result * PRIME) + (this.amount == null ? 43 : this.amount.hashCode()); + result = (result * PRIME) + (this.currencyCode == null ? 43 : this.currencyCode.hashCode()); + result = + (result * PRIME) + + (this.billingPeriod == null ? 43 : this.billingPeriod.hashCode()); + result = + (result * PRIME) + + (this.customerTenancyId == null ? 43 : this.customerTenancyId.hashCode()); + result = + (result * PRIME) + + (this.billingIdentifier == null ? 43 : this.billingIdentifier.hashCode()); + result = + (result * PRIME) + + (this.unitOfMeasure == null ? 43 : this.unitOfMeasure.hashCode()); + result = (result * PRIME) + (this.unitPrice == null ? 43 : this.unitPrice.hashCode()); + result = (result * PRIME) + (this.productSku == null ? 43 : this.productSku.hashCode()); + result = + (result * PRIME) + + (this.contractDuration == null ? 43 : this.contractDuration.hashCode()); + result = + (result * PRIME) + + (this.additionalMetadata == null + ? 43 + : this.additionalMetadata.hashCode()); + result = + (result * PRIME) + + (this.usageRecordId == null ? 43 : this.usageRecordId.hashCode()); + result = + (result * PRIME) + + (this.timeUsageStarted == null ? 43 : this.timeUsageStarted.hashCode()); + result = + (result * PRIME) + + (this.timeUsageEnded == null ? 43 : this.timeUsageEnded.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/LifecycleDetailsEnum.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/LifecycleDetailsEnum.java index 385d5434fdc..b7a9b4d64d0 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/LifecycleDetailsEnum.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/LifecycleDetailsEnum.java @@ -22,6 +22,9 @@ public enum LifecycleDetailsEnum implements com.oracle.bmc.http.internal.BmcEnum Deleting("DELETING"), Updating("UPDATING"), Deleted("DELETED"), + PendingCancellation("PENDING_CANCELLATION"), + Suspended("SUSPENDED"), + Canceled("CANCELED"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/MetricType.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/MetricType.java index 091247e5e20..5864787514d 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/MetricType.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/MetricType.java @@ -4,12 +4,13 @@ */ package com.oracle.bmc.self.model; -/** Possible values for a metric types. */ +/** Possible values for metric types. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") public enum MetricType implements com.oracle.bmc.http.internal.BmcEnum { OcpuHours("OCPU_HOURS"), InstanceHours("INSTANCE_HOURS"), CoreHours("CORE_HOURS"), + Each("EACH"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/OperationType.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/OperationType.java index ab145ff049b..71ad6b1ceec 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/OperationType.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/OperationType.java @@ -11,6 +11,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateSubscription("UPDATE_SUBSCRIPTION"), DeleteSubscription("DELETE_SUBSCRIPTION"), MoveSubscription("MOVE_SUBSCRIPTION"), + SubmitSubscriptionUsageBatch("SUBMIT_SUBSCRIPTION_USAGE_BATCH"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/Partner.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/Partner.java new file mode 100644 index 00000000000..d411353c473 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/Partner.java @@ -0,0 +1,468 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** + * Marketplace publisher partner details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Partner.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Partner extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public Partner( + String id, + String compartmentId, + String displayName, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique identifier of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier of the marketplace publisher partner. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique identifier of the compartment of partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier of the compartment of partner. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of marketplace publisher partner. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The current lifecycle state of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state of the marketplace publisher partner. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Partner build() { + Partner model = + new Partner( + this.id, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Partner model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique identifier of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier of the marketplace publisher partner. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique identifier of the compartment of partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier of the compartment of partner. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of marketplace publisher partner. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current lifecycle state of the marketplace publisher partner. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current lifecycle state of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state of the marketplace publisher partner. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Partner("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Partner)) { + return false; + } + + Partner other = (Partner) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/PartnerCollection.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/PartnerCollection.java new file mode 100644 index 00000000000..86d95068bce --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/PartnerCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** + * Results of listing marketplace publisher partners.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PartnerCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PartnerCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PartnerCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The list of marketplace publisher partners. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of marketplace publisher partners. + * + * @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 PartnerCollection build() { + PartnerCollection model = new PartnerCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PartnerCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The list of marketplace publisher partners. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of marketplace publisher partners. + * + * @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("PartnerCollection("); + 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 PartnerCollection)) { + return false; + } + + PartnerCollection other = (PartnerCollection) 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-self/src/main/java/com/oracle/bmc/self/model/PartnerSummary.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/PartnerSummary.java new file mode 100644 index 00000000000..3155b82e0ea --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/PartnerSummary.java @@ -0,0 +1,423 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** + * Summary of a marketplace publisher partner.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PartnerSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PartnerSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public PartnerSummary( + String id, + String compartmentId, + String displayName, + Partner.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique identifier of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique identifier of the marketplace publisher partner. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The unique identifier of the compartment of partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The unique identifier of the compartment of partner. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of marketplace publisher partner. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The current lifecycle state of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Partner.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the marketplace publisher partner. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Partner.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PartnerSummary build() { + PartnerSummary model = + new PartnerSummary( + this.id, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PartnerSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique identifier of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique identifier of the marketplace publisher partner. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The unique identifier of the compartment of partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The unique identifier of the compartment of partner. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of marketplace publisher partner. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current lifecycle state of the marketplace publisher partner. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Partner.LifecycleState lifecycleState; + + /** + * The current lifecycle state of the marketplace publisher partner. + * + * @return the value + */ + public Partner.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

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

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

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

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

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

Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PartnerSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PartnerSummary)) { + return false; + } + + PartnerSummary other = (PartnerSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/PricingPlan.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/PricingPlan.java index c7a1708ff24..64d55692768 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/PricingPlan.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/PricingPlan.java @@ -27,7 +27,8 @@ public final class PricingPlan extends com.oracle.bmc.http.client.internal.Expli "planDescription", "billingFrequency", "planDuration", - "rates" + "rates", + "dimensions" }) public PricingPlan( PlanType planType, @@ -35,7 +36,8 @@ public PricingPlan( String planDescription, BillingFrequency billingFrequency, PlanDuration planDuration, - java.util.List rates) { + java.util.List rates, + java.util.List dimensions) { super(); this.planType = planType; this.planName = planName; @@ -43,6 +45,7 @@ public PricingPlan( this.billingFrequency = billingFrequency; this.planDuration = planDuration; this.rates = rates; + this.dimensions = dimensions; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -92,12 +95,16 @@ public Builder planDescription(String planDescription) { this.__explicitlySet__.add("planDescription"); return this; } - /** Specifies the interval at which billing occurs for the subscription plan. */ + /** + * Specifies the interval at which billing occurs for the subscription plan or usage + * dimension. + */ @com.fasterxml.jackson.annotation.JsonProperty("billingFrequency") private BillingFrequency billingFrequency; /** - * Specifies the interval at which billing occurs for the subscription plan. + * Specifies the interval at which billing occurs for the subscription plan or usage + * dimension. * * @param billingFrequency the value to set * @return this builder @@ -107,12 +114,12 @@ public Builder billingFrequency(BillingFrequency billingFrequency) { this.__explicitlySet__.add("billingFrequency"); return this; } - /** Specifies the interval at which billing occurs for the subscription plan. */ + /** Specifies the duration of the subscription plan. */ @com.fasterxml.jackson.annotation.JsonProperty("planDuration") private PlanDuration planDuration; /** - * Specifies the interval at which billing occurs for the subscription plan. + * Specifies the duration of the subscription plan. * * @param planDuration the value to set * @return this builder @@ -137,6 +144,21 @@ public Builder rates(java.util.List rates) { this.__explicitlySet__.add("rates"); return this; } + /** Metered usage dimensions associated with the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private java.util.List dimensions; + + /** + * Metered usage dimensions associated with the pricing plan. + * + * @param dimensions the value to set + * @return this builder + */ + public Builder dimensions(java.util.List dimensions) { + this.dimensions = dimensions; + this.__explicitlySet__.add("dimensions"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -149,7 +171,8 @@ public PricingPlan build() { this.planDescription, this.billingFrequency, this.planDuration, - this.rates); + this.rates, + this.dimensions); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -176,6 +199,9 @@ public Builder copy(PricingPlan model) { if (model.wasPropertyExplicitlySet("rates")) { this.rates(model.getRates()); } + if (model.wasPropertyExplicitlySet("dimensions")) { + this.dimensions(model.getDimensions()); + } return this; } } @@ -192,6 +218,8 @@ public Builder toBuilder() { /** The type of the subscription plan. */ public enum PlanType implements com.oracle.bmc.http.internal.BmcEnum { Fixed("FIXED"), + UsageBased("USAGE_BASED"), + Hybrid("HYBRID"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -273,57 +301,14 @@ public String getPlanDescription() { return planDescription; } - /** Specifies the interval at which billing occurs for the subscription plan. */ - public enum BillingFrequency implements com.oracle.bmc.http.internal.BmcEnum { - Yearly("YEARLY"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by - * this version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(BillingFrequency.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (BillingFrequency v : BillingFrequency.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - BillingFrequency(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static BillingFrequency create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'BillingFrequency', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** Specifies the interval at which billing occurs for the subscription plan. */ + /** + * Specifies the interval at which billing occurs for the subscription plan or usage dimension. + */ @com.fasterxml.jackson.annotation.JsonProperty("billingFrequency") private final BillingFrequency billingFrequency; /** - * Specifies the interval at which billing occurs for the subscription plan. + * Specifies the interval at which billing occurs for the subscription plan or usage dimension. * * @return the value */ @@ -331,9 +316,14 @@ public BillingFrequency getBillingFrequency() { return billingFrequency; } - /** Specifies the interval at which billing occurs for the subscription plan. */ + /** Specifies the duration of the subscription plan. */ public enum PlanDuration implements com.oracle.bmc.http.internal.BmcEnum { + Monthly("MONTHLY"), + Quarterly("QUARTERLY"), + SemiAnnual("SEMI_ANNUAL"), Annual("ANNUAL"), + Biennial("BIENNIAL"), + Triennial("TRIENNIAL"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -376,12 +366,12 @@ public static PlanDuration create(String key) { return UnknownEnumValue; } }; - /** Specifies the interval at which billing occurs for the subscription plan. */ + /** Specifies the duration of the subscription plan. */ @com.fasterxml.jackson.annotation.JsonProperty("planDuration") private final PlanDuration planDuration; /** - * Specifies the interval at which billing occurs for the subscription plan. + * Specifies the duration of the subscription plan. * * @return the value */ @@ -402,6 +392,19 @@ public java.util.List getRates() { return rates; } + /** Metered usage dimensions associated with the pricing plan. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensions") + private final java.util.List dimensions; + + /** + * Metered usage dimensions associated with the pricing plan. + * + * @return the value + */ + public java.util.List getDimensions() { + return dimensions; + } + @Override public String toString() { return this.toString(true); @@ -423,6 +426,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", billingFrequency=").append(String.valueOf(this.billingFrequency)); sb.append(", planDuration=").append(String.valueOf(this.planDuration)); sb.append(", rates=").append(String.valueOf(this.rates)); + sb.append(", dimensions=").append(String.valueOf(this.dimensions)); sb.append(")"); return sb.toString(); } @@ -443,6 +447,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.billingFrequency, other.billingFrequency) && java.util.Objects.equals(this.planDuration, other.planDuration) && java.util.Objects.equals(this.rates, other.rates) + && java.util.Objects.equals(this.dimensions, other.dimensions) && super.equals(other); } @@ -460,6 +465,7 @@ public int hashCode() { + (this.billingFrequency == null ? 43 : this.billingFrequency.hashCode()); result = (result * PRIME) + (this.planDuration == null ? 43 : this.planDuration.hashCode()); result = (result * PRIME) + (this.rates == null ? 43 : this.rates.hashCode()); + result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java new file mode 100644 index 00000000000..8d63380010c --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** + * Request payload to submit one or more usage records for marketplace 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: 20260129") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SubmitSubscriptionUsageRecordsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SubmitSubscriptionUsageRecordsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"subscriptionUsageRecords"}) + public SubmitSubscriptionUsageRecordsDetails( + java.util.List subscriptionUsageRecords) { + super(); + this.subscriptionUsageRecords = subscriptionUsageRecords; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The usage records to submit. The array must contain at least one record and no more than + * 100 records. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionUsageRecords") + private java.util.List subscriptionUsageRecords; + + /** + * The usage records to submit. The array must contain at least one record and no more than + * 100 records. + * + * @param subscriptionUsageRecords the value to set + * @return this builder + */ + public Builder subscriptionUsageRecords( + java.util.List subscriptionUsageRecords) { + this.subscriptionUsageRecords = subscriptionUsageRecords; + this.__explicitlySet__.add("subscriptionUsageRecords"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SubmitSubscriptionUsageRecordsDetails build() { + SubmitSubscriptionUsageRecordsDetails model = + new SubmitSubscriptionUsageRecordsDetails(this.subscriptionUsageRecords); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SubmitSubscriptionUsageRecordsDetails model) { + if (model.wasPropertyExplicitlySet("subscriptionUsageRecords")) { + this.subscriptionUsageRecords(model.getSubscriptionUsageRecords()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The usage records to submit. The array must contain at least one record and no more than 100 + * records. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subscriptionUsageRecords") + private final java.util.List subscriptionUsageRecords; + + /** + * The usage records to submit. The array must contain at least one record and no more than 100 + * records. + * + * @return the value + */ + public java.util.List getSubscriptionUsageRecords() { + return subscriptionUsageRecords; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SubmitSubscriptionUsageRecordsDetails("); + sb.append("super=").append(super.toString()); + sb.append("subscriptionUsageRecords=") + .append(String.valueOf(this.subscriptionUsageRecords)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubmitSubscriptionUsageRecordsDetails)) { + return false; + } + + SubmitSubscriptionUsageRecordsDetails other = (SubmitSubscriptionUsageRecordsDetails) o; + return java.util.Objects.equals( + this.subscriptionUsageRecords, other.subscriptionUsageRecords) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.subscriptionUsageRecords == null + ? 43 + : this.subscriptionUsageRecords.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/SubscriptionDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubscriptionDetails.java index 7533b48266a..6404a353e8a 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/SubscriptionDetails.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubscriptionDetails.java @@ -36,7 +36,7 @@ public SubscriptionDetails( String partnerRegistrationUrl, String currency, Float amount, - BillingDetails billingDetails, + java.util.List billingDetails, Boolean isAutoRenew) { super(); this.pricingPlan = pricingPlan; @@ -103,11 +103,17 @@ public Builder amount(Float amount) { this.__explicitlySet__.add("amount"); return this; } - + /** Billing details associated with the subscription plan and its usage dimensions. */ @com.fasterxml.jackson.annotation.JsonProperty("billingDetails") - private BillingDetails billingDetails; + private java.util.List billingDetails; - public Builder billingDetails(BillingDetails billingDetails) { + /** + * Billing details associated with the subscription plan and its usage dimensions. + * + * @param billingDetails the value to set + * @return this builder + */ + public Builder billingDetails(java.util.List billingDetails) { this.billingDetails = billingDetails; this.__explicitlySet__.add("billingDetails"); return this; @@ -225,10 +231,16 @@ public Float getAmount() { return amount; } + /** Billing details associated with the subscription plan and its usage dimensions. */ @com.fasterxml.jackson.annotation.JsonProperty("billingDetails") - private final BillingDetails billingDetails; + private final java.util.List billingDetails; - public BillingDetails getBillingDetails() { + /** + * Billing details associated with the subscription plan and its usage dimensions. + * + * @return the value + */ + public java.util.List getBillingDetails() { return billingDetails; } diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/UsageDimension.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/UsageDimension.java new file mode 100644 index 00000000000..cd6997471f5 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/UsageDimension.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.model; + +/** + * A metered usage dimension associated with a usage-based or hybrid pricing plan.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UsageDimension.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UsageDimension + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "dimensionName", + "dimensionKey", + "dimensionDescription", + "metricType", + "dimensionBillingFrequency", + "includedQuantity", + "rates" + }) + public UsageDimension( + String dimensionName, + String dimensionKey, + String dimensionDescription, + MetricType metricType, + BillingFrequency dimensionBillingFrequency, + Float includedQuantity, + java.util.List rates) { + super(); + this.dimensionName = dimensionName; + this.dimensionKey = dimensionKey; + this.dimensionDescription = dimensionDescription; + this.metricType = metricType; + this.dimensionBillingFrequency = dimensionBillingFrequency; + this.includedQuantity = includedQuantity; + this.rates = rates; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the usage dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionName") + private String dimensionName; + + /** + * The name of the usage dimension. + * + * @param dimensionName the value to set + * @return this builder + */ + public Builder dimensionName(String dimensionName) { + this.dimensionName = dimensionName; + this.__explicitlySet__.add("dimensionName"); + return this; + } + /** The stable key used internally to map this usage dimension to billing details. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionKey") + private String dimensionKey; + + /** + * The stable key used internally to map this usage dimension to billing details. + * + * @param dimensionKey the value to set + * @return this builder + */ + public Builder dimensionKey(String dimensionKey) { + this.dimensionKey = dimensionKey; + this.__explicitlySet__.add("dimensionKey"); + return this; + } + /** A detailed explanation of the usage dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionDescription") + private String dimensionDescription; + + /** + * A detailed explanation of the usage dimension. + * + * @param dimensionDescription the value to set + * @return this builder + */ + public Builder dimensionDescription(String dimensionDescription) { + this.dimensionDescription = dimensionDescription; + this.__explicitlySet__.add("dimensionDescription"); + return this; + } + /** The metric type in which usage is measured. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private MetricType metricType; + + /** + * The metric type in which usage is measured. + * + * @param metricType the value to set + * @return this builder + */ + public Builder metricType(MetricType metricType) { + this.metricType = metricType; + this.__explicitlySet__.add("metricType"); + return this; + } + /** Specifies the interval at which the usage dimension is billed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionBillingFrequency") + private BillingFrequency dimensionBillingFrequency; + + /** + * Specifies the interval at which the usage dimension is billed. + * + * @param dimensionBillingFrequency the value to set + * @return this builder + */ + public Builder dimensionBillingFrequency(BillingFrequency dimensionBillingFrequency) { + this.dimensionBillingFrequency = dimensionBillingFrequency; + this.__explicitlySet__.add("dimensionBillingFrequency"); + return this; + } + /** Quantity included in the base fee for hybrid plans. */ + @com.fasterxml.jackson.annotation.JsonProperty("includedQuantity") + private Float includedQuantity; + + /** + * Quantity included in the base fee for hybrid plans. + * + * @param includedQuantity the value to set + * @return this builder + */ + public Builder includedQuantity(Float includedQuantity) { + this.includedQuantity = includedQuantity; + this.__explicitlySet__.add("includedQuantity"); + return this; + } + /** Dimension-level rates in various supported currencies. */ + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private java.util.List rates; + + /** + * Dimension-level rates in various supported currencies. + * + * @param rates the value to set + * @return this builder + */ + public Builder rates(java.util.List rates) { + this.rates = rates; + this.__explicitlySet__.add("rates"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UsageDimension build() { + UsageDimension model = + new UsageDimension( + this.dimensionName, + this.dimensionKey, + this.dimensionDescription, + this.metricType, + this.dimensionBillingFrequency, + this.includedQuantity, + this.rates); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UsageDimension model) { + if (model.wasPropertyExplicitlySet("dimensionName")) { + this.dimensionName(model.getDimensionName()); + } + if (model.wasPropertyExplicitlySet("dimensionKey")) { + this.dimensionKey(model.getDimensionKey()); + } + if (model.wasPropertyExplicitlySet("dimensionDescription")) { + this.dimensionDescription(model.getDimensionDescription()); + } + if (model.wasPropertyExplicitlySet("metricType")) { + this.metricType(model.getMetricType()); + } + if (model.wasPropertyExplicitlySet("dimensionBillingFrequency")) { + this.dimensionBillingFrequency(model.getDimensionBillingFrequency()); + } + if (model.wasPropertyExplicitlySet("includedQuantity")) { + this.includedQuantity(model.getIncludedQuantity()); + } + if (model.wasPropertyExplicitlySet("rates")) { + this.rates(model.getRates()); + } + 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 usage dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionName") + private final String dimensionName; + + /** + * The name of the usage dimension. + * + * @return the value + */ + public String getDimensionName() { + return dimensionName; + } + + /** The stable key used internally to map this usage dimension to billing details. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionKey") + private final String dimensionKey; + + /** + * The stable key used internally to map this usage dimension to billing details. + * + * @return the value + */ + public String getDimensionKey() { + return dimensionKey; + } + + /** A detailed explanation of the usage dimension. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionDescription") + private final String dimensionDescription; + + /** + * A detailed explanation of the usage dimension. + * + * @return the value + */ + public String getDimensionDescription() { + return dimensionDescription; + } + + /** The metric type in which usage is measured. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricType") + private final MetricType metricType; + + /** + * The metric type in which usage is measured. + * + * @return the value + */ + public MetricType getMetricType() { + return metricType; + } + + /** Specifies the interval at which the usage dimension is billed. */ + @com.fasterxml.jackson.annotation.JsonProperty("dimensionBillingFrequency") + private final BillingFrequency dimensionBillingFrequency; + + /** + * Specifies the interval at which the usage dimension is billed. + * + * @return the value + */ + public BillingFrequency getDimensionBillingFrequency() { + return dimensionBillingFrequency; + } + + /** Quantity included in the base fee for hybrid plans. */ + @com.fasterxml.jackson.annotation.JsonProperty("includedQuantity") + private final Float includedQuantity; + + /** + * Quantity included in the base fee for hybrid plans. + * + * @return the value + */ + public Float getIncludedQuantity() { + return includedQuantity; + } + + /** Dimension-level rates in various supported currencies. */ + @com.fasterxml.jackson.annotation.JsonProperty("rates") + private final java.util.List rates; + + /** + * Dimension-level rates in various supported currencies. + * + * @return the value + */ + public java.util.List getRates() { + return rates; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UsageDimension("); + sb.append("super=").append(super.toString()); + sb.append("dimensionName=").append(String.valueOf(this.dimensionName)); + sb.append(", dimensionKey=").append(String.valueOf(this.dimensionKey)); + sb.append(", dimensionDescription=").append(String.valueOf(this.dimensionDescription)); + sb.append(", metricType=").append(String.valueOf(this.metricType)); + sb.append(", dimensionBillingFrequency=") + .append(String.valueOf(this.dimensionBillingFrequency)); + sb.append(", includedQuantity=").append(String.valueOf(this.includedQuantity)); + sb.append(", rates=").append(String.valueOf(this.rates)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UsageDimension)) { + return false; + } + + UsageDimension other = (UsageDimension) o; + return java.util.Objects.equals(this.dimensionName, other.dimensionName) + && java.util.Objects.equals(this.dimensionKey, other.dimensionKey) + && java.util.Objects.equals(this.dimensionDescription, other.dimensionDescription) + && java.util.Objects.equals(this.metricType, other.metricType) + && java.util.Objects.equals( + this.dimensionBillingFrequency, other.dimensionBillingFrequency) + && java.util.Objects.equals(this.includedQuantity, other.includedQuantity) + && java.util.Objects.equals(this.rates, other.rates) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.dimensionName == null ? 43 : this.dimensionName.hashCode()); + result = (result * PRIME) + (this.dimensionKey == null ? 43 : this.dimensionKey.hashCode()); + result = + (result * PRIME) + + (this.dimensionDescription == null + ? 43 + : this.dimensionDescription.hashCode()); + result = (result * PRIME) + (this.metricType == null ? 43 : this.metricType.hashCode()); + result = + (result * PRIME) + + (this.dimensionBillingFrequency == null + ? 43 + : this.dimensionBillingFrequency.hashCode()); + result = + (result * PRIME) + + (this.includedQuantity == null ? 43 : this.includedQuantity.hashCode()); + result = (result * PRIME) + (this.rates == null ? 43 : this.rates.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/CancelSubscriptionRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/CancelSubscriptionRequest.java new file mode 100644 index 00000000000..07261f29a26 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/CancelSubscriptionRequest.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use CancelSubscriptionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class CancelSubscriptionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.self.model.CancelSubscriptionDetails> { + + /** The unique identifier for the subscription. */ + private String subscriptionId; + + /** The unique identifier for the subscription. */ + public String getSubscriptionId() { + return subscriptionId; + } + /** Details for the cancellation request. */ + private com.oracle.bmc.self.model.CancelSubscriptionDetails cancelSubscriptionDetails; + + /** Details for the cancellation request. */ + public com.oracle.bmc.self.model.CancelSubscriptionDetails getCancelSubscriptionDetails() { + return cancelSubscriptionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.self.model.CancelSubscriptionDetails getBody$() { + return cancelSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelSubscriptionRequest, + com.oracle.bmc.self.model.CancelSubscriptionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The unique identifier for the subscription. */ + private String subscriptionId = null; + + /** + * The unique identifier for the subscription. + * + * @param subscriptionId the value to set + * @return this builder instance + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** Details for the cancellation request. */ + private com.oracle.bmc.self.model.CancelSubscriptionDetails cancelSubscriptionDetails = + null; + + /** + * Details for the cancellation request. + * + * @param cancelSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder cancelSubscriptionDetails( + com.oracle.bmc.self.model.CancelSubscriptionDetails cancelSubscriptionDetails) { + this.cancelSubscriptionDetails = cancelSubscriptionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request 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(CancelSubscriptionRequest o) { + subscriptionId(o.getSubscriptionId()); + cancelSubscriptionDetails(o.getCancelSubscriptionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelSubscriptionRequest 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 CancelSubscriptionRequest + */ + public CancelSubscriptionRequest build() { + CancelSubscriptionRequest 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.self.model.CancelSubscriptionDetails body) { + cancelSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of CancelSubscriptionRequest 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 CancelSubscriptionRequest + */ + public CancelSubscriptionRequest buildWithoutInvocationCallback() { + CancelSubscriptionRequest request = new CancelSubscriptionRequest(); + request.subscriptionId = subscriptionId; + request.cancelSubscriptionDetails = cancelSubscriptionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CancelSubscriptionRequest(subscriptionId, cancelSubscriptionDetails, ifMatch, + // opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .subscriptionId(subscriptionId) + .cancelSubscriptionDetails(cancelSubscriptionDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(",cancelSubscriptionDetails=") + .append(String.valueOf(this.cancelSubscriptionDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelSubscriptionRequest)) { + return false; + } + + CancelSubscriptionRequest other = (CancelSubscriptionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals( + this.cancelSubscriptionDetails, other.cancelSubscriptionDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = + (result * PRIME) + + (this.cancelSubscriptionDetails == null + ? 43 + : this.cancelSubscriptionDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListPartnersRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListPartnersRequest.java new file mode 100644 index 00000000000..7beabedc0ef --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListPartnersRequest.java @@ -0,0 +1,417 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use ListPartnersRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ListPartnersRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources that match the given name. */ + private String displayName; + + /** A filter to return only resources that match the given name. */ + public String getDisplayName() { + return displayName; + } + /** The field to sort by. Only one sort order may be provided. */ + private SortBy sortBy; + + /** The field to sort by. Only one sort order may be provided. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ProductId("productId"), + ; + + 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. */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.self.model.SortOrder sortOrder; + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + public com.oracle.bmc.self.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous "List" + * call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListPartnersRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A filter to return only resources that match the given name. */ + private String displayName = null; + + /** + * A filter to return only resources that match the given name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The field to sort by. Only one sort order may be provided. */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). */ + private com.oracle.bmc.self.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.self.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListPartnersRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListPartnersRequest 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 ListPartnersRequest + */ + public ListPartnersRequest build() { + ListPartnersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPartnersRequest 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 ListPartnersRequest + */ + public ListPartnersRequest buildWithoutInvocationCallback() { + ListPartnersRequest request = new ListPartnersRequest(); + request.compartmentId = compartmentId; + request.displayName = displayName; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListPartnersRequest(compartmentId, displayName, sortBy, sortOrder, limit, page, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .displayName(displayName) + .sortBy(sortBy) + .sortOrder(sortOrder) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPartnersRequest)) { + return false; + } + + ListPartnersRequest other = (ListPartnersRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListSubscriptionsRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListSubscriptionsRequest.java index 62fa20a9e49..5d6b5058145 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListSubscriptionsRequest.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListSubscriptionsRequest.java @@ -103,7 +103,6 @@ public com.oracle.bmc.self.model.SortOrder getSortOrder() { public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { TimeCreated("timeCreated"), DisplayName("displayName"), - SelfTokenId("selfTokenId"), ProductId("productId"), ; diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsRequest.java index 2f02a597b2f..a121f1463df 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsRequest.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsRequest.java @@ -35,7 +35,6 @@ public String getDisplayName() { public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { TimeCreated("timeCreated"), DisplayName("displayName"), - SelfTokenId("selfTokenId"), ProductId("productId"), ; diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java new file mode 100644 index 00000000000..6ab23365a6a --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use + * SubmitSubscriptionUsageBatchRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class SubmitSubscriptionUsageBatchRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. Required + * columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, + * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. Optional + * columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, {@code BillingIdentifier}, + * {@code ProductSku}, {@code UnitOfMeasure}, {@code UnitPrice}, {@code ContractDuration}, and + * {@code AdditionalMetadata}. When provided in CSV, {@code AdditionalMetadata} must be a JSON + * array of {@code ExtendedMetadata} objects. {@code MarketplaceOfferId} must be a subscription + * or private offer OCID. + */ + private java.io.InputStream submitSubscriptionUsageBatchDetails; + + /** + * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. Required + * columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, + * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. Optional + * columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, {@code BillingIdentifier}, + * {@code ProductSku}, {@code UnitOfMeasure}, {@code UnitPrice}, {@code ContractDuration}, and + * {@code AdditionalMetadata}. When provided in CSV, {@code AdditionalMetadata} must be a JSON + * array of {@code ExtendedMetadata} objects. {@code MarketplaceOfferId} must be a subscription + * or private offer OCID. + */ + public java.io.InputStream getSubmitSubscriptionUsageBatchDetails() { + return submitSubscriptionUsageBatchDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return submitSubscriptionUsageBatchDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SubmitSubscriptionUsageBatchRequest, java.io.InputStream> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code + * CurrencyCode}, {@code UsageStartTime}, {@code UsageEndTime}, and {@code + * UsageDimensionName}. Optional columns are {@code ConsumedQuantity}, {@code + * CustomerTenancyId}, {@code BillingIdentifier}, {@code ProductSku}, {@code UnitOfMeasure}, + * {@code UnitPrice}, {@code ContractDuration}, and {@code AdditionalMetadata}. When + * provided in CSV, {@code AdditionalMetadata} must be a JSON array of {@code + * ExtendedMetadata} objects. {@code MarketplaceOfferId} must be a subscription or private + * offer OCID. + */ + private java.io.InputStream submitSubscriptionUsageBatchDetails = null; + + /** + * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code + * CurrencyCode}, {@code UsageStartTime}, {@code UsageEndTime}, and {@code + * UsageDimensionName}. Optional columns are {@code ConsumedQuantity}, {@code + * CustomerTenancyId}, {@code BillingIdentifier}, {@code ProductSku}, {@code UnitOfMeasure}, + * {@code UnitPrice}, {@code ContractDuration}, and {@code AdditionalMetadata}. When + * provided in CSV, {@code AdditionalMetadata} must be a JSON array of {@code + * ExtendedMetadata} objects. {@code MarketplaceOfferId} must be a subscription or private + * offer OCID. + * + * @param submitSubscriptionUsageBatchDetails the value to set + * @return this builder instance + */ + public Builder submitSubscriptionUsageBatchDetails( + java.io.InputStream submitSubscriptionUsageBatchDetails) { + this.submitSubscriptionUsageBatchDetails = submitSubscriptionUsageBatchDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(SubmitSubscriptionUsageBatchRequest o) { + compartmentId(o.getCompartmentId()); + submitSubscriptionUsageBatchDetails(o.getSubmitSubscriptionUsageBatchDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SubmitSubscriptionUsageBatchRequest 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 SubmitSubscriptionUsageBatchRequest + */ + public SubmitSubscriptionUsageBatchRequest build() { + SubmitSubscriptionUsageBatchRequest 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$(java.io.InputStream body) { + submitSubscriptionUsageBatchDetails(body); + return this; + } + + /** + * Build the instance of SubmitSubscriptionUsageBatchRequest 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 SubmitSubscriptionUsageBatchRequest + */ + public SubmitSubscriptionUsageBatchRequest buildWithoutInvocationCallback() { + SubmitSubscriptionUsageBatchRequest request = new SubmitSubscriptionUsageBatchRequest(); + request.compartmentId = compartmentId; + request.submitSubscriptionUsageBatchDetails = submitSubscriptionUsageBatchDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new SubmitSubscriptionUsageBatchRequest(compartmentId, + // submitSubscriptionUsageBatchDetails, 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() + .compartmentId(compartmentId) + .submitSubscriptionUsageBatchDetails(submitSubscriptionUsageBatchDetails) + .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(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",submitSubscriptionUsageBatchDetails=") + .append(String.valueOf(this.submitSubscriptionUsageBatchDetails)); + 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 SubmitSubscriptionUsageBatchRequest)) { + return false; + } + + SubmitSubscriptionUsageBatchRequest other = (SubmitSubscriptionUsageBatchRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.submitSubscriptionUsageBatchDetails, + other.submitSubscriptionUsageBatchDetails) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.submitSubscriptionUsageBatchDetails == null + ? 43 + : this.submitSubscriptionUsageBatchDetails.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-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageRecordsRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageRecordsRequest.java new file mode 100644 index 00000000000..3fc234edf7b --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageRecordsRequest.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use + * SubmitSubscriptionUsageRecordsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class SubmitSubscriptionUsageRecordsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + */ + public String getCompartmentId() { + return compartmentId; + } + /** Usage records to submit for marketplace offers. */ + private com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails + submitSubscriptionUsageRecordsDetails; + + /** Usage records to submit for marketplace offers. */ + public com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails + getSubmitSubscriptionUsageRecordsDetails() { + return submitSubscriptionUsageRecordsDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and removed from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request IDs + * are letters, numbers, underscore, and dash. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails getBody$() { + return submitSubscriptionUsageRecordsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SubmitSubscriptionUsageRecordsRequest, + com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment associated with the usage records request. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** Usage records to submit for marketplace offers. */ + private com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails + submitSubscriptionUsageRecordsDetails = null; + + /** + * Usage records to submit for marketplace offers. + * + * @param submitSubscriptionUsageRecordsDetails the value to set + * @return this builder instance + */ + public Builder submitSubscriptionUsageRecordsDetails( + com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails + submitSubscriptionUsageRecordsDetails) { + this.submitSubscriptionUsageRecordsDetails = submitSubscriptionUsageRecordsDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if + * a resource has been deleted and removed from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. The only valid characters for request + * IDs are letters, numbers, underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(SubmitSubscriptionUsageRecordsRequest o) { + compartmentId(o.getCompartmentId()); + submitSubscriptionUsageRecordsDetails(o.getSubmitSubscriptionUsageRecordsDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SubmitSubscriptionUsageRecordsRequest 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 SubmitSubscriptionUsageRecordsRequest + */ + public SubmitSubscriptionUsageRecordsRequest build() { + SubmitSubscriptionUsageRecordsRequest 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.self.model.SubmitSubscriptionUsageRecordsDetails body) { + submitSubscriptionUsageRecordsDetails(body); + return this; + } + + /** + * Build the instance of SubmitSubscriptionUsageRecordsRequest 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 SubmitSubscriptionUsageRecordsRequest + */ + public SubmitSubscriptionUsageRecordsRequest buildWithoutInvocationCallback() { + SubmitSubscriptionUsageRecordsRequest request = + new SubmitSubscriptionUsageRecordsRequest(); + request.compartmentId = compartmentId; + request.submitSubscriptionUsageRecordsDetails = submitSubscriptionUsageRecordsDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new SubmitSubscriptionUsageRecordsRequest(compartmentId, + // submitSubscriptionUsageRecordsDetails, 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() + .compartmentId(compartmentId) + .submitSubscriptionUsageRecordsDetails(submitSubscriptionUsageRecordsDetails) + .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(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",submitSubscriptionUsageRecordsDetails=") + .append(String.valueOf(this.submitSubscriptionUsageRecordsDetails)); + 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 SubmitSubscriptionUsageRecordsRequest)) { + return false; + } + + SubmitSubscriptionUsageRecordsRequest other = (SubmitSubscriptionUsageRecordsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.submitSubscriptionUsageRecordsDetails, + other.submitSubscriptionUsageRecordsDetails) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.submitSubscriptionUsageRecordsDetails == null + ? 43 + : this.submitSubscriptionUsageRecordsDetails.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-self/src/main/java/com/oracle/bmc/self/responses/CancelSubscriptionResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/CancelSubscriptionResponse.java new file mode 100644 index 00000000000..58b091c8d70 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/CancelSubscriptionResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.responses; + +import com.oracle.bmc.self.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class CancelSubscriptionResponse 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 Subscription} instance. */ + private com.oracle.bmc.self.model.Subscription subscription; + + /** + * The returned {@code Subscription} instance. + * + * @return the value + */ + public com.oracle.bmc.self.model.Subscription getSubscription() { + return subscription; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "subscription" + }) + private CancelSubscriptionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.self.model.Subscription subscription) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.subscription = subscription; + } + + 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 Subscription} instance. */ + private com.oracle.bmc.self.model.Subscription subscription; + + /** + * The returned {@code Subscription} instance. + * + * @param subscription the value to set + * @return this builder + */ + public Builder subscription(com.oracle.bmc.self.model.Subscription subscription) { + this.subscription = subscription; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelSubscriptionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + subscription(o.getSubscription()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelSubscriptionResponse build() { + return new CancelSubscriptionResponse( + __httpStatusCode__, headers, etag, opcRequestId, subscription); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",subscription=").append(String.valueOf(subscription)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelSubscriptionResponse)) { + return false; + } + + CancelSubscriptionResponse other = (CancelSubscriptionResponse) 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.subscription, other.subscription); + } + + @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.subscription == null ? 43 : this.subscription.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListPartnersResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListPartnersResponse.java new file mode 100644 index 00000000000..2ac9654fe69 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListPartnersResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.responses; + +import com.oracle.bmc.self.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ListPartnersResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results + * remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code PartnerCollection} instance. */ + private com.oracle.bmc.self.model.PartnerCollection partnerCollection; + + /** + * The returned {@code PartnerCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.self.model.PartnerCollection getPartnerCollection() { + return partnerCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "partnerCollection" + }) + private ListPartnersResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.self.model.PartnerCollection partnerCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.partnerCollection = partnerCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. For important details about how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code PartnerCollection} instance. */ + private com.oracle.bmc.self.model.PartnerCollection partnerCollection; + + /** + * The returned {@code PartnerCollection} instance. + * + * @param partnerCollection the value to set + * @return this builder + */ + public Builder partnerCollection( + com.oracle.bmc.self.model.PartnerCollection partnerCollection) { + this.partnerCollection = partnerCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListPartnersResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + partnerCollection(o.getPartnerCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPartnersResponse build() { + return new ListPartnersResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, partnerCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",partnerCollection=").append(String.valueOf(partnerCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPartnersResponse)) { + return false; + } + + ListPartnersResponse other = (ListPartnersResponse) 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.partnerCollection, other.partnerCollection); + } + + @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.partnerCollection == null ? 43 : this.partnerCollection.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageBatchResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageBatchResponse.java new file mode 100644 index 00000000000..cd2c6cc2b63 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageBatchResponse.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.responses; + +import com.oracle.bmc.self.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class SubmitSubscriptionUsageBatchResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private SubmitSubscriptionUsageBatchResponse( + 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< + SubmitSubscriptionUsageBatchResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * asynchronous work request. Use GetWorkRequest with this ID to track the status of the + * request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(SubmitSubscriptionUsageBatchResponse 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 SubmitSubscriptionUsageBatchResponse build() { + return new SubmitSubscriptionUsageBatchResponse( + __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 SubmitSubscriptionUsageBatchResponse)) { + return false; + } + + SubmitSubscriptionUsageBatchResponse other = (SubmitSubscriptionUsageBatchResponse) 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-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageRecordsResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageRecordsResponse.java new file mode 100644 index 00000000000..6a54e78de58 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/SubmitSubscriptionUsageRecordsResponse.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.responses; + +import com.oracle.bmc.self.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class SubmitSubscriptionUsageRecordsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private SubmitSubscriptionUsageRecordsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + SubmitSubscriptionUsageRecordsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(SubmitSubscriptionUsageRecordsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public SubmitSubscriptionUsageRecordsResponse build() { + return new SubmitSubscriptionUsageRecordsResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SubmitSubscriptionUsageRecordsResponse)) { + return false; + } + + SubmitSubscriptionUsageRecordsResponse other = (SubmitSubscriptionUsageRecordsResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-self/reflect-config.json b/bmc-self/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-self/reflect-config.json index 0f309cbdff1..ddd030a5d82 100644 --- a/bmc-self/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-self/reflect-config.json +++ b/bmc-self/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-self/reflect-config.json @@ -47,6 +47,32 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.BillingDetails$BillingModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.BillingFrequency", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.CancelSubscriptionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.CancelSubscriptionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.self.model.ChangeSubscriptionCompartmentDetails", @@ -75,6 +101,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.CreateSubscriptionUsageRecordDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.CreateSubscriptionUsageRecordDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.CreateSubscriptionUsageRecordDetails$BillingType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.self.model.ExtendedMetadata", @@ -161,6 +207,40 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.Partner", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.Partner$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.Partner$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.PartnerCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.PartnerCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.self.model.PartnerSubscription", @@ -177,27 +257,35 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.self.model.PricingPlan", + "name": "com.oracle.bmc.self.model.PartnerSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.self.model.PricingPlan$Builder", + "name": "com.oracle.bmc.self.model.PartnerSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.self.model.PricingPlan$PlanType", + "name": "com.oracle.bmc.self.model.PricingPlan", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.self.model.PricingPlan$BillingFrequency", + "name": "com.oracle.bmc.self.model.PricingPlan$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.PricingPlan$PlanType", "allDeclaredFields": true, "allDeclaredMethods": true }, @@ -247,6 +335,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.SubmitSubscriptionUsageRecordsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.self.model.Subscription", @@ -331,6 +433,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.UsageDimension", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.self.model.UsageDimension$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.self.model.WorkRequest", diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index d33dbb21548..16ed4dc426e 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 0ce1de71749..4da3afe0e84 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index 8f9121668e2..adaccd75a99 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.93.0 + 3.94.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index f2188a2fffc..d5a6405a483 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index c9df30a149a..b4753243ef7 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 1cad9a8bcc9..473b4a60640 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index cceeed9afb8..82722e20d99 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index cbe190ea08b..34c4e379e8e 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index c94ac809d5a..a8d19559647 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index a5efa4c4c71..b20f4670a13 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index d72d244706b..3c8b1bd4a99 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 7aed6840d9d..d64fc28e70d 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index fab7edb8264..11a20cd3793 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 75081179a84..a45d2e4aa7e 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 04478ec2ec6..b4f7ee8d7f2 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index a0f439c95d6..ac9143cd52b 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 845923d3268..ad010619c33 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 6809260e87b..7f2e267dc37 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 4e8671bcbbb..12c7d50d300 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index cc7bf9b98c0..032ee81941f 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index e3f20273b15..993d7f257a3 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.93.0 + 3.94.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index c74c16a897e..9f1e2471b52 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.93.0 + 3.94.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure